Query resource type information

Last Updated: Apr 20, 2017

Description

This interface is used to query the details of a specific resource type.

Request parameters

Name Location Type Required? Description
TypeName URI String Yes Name of the resource type.

Return parameters

Name Parameter type Description
ResourceType String Resource type.
Attributes Json Resource attributes.
SupportStatus Json Status supported by the resource type; value options: UNKNOWN, SUPPORTED, DEPRECATED, UNSUPPORTED, and HIDDEN.
Properties Json Resource type description.

Error codes

Error code Description HTTP status code Meaning
InternalError Server error. 500 Server-side unknown exception.
ResourceTypeNotFound The Resource Type (%(type_name)s) could not be found. 404 The resource type cannot be found.

Example

Request example

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

Response example

  1. HTTP/1.1 200 OK
  2. Date: Fri, 11 Sep 2015 05:30:12 GMT
  3. Content-Type: application/json; charset=UTF-8
  4. Content-Length: 1694
  5. Connection: close
  6. Vary: Accept-Encoding
  7. Access-Control-Allow-Origin: *
  8. Access-Control-Allow-Methods: POST, GET, OPTIONS
  9. Access-Control-Allow-Headers: X-Requested-With, X-Sequence, _aop_secret, _aop_signature
  10. Access-Control-Max-Age: 172800
  11. X-Acs-Request-Id: A21A4B12-CCD7-42F0-9A62-DE8347D88385
  12. Server: Jetty(7.2.2.v20101205)
  13. {
  14. "Attributes" : {
  15. "LoadBalancerId" : {
  16. "description" : "The id of load balance generated"
  17. }
  18. },
  19. "SupportStatus" : {
  20. "status" : "SUPPORTED",
  21. "message" : null,
  22. "version" : null
  23. },
  24. "ResourceType" : "ALIYUN::SLB::LoadBalancer",
  25. "Properties" : {
  26. "InternetChargeType" : {
  27. "update_allowed" : false,
  28. "immutable" : false,
  29. "constraints" : [
  30. {
  31. "allowed_values" : [
  32. "paybybandwidth",
  33. "paybytraffic"
  34. ]
  35. }
  36. ],
  37. "description" : "The charging type of network billing.",
  38. "required" : false,
  39. "type" : "string"
  40. },
  41. "AddressType" : {
  42. "update_allowed" : false,
  43. "immutable" : false,
  44. "constraints" : [
  45. {
  46. "allowed_values" : [
  47. "internet",
  48. "intranet"
  49. ]
  50. }
  51. ],
  52. "description" : "The type of address.",
  53. "required" : false,
  54. "type" : "string"
  55. },
  56. "Bandwidth" : {
  57. "update_allowed" : false,
  58. "immutable" : false,
  59. "constraints" : [
  60. {
  61. "range" : {
  62. "max" : 1000,
  63. "min" : 1
  64. }
  65. }
  66. ],
  67. "description" : "The bandwidth in Mbps of network.",
  68. "required" : false,
  69. "type" : "integer"
  70. },
  71. "VpcId" : {
  72. "update_allowed" : false,
  73. "immutable" : false,
  74. "type" : "string",
  75. "required" : false,
  76. "description" : "The id of virtual private cloud."
  77. },
  78. "VSwitchId" : {
  79. "update_allowed" : false,
  80. "immutable" : false,
  81. "type" : "string",
  82. "required" : false,
  83. "description" : "The id of software-based network switch."
  84. },
  85. "LoadBalancerName" : {
  86. "update_allowed" : false,
  87. "immutable" : false,
  88. "type" : "string",
  89. "required" : false,
  90. "description" : "The display name of load balance."
  91. }
  92. }
  93. }
Thank you! We've received your feedback.