UpdateCustomResource
- Print
- PDF
UpdateCustomResource
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
Modify the specified custom resource.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/custom/resource/{resourceId}
Method: PUT
Request header
The request headers specified in common settings are required.
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request body
Statement
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
resourceId | Yes | String | resourceId of the custom resource to be changed | |
resourceName | Yes | String | resourceName can be changed | |
resourceData | No | Map<String, Object> | resourceData can be changed |
Examples
Request example
The following shows an example of modifying meta information for resourceId 123456.
PUT /cw_fea/real/cw/api/custom/resource/123456
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
{
"resourceName": "insight-test001",
"resourceData": {
"organizationCode": "NCC",
"projectId": "PPP",
"serverIp": "10.0.0.4",
"serverType": "Standard"
}
}
Response example
If the modification is completed without error, then HTTP code 200 is returned without a response body.
Was this article helpful?