GetResourceType
Retrieves resource metadata.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/providers/{provider}/products/{product}/resourceTypes/* HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| requestPath |
string |
No |
The request path. Format: /api/v1/providers/{provider}/products/{product}/resourceTypes/{resourceType} Variables in the request path:
|
No parent resource: /api/v1/providers/Aliyun/products/Redis/resourceTypes/DBInstance Has parent resource: /api/v1/providers/Aliyun/products/Redis/resourceTypes/DBInstance/Account |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| x-acs-accept-language |
string |
No |
Specifies the language of the returned product information. Valid values:
Valid values:
|
zh_CH |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| resourceType |
object |
The resource type. |
No parent resource: Instance Has parent resource: DBInstance/Account |
| createOnlyProperties |
array |
The parameters specific to the create operation. These properties are not returned by resource queries but must be provided for the create operation. |
|
|
string |
A parameter specific to the create operation. |
/properties/AutoRenew |
|
| deleteOnlyProperties |
array |
The parameters specific to the delete operation. These properties are not returned by resource queries but must be provided for the delete operation. |
|
|
string |
A parameter specific to the delete operation. |
/properties/ForceDelete |
|
| filterProperties |
array |
The properties that can be used as filter parameters in list operations. |
|
|
string |
The filter parameter. |
/properties/ResourceGroupId |
|
| getOnlyProperties |
array |
The parameters specific to the get operation. These properties are not returned by resource queries but must be provided for the get operation. |
|
|
string |
A parameter specific to the get operation. |
/properties/DryRun |
|
| getResponseProperties |
array |
The properties returned in get operations. |
|
|
string |
The property returned in get operations. |
/properties/NetworkInterfaces/items/properties/IpvSets |
|
| handlers |
object |
The supported resource operation information, including Resource Access Management (RAM) permissions. |
|
| create |
object |
The information associated with the create operation. |
|
| permissions |
array |
The required RAM permissions. |
|
|
string |
The RAM permission. |
ecs:CreateInstance |
|
| delete |
object |
The information associated with the delete operation. |
|
| permissions |
array |
The required RAM permissions. |
|
|
string |
The RAM permission. |
ecs:DeleteInstance |
|
| get |
object |
The information associated with the get operation. |
|
| permissions |
array |
The required RAM permissions. |
|
|
string |
The RAM permission. |
ecs:DescribeInstanceAttachmentAttributes |
|
| list |
object |
The information associated with the list operation. |
|
| permissions |
array |
The required RAM permissions. |
|
|
string |
The RAM permission. |
ecs:DescribeInstances |
|
| update |
object |
The information associated with the update operation. |
|
| permissions |
array |
The required RAM permissions. |
|
|
string |
The RAM permission. |
ecs:ModifyInstanceNetworkSpec |
|
| info |
object |
The basic information of the resource type. |
|
| chargeType |
string |
Indicates whether the resource is billable. Valid values:
|
paid |
| deliveryScope |
string |
The deployment scope. Valid values:
|
region |
| description |
string |
The description of the resource type. |
An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine. |
| title |
string |
The name of the resource type. |
Instance |
| listOnlyProperties |
array |
The parameters specific to the list operation. These properties are not returned by resource queries but must be provided for the list operation. |
|
|
string |
A parameter specific to the list operation. |
/properties/DryRun |
|
| listResponseProperties |
array |
The properties returned in list operations. |
|
|
string |
The property returned in list operations. |
/properties/InstanceId |
|
| primaryIdentifier |
string |
The resource ID. |
/properties/InstanceId |
| product |
string |
The product code. |
ECS |
| properties |
object |
The resource property definitions. The key is the property name, and the value is the detailed property information. |
|
| publicProperties |
array |
The properties shared across operations. These are the basic properties of the resource, rather than parameters specific to an operation. |
|
|
string |
The public property. |
/properties/Description |
|
| readOnlyProperties |
array |
The read-only parameters. These parameters are returned only in list or get operations and are not used as input parameters during creation or modification. |
|
|
string |
The read-only parameter. |
/properties/CreateTime |
|
| required |
array |
The required parameters for resource creation. |
|
|
string |
The required parameter for resource creation. |
RegionId |
|
| resourceType |
string |
The resource type. If the resource has a parent resource, the returned format is {parent resource type code/resource type code}. |
Resource without a parent resource: Instance Resource with a parent resource: DBInstance/Account |
| sensitiveInfoProperties |
array |
The sensitive properties, such as passwords. |
|
|
string |
The sensitive property. |
/properties/VncPassword |
|
| updateOnlyProperties |
array |
The parameters specific to the update operation. These properties are not returned by resource queries but must be provided for the update operation. |
|
|
string |
A parameter specific to the update operation. |
/properties/DryRun |
|
| updateTypeProperties |
array |
The properties that can be modified. |
|
|
string |
The modifiable property. |
/properties/InstanceName |
Examples
Success response
JSON format
{
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"resourceType": {
"createOnlyProperties": [
"/properties/AutoRenew"
],
"deleteOnlyProperties": [
"/properties/ForceDelete"
],
"filterProperties": [
"\t\n/properties/ResourceGroupId"
],
"getOnlyProperties": [
"/properties/DryRun"
],
"getResponseProperties": [
"/properties/NetworkInterfaces/items/properties/IpvSets"
],
"handlers": {
"create": {
"permissions": [
"ecs:CreateInstance"
]
},
"delete": {
"permissions": [
"ecs:DeleteInstance"
]
},
"get": {
"permissions": [
"ecs:DescribeInstanceAttachmentAttributes"
]
},
"list": {
"permissions": [
"ecs:DescribeInstances"
]
},
"update": {
"permissions": [
"ecs:ModifyInstanceNetworkSpec"
]
}
},
"info": {
"chargeType": "paid",
"deliveryScope": "region",
"description": "An ECS instance is equivalent to a virtual machine, including the most basic computing components such as CPU, memory, operating system, network, and disk. You can easily customize and change the configuration of the instance. You have full control over the virtual machine.",
"title": "Instance"
},
"listOnlyProperties": [
"/properties/DryRun"
],
"listResponseProperties": [
"/properties/InstanceId"
],
"primaryIdentifier": "/properties/InstanceId\n",
"product": "ECS",
"properties": {
"test": "test",
"test2": 1
},
"publicProperties": [
"\t\n/properties/Description"
],
"readOnlyProperties": [
"/properties/CreateTime"
],
"required": [
"RegionId"
],
"resourceType": "Resource without a parent resource:\nInstance\nResource with a parent resource:\nDBInstance/Account",
"sensitiveInfoProperties": [
"/properties/VncPassword"
],
"updateOnlyProperties": [
"/properties/DryRun"
],
"updateTypeProperties": [
"/properties/InstanceName"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.