阅读506 返回首页    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 文档_资源编排-阿里云