GetAllCustomResource
    • PDF

    GetAllCustomResource

    • PDF

    Article Summary

    概要

    すべての Custom Resourceを照会します。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/custom/resource/list
    Method: GET
    

    リクエストヘッダ

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

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    resourceTypeIdNoStringresourceTypeIdを通じて希望する typeのリソースリストのみ照会可能
    queryNoStringqueryを使用して指定した条件のリソースリストのみ照会可能

    リクエスト例

    GET /cw_fea/real/cw/api/custom/resource/list
    Host: cw.apigw.ntruss.com
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    レスポンス例

    エラーなく照会が完了した場合、HTTP code 200と一緒に全リソースが返されます。

    [
      {
        "resourceId": "123456",
        "resourceName": "insight-test001",
        "resourceTypeId": "xxxxxxxxxxxxxxxxxx"
        "resourceData": {
          "organizationCode": "NCC",
          "projectId": "PPP",
          "serverIp": "10.0.0.1",
          "serverType": "HighCPU"
        }
      },
      {
        "resourceId": "123123",
        "resourceName": "insight-test002",
        "resourceTypeId": "xxxxxxxxxxxxxxxxxx"
        "resourceData": {
          "organizationCode": "NCC",
          "projectId": "PPP",
          "serverIp": "10.0.0.2",
          "serverType": "Standard"
        }
      },
      {
        "resourceId": "123098",
        "resourceName": "insight-test003",
        "resourceTypeId": "xxxxxxxxxxxxxxxxxx"
        "resourceData": {
          "organizationCode": "NCC",
          "projectId": "PPP",
          "serverIp": "10.0.0.3",
          "serverType": "GPU"
        }
      }
    ]
    

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

    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.