Consulta os detalhes dos recursos suportados pelo Resource Orchestration Service (ROS).
Descrição da operação
Você pode chamar esta operação para consultar os recursos de hospedagem Terraform, limpeza de recursos e cenários.
Este tópico fornece um exemplo de como consultar os detalhes dos recursos suportados pelo ROS na região China (Hangzhou). Os detalhes incluem versões do Terraform, versões de provedores e tipos de recursos suportados.
Na seção Exemplos, apenas parte do código de exemplo é fornecida.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Feature |
string |
Sim |
Um ou mais recursos que você deseja consultar. Valores válidos:
|
Terraform |
| RegionId |
string |
Sim |
O ID da região da stack. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. |
cn-hangzhou |
Para mais informações sobre parâmetros de solicitação comuns, consulte Parâmetros comuns.
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
EBF833DA-D0E2-52BE-92E2-59CA56BE834E |
| Terraform |
object |
Detalhes do recurso de hospedagem Terraform. |
|
| SupportedVersions |
array<object> |
As versões do Terraform. |
|
|
array<object> |
|||
| ProviderVersions |
array<object> |
The names and versions of the providers that correspond to the Terraform versions. |
|
|
object |
|||
| ProviderName |
string |
The name of the provider. |
alicloud |
| SupportedVersions |
array |
The provider versions. |
|
|
string |
The provider version. |
1.121.2 |
|
| TerraformVersion |
string |
The Terraform version. |
1.0.11 |
| Transform |
string |
The Terraform version that is supported by ROS. The parameter value is the same as the value of the Transform parameter in a Terraform template. |
Aliyun::Terraform-v1.0 |
| UpdateAllowedTransforms |
array |
The Terraform versions that can be updated in ROS. |
|
|
string |
The Terraform version that can be updated in ROS. |
Aliyun::Terraform-v1.1 |
|
| SupportedResourceTypes |
object |
Os tipos de recursos que suportam o recurso de cenários. |
|
| SystemTag |
array |
The resource types that support the system tag |
|
|
string |
The resource types that support the system tag |
alicloud_instance |
|
| CustomTag |
array |
The resource types that support the custom tag feature. |
|
|
string |
The resource types that support the custom tag feature. |
alicloud_instance |
|
| EstimateCost |
array |
The resource types that support the price inquiry feature. |
|
|
string |
The resource types that support the price inquiry feature. |
alicloud_instance |
|
| ResourceGroup |
array |
The resource types that support the resource group feature. |
|
|
string |
The resource types that support the resource group feature. |
alicloud_instance |
|
| StackOperationRisk |
object |
The resource type that support the risk check feature. |
|
| DeleteStack |
array |
The resource types that support the risk check performed to detect risks caused by a stack deletion operation. |
|
|
string |
The resource types that support the risk check performed to detect risks caused by a stack deletion operation. |
alicloud_instance |
|
| TemplateScratch |
object |
Detalhes do recurso de cenários. |
|
| SupportedResourceTypes |
array<object> |
Os tipos de recursos suportados pelo recurso de cenários. |
|
|
object |
Os tipos de recursos que suportam o recurso de cenários. |
||
| ResourceType |
string |
The resource type. |
ALIYUN::ECS::Disk |
| SourceResourcesSupported |
boolean |
Indicates whether the resource scope can be specified by source resource. Valid values:
|
true |
| SourceTagSupported |
boolean |
Indicates whether the resource scope can be specified by source tag. Valid values:
|
true |
| SourceResourceGroupSupported |
boolean |
Indicates whether the resource scope can be specified by source resource group. Valid values:
|
true |
| SourceSupported |
boolean |
Indicates whether the resource scope can be specified by source tag, resource group, or resource. Valid values:
|
true |
| SupportedTemplateScratchTypes |
array |
The scenario types that are supported. |
|
|
string |
The scenario type that is supported. Valid values:
|
ArchitectureReplication |
|
| ResourceCleaner |
object |
Detalhes do recurso de limpeza de recursos. |
|
| SupportedResourceTypes |
array<object> |
Os tipos de recursos que podem ser limpos. |
|
|
object |
Os tipos de recursos que podem ser limpos. |
||
| ResourceType |
string |
The resource type that supports the resource cleaner feature. |
ECS:Instance |
| SupportedFilters |
array |
The names of the filters that are supported by the resource type. |
|
|
string |
The name of the filter that is supported by the resource type. Valid values:
|
ResourceName |
|
| SideEffects |
array |
The names of the side effects that may be caused by the cleanup operation performed on the resources of the specified type. |
|
|
string |
The name of the side effect that may be caused by the cleanup operation performed on the resources of the specified type. Only StopInstance may be returned, which indicates that instances related to the specified resource type are stopped. |
StopInstance |
|
| TemplateParameterConstraints |
object |
Detalhes do recurso de restrição de parâmetros de modelo. |
|
| SupportedResourceTypes |
array<object> |
Os tipos de recursos que suportam o recurso de restrição de parâmetros de modelo. |
|
|
object |
Os tipos de recursos que suportam o recurso de restrição de parâmetros de modelo. |
||
| ResourceType |
string |
The resource type. |
ALIYUN::ECS::Disk |
| Properties |
array |
The names of properties that are supported by the resource type. |
|
|
string |
The name of the property that is supported by the resource type. |
["DiskCategory", "ZoneId"] |
|
| DriftDetection |
object |
Detalhes do recurso de detecção de drift. |
|
| SupportedResourceTypes |
array |
Os tipos de recursos suportados pelo recurso de detecção de drift. |
|
|
string |
Os tipos de recursos suportados pelo recurso de detecção de drift. |
ALIYUN::ECS::Disk |
|
| ResourceImport |
object |
Detalhes do recurso de importação de recursos. |
|
| SupportedResourceTypes |
array<object> |
Os tipos de recursos suportados pelo recurso de importação de recursos. |
|
|
object |
|||
| ResourceType |
string |
The resource type. |
ALIYUN::ECS::Disk |
| ResourceIdentifiers |
array |
The resource identifiers. |
|
|
string |
The resource identifier. |
DiskId |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "EBF833DA-D0E2-52BE-92E2-59CA56BE834E",
"Terraform": {
"SupportedVersions": [
{
"ProviderVersions": [
{
"ProviderName": "alicloud",
"SupportedVersions": [
"1.121.2"
]
}
],
"TerraformVersion": "1.0.11",
"Transform": "Aliyun::Terraform-v1.0",
"UpdateAllowedTransforms": [
"Aliyun::Terraform-v1.1"
]
}
],
"SupportedResourceTypes": {
"SystemTag": [
"alicloud_instance"
],
"CustomTag": [
"alicloud_instance"
],
"EstimateCost": [
"alicloud_instance"
],
"ResourceGroup": [
"alicloud_instance"
],
"StackOperationRisk": {
"DeleteStack": [
"alicloud_instance"
]
}
}
},
"TemplateScratch": {
"SupportedResourceTypes": [
{
"ResourceType": "ALIYUN::ECS::Disk",
"SourceResourcesSupported": true,
"SourceTagSupported": true,
"SourceResourceGroupSupported": true,
"SourceSupported": true,
"SupportedTemplateScratchTypes": [
"ArchitectureReplication"
]
}
]
},
"ResourceCleaner": {
"SupportedResourceTypes": [
{
"ResourceType": "ECS:Instance",
"SupportedFilters": [
"ResourceName"
],
"SideEffects": [
"StopInstance"
]
}
]
},
"TemplateParameterConstraints": {
"SupportedResourceTypes": [
{
"ResourceType": "ALIYUN::ECS::Disk",
"Properties": [
"[\"DiskCategory\", \"ZoneId\"]"
]
}
]
},
"DriftDetection": {
"SupportedResourceTypes": [
"ALIYUN::ECS::Disk"
]
},
"ResourceImport": {
"SupportedResourceTypes": [
{
"ResourceType": "ALIYUN::ECS::Disk",
"ResourceIdentifiers": [
"DiskId"
]
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.