閱讀506 返回首頁    go 阿裏雲 go 技術社區[雲棲]


查詢資源類型信息__資源相關接口_API 文檔_資源編排-阿裏雲

查詢資源類型信息

描述:查詢支持的單個資源類型的詳細信息

請求參數

名稱 位置 類型 是否必須 描述
TypeName URI String 資源類型名稱

返回參數

名稱 參數類型 描述
ResourceType String 資源類型
Attributes Json 資源的屬性
SupportStatus Json 資源類型的支持狀態,可選值:UNKNOWN,SUPPORTED,DEPRECATED,UNSUPPORTED,HIDDEN
Properties Json 資源的規格描述

錯誤碼

錯誤代碼 描述 Http狀態碼 語義
InternalError Server error 500 服務器端出現未知異常
ResourceTypeNotFound The Resource Type (%(type_name)s) could not be found. 404 資源類型無法找到

示例

請求示例

GET https://ros.aliyuncs.com/resource_types/ALIYUN::SLB::LoadBalancer HTTP/1.1
x-acs-signature-method: HMAC-SHA1
Authorization: acs ACSTQDkNtSMrZtwL:niea/6wW/HHwwiafneHX+oM3ALU=
Date: Fri, 11 Sep 2015 05:30:54 GMT
x-acs-signature-version: 1.0
x-sdk-client: Java/2.0.0
Accept: application/octet-stream
x-acs-version: 2015-09-01
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_27
Host: ros.aliyuncs.com
Connection: keep-alive

返回示例

HTTP/1.1 200 OK
Date: Fri, 11 Sep 2015 05:30:12 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 1694
Connection: close
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-Requested-With, X-Sequence, _aop_secret, _aop_signature
Access-Control-Max-Age: 172800
X-Acs-Request-Id: A21A4B12-CCD7-42F0-9A62-DE8347D88385
Server: Jetty(7.2.2.v20101205)



{
  "Attributes" : {
    "LoadBalancerId" : {
      "description" : "The id of load balance generated"
    }
  },
  "SupportStatus" : {
    "status" : "SUPPORTED",
    "message" : null,
    "version" : null
  },
  "ResourceType" : "ALIYUN::SLB::LoadBalancer",
  "Properties" : {
    "InternetChargeType" : {
      "update_allowed" : false,
      "immutable" : false,
      "constraints" : [
        {
          "allowed_values" : [
            "paybybandwidth",
            "paybytraffic"
          ]
        }
      ],
      "description" : "The charging type of network billing.",
      "required" : false,
      "type" : "string"
    },
    "AddressType" : {
      "update_allowed" : false,
      "immutable" : false,
      "constraints" : [
        {
          "allowed_values" : [
            "internet",
            "intranet"
          ]
        }
      ],
      "description" : "The type of address.",
      "required" : false,
      "type" : "string"
    },
    "Bandwidth" : {
      "update_allowed" : false,
      "immutable" : false,
      "constraints" : [
        {
          "range" : {
            "max" : 1000,
            "min" : 1
          }
        }
      ],
      "description" : "The bandwidth in Mbps of network.",
      "required" : false,
      "type" : "integer"
    },
    "VpcId" : {
      "update_allowed" : false,
      "immutable" : false,
      "type" : "string",
      "required" : false,
      "description" : "The id of virtual private cloud."
    },
    "VSwitchId" : {
      "update_allowed" : false,
      "immutable" : false,
      "type" : "string",
      "required" : false,
      "description" : "The id of software-based network switch."
    },
    "LoadBalancerName" : {
      "update_allowed" : false,
      "immutable" : false,
      "type" : "string",
      "required" : false,
      "description" : "The display name of load balance."
    }
  }
}

最後更新:2016-11-23 17:16:06

  上一篇:go 查詢資源類型列表__資源相關接口_API 文檔_資源編排-阿裏雲
  下一篇:go 查詢資源類型模板信息__資源相關接口_API 文檔_資源編排-阿裏雲