UpdateCustomResource
    • PDF

    UpdateCustomResource

    • PDF

    記事の要約

    概要

    指定したCustom Resourceを修正します。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/custom/resource/{resourceId}
    Method: PUT
    

    リクエストヘッダ

    共通の設定に明示されたリクエストヘッダが必要です。

    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}
    

    リクエストボディ

    構文

    パラメータ名必須の有無タイプ制約事項説明
    resourceIdYesString変更するCustom ResourceのresourceId
    resourceNameYesStringresourceName変更可
    resourceDataNoMap<String, Object>resourceData変更可

    リクエスト例

    下記は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 bodyなしでHTTP code 200が返されます。


    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.