查询ROS支持的特定功能详情。
接口说明
使用说明
GetFeatureDetails 支持查询的功能为:Terraform 托管功能、资源清理器功能和资源场景功能。
本文将提供一个示例,查询杭州地域所有功能详情,包括 Terraform 版本、Provider 版本、支持的资源类型等。
返回示例中只呈现了部分代码。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| Feature | string | 是 | 待查询功能。取值: 
 | Terraform | 
| RegionId | string | 是 | 资源栈所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。 | cn-hangzhou | 
关于公共请求参数的详情,请参见公共参数。
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | |||
| RequestId | string | 请求 ID。 | EBF833DA-D0E2-52BE-92E2-59CA56BE834E | 
| Terraform | object | Terraform 托管功能详情。 | |
| SupportedVersions | array | Terraform 版本列表。 | |
| object | |||
| ProviderVersions | array | 当前 Terraform 版本对应的 Provider 名称及版本。 | |
| object | |||
| ProviderName | string | Provider 名称。 | alicloud | 
| SupportedVersions | array | Provider 版本列表。 | |
| string | Provider 版本。 | 1.121.2 | |
| TerraformVersion | string | Terraform 版本。 | 1.0.11 | 
| Transform | string | ROS 支持的 Terraform 版本,与 Terraform 类型模板中 Transform 取值相同。 | Aliyun::Terraform-v1.0 | 
| UpdateAllowedTransforms | array | ROS 允许更新到的 Terraform 版本列表。 | |
| string | ROS 允许更新到的 Terraform 版本。 | Aliyun::Terraform-v1.1 | |
| SupportedResourceTypes | object | Terraform 托管功能支持的资源类型。 | |
| SystemTag | array | 支持系统标签 | |
| string | 支持系统标签 | alicloud_instance | |
| CustomTag | array | 支持自定义标签的资源类型列表。 | |
| string | 支持自定义标签的资源类型。 | alicloud_instance | |
| EstimateCost | array | 支持询价的资源类型列表。 | |
| string | 支持询价的资源类型。 | alicloud_instance | |
| ResourceGroup | array | 支持资源组的资源类型列表。 | |
| string | 支持资源组的资源类型。 | alicloud_instance | |
| StackOperationRisk | object | 支持风险检查的资源类型。 | |
| DeleteStack | array | 操作类型为 DeleteStack 的风险检查所支持的资源类型的列表。 | |
| string | 操作类型为 DeleteStack 的风险检查所支持的资源类型。 | alicloud_instance | |
| TemplateScratch | object | 资源场景功能详情。 | |
| SupportedResourceTypes | array | 资源场景支持的资源类型信息列表。 | |
| object | 资源场景支持的资源类型信息。 | ||
| ResourceType | string | 资源类型。 | ALIYUN::ECS::Disk | 
| SourceResourcesSupported | boolean | 是否支持源资源选择方式。取值: 
 | true | 
| SourceTagSupported | boolean | 是否支持源标签选择方式。取值: 
 | true | 
| SourceResourceGroupSupported | boolean | 是否支持源资源组选择方式。取值: 
 | true | 
| SourceSupported | boolean | 是否支持源标签、源资源组、源资源三种选择方式的任意一种。取值: 
 | true | 
| SupportedTemplateScratchTypes | array | 支持的资源场景类型列表。 | |
| string | 支持的资源场景类型,取值: 
 | ArchitectureReplication | |
| ResourceCleaner | object | 资源清理器(ALIYUN::ROS::ResourceCleaner)功能详情。 | |
| SupportedResourceTypes | array | 支持清理的资源类型列表。 | |
| object | |||
| ResourceType | string | 支持清理的资源类型。 | ECS:Instance | 
| SupportedFilters | array | 该资源类型支持的过滤器列表。 | |
| string | 支持的过滤器名称。包括: 
 | ResourceName | |
| SideEffects | array | 清理该类型资源可能产生的副作用列表。 | |
| string | 副作用名称。取值:StopInstance(资源关联的实例被停止)。 | StopInstance | |
| TemplateParameterConstraints | object | 模板参数约束功能详情。 | |
| SupportedResourceTypes | array | 模板参数约束支持的资源类型信息列表。 | |
| object | 模板参数约束支持的资源类型信息列表。 | ||
| ResourceType | string | 资源类型。 | ALIYUN::ECS::Disk | 
| Properties | array | 对应资源支持的属性名称。 | |
| string | 对应资源支持的属性名称。 | ["DiskCategory", "ZoneId"] | |
| DriftDetection | object | 偏差检测功能详情。 | |
| SupportedResourceTypes | array | 支持偏差检测的资源类型列表。 | |
| string | 资源类型。 | ALIYUN::ECS::Disk | |
| ResourceImport | object | 资源导入功能详情。 | |
| SupportedResourceTypes | array | 支持资源导入的资源类型列表。 | |
| object | 支持资源导入的资源类型列表。 | ||
| ResourceType | string | 资源类型。 | ALIYUN::ECS::Disk | 
| ResourceIdentifiers | array | 资源的标识符属性列表。 | |
| string | 资源的标识符属性。 | DiskId | 
示例
正常返回示例
JSON格式
{
  "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"
        ]
      }
    ]
  }
}错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。