开发者社区> 问答> 正文

资源编排资源相关接口有什么?

资源编排资源相关接口有什么?

展开
收起
小天使爱美 2020-03-24 18:50:48 642 0
1 条回答
写回答
取消 提交回答
  • 调用GetResourceType接口查询资源类型的详细信息。

    调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

    调试 请求参数 名称 类型 是否必选 示例值 描述 Action String 是 GetResourceType 系统规定参数。取值:GetResourceType。

    ResourceType String 是 ALIYUN::ROS::WaitConditionHandle 资源类型。

    返回数据 名称 类型 示例值 描述 Attributes Map {"CurlCli": {},"PowerShellCurlCli": {},"WindowsCurlCli": {}} 资源的返回值。

    Properties Map {"Count": {},"Mode": {"Constraints": []}} 资源的属性。

    RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6 请求ID。

    ResourceType String ALIYUN::ROS::WaitConditionHandle 资源类型。

    SupportDriftDetection Boolean false 该资源是否支持偏差检查。

    示例 请求示例

    http(s)://ros.aliyuncs.com/?Action=GetResourceType &ResourceType=ALIYUN::SLB::LoadBalancer &<公共请求参数> 正常返回示例

    XML 格式

    Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{"status": "SUCCESS"}' , or signal failure by adding --data-binary '{"status": "FAILURE"}' Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{"status": "SUCCESS"}' , or signal failure by adding -Body '{"status": "FAILURE"}' Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary "{"status": "SUCCESS"}" , or signal failure by adding --data-binary "{"status": "FAILURE"}" -1 There are 3 preconditions that make Count taking effect: 1.Mode is set to Full. 2.Count >= 0. 3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.

    If Count takes effect, signals with id > Count will be deleted before update. The default value is -1, which means no effect. It is recommended to quote the same value with WaitCondition.Count. false false integer true Increment Full Full If set to Increment, all old signals will be deleted before update. In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.

    If set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.

    Default to Full. false false string true BA4C8BF3-482E-4B03-A1E3-C60DB7A95DE0 ALIYUN::ROS::WaitConditionHandle false JSON 格式

    { "Attributes": { "CurlCli": { "Description": "Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{"status": "SUCCESS"}' , or signal failure by adding --data-binary '{"status": "FAILURE"}'" }, "PowerShellCurlCli": { "Description": "Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{"status": "SUCCESS"}' , or signal failure by adding -Body '{"status": "FAILURE"}' " }, "WindowsCurlCli": { "Description": "Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary "{\"status\": \"SUCCESS\"}" , or signal failure by adding --data-binary "{\"status\": \"FAILURE\"}" " } }, "Properties": { "Count": { "Default": -1, "Description": "There are 3 preconditions that make Count taking effect:\n1.Mode is set to Full.\n2.Count >= 0.\n3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.\n\nIf Count takes effect, signals with id > Count will be deleted before update.\nThe default value is -1, which means no effect.\nIt is recommended to quote the same value with WaitCondition.Count.", "Immutable": false, "Required": false, "Type": "integer", "UpdateAllowed": true }, "Mode": { "Constraints": [ { "AllowedValues": [ "Increment", "Full" ] } ], "Default": "Full", "Description": "If set to Increment, all old signals will be deleted before update. In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.\n\nIf set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.\n\nDefault to Full.", "Immutable": false, "Required": false, "Type": "string", "UpdateAllowed": true } }, "RequestId": "BA4C8BF3-482E-4B03-A1E3-C60DB7A95DE0", "ResourceType": "ALIYUN::ROS::WaitConditionHandle", "SupportDriftDetection": false } 错误码 访问错误中心查看更多错误码。

    访问公共错误码查看更多错误码。

    HttpCode

    错误码

    错误信息

    描述

    404

    ResourceTypeNotFound

    The Resource Type ({name}) could not be found.

    资源类型不存在。name为资源类型名。 调用GetResourceTypeTemplate接口根据资源类型查询该资源的模板。

    调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

    调试 请求参数 名称 类型 是否必选 示例值 描述 Action String 是 GetResourceTypeTemplate 系统规定参数。

    取值:GetResourceTypeTemplate。

    ResourceType String 是 ALIYUN::ECS::VPC 资源类型。

    返回数据 名称 类型 示例值 描述 RequestId String 87F54B2B-AEF0-4C33-A72A-3F8856A575E9 请求ID。

    TemplateBody Map {"ROSTemplateFormatVersion": "2015-09-01"} 模板主体的结构。

    长度为1~51200个字节。

    示例 请求示例

    http(s)://ros.aliyuncs.com/?Action=GetResourceTypeTemplate &ResourceType=ALIYUN::ECS::VPC &<公共请求参数> 正常返回示例

    XML 格式

    87F54B2B-AEF0-4C33-A72A-3F8856A575E9 String String String String 2015-09-01 CidrBlock Description ResourceGroupId VpcName ALIYUN::ECS::VPC JSON 格式

    { "RequestId": "87F54B2B-AEF0-4C33-A72A-3F8856A575E9", "TemplateBody": { "Parameters": { "CidrBlock": { "Type": "String" }, "Description": { "Type": "String" }, "ResourceGroupId": { "Type": "String" }, "VpcName": { "Type": "String" } }, "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "Vpc": { "Properties": { "CidrBlock": { "Ref": "CidrBlock" }, "Description": { "Ref": "Description" }, "ResourceGroupId": { "Ref": "ResourceGroupId" }, "VpcName": { "Ref": "VpcName" } }, "Type": "ALIYUN::ECS::VPC" } } } } 错误码 访问错误中心查看更多错误码。

    访问公共错误码查看更多错误码。

    HttpCode

    错误码

    错误信息

    描述

    404

    ResourceTypeNotFound

    The Resource Type ({name}) could not be found.

    资源类型不存在。name为资源类型名。 调用GetStackResource接口查询某个资源栈的资源。

    调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

    调试 请求参数 名称 类型 是否必选 示例值 描述 Action String 是 GetStackResource 系统规定参数。取值:GetStackResource。

    LogicalResourceId String 是 WebServer 资源逻辑ID,即模板中资源的名称。

    RegionId String 是 cn-hangzhou 资源栈所属的地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。

    StackId String 是 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** 资源栈ID。

    ClientToken String 否 123e4567-e89b-12d3-a456-426655440000 保证请求的幂等性。此参数值由客户端生成,并且必须是全局唯一的。仅允许ASCII字符,最多可包含64个字符。更多详情,请参见如何保证幂等性。

    ShowResourceAttributes Boolean 否 true 是否查询资源属性。

    返回数据 名称 类型 示例值 描述 Status String CREATE_COMPLETE 资源状态。取值范围:

    CREATE_COMPLETE CREATE_FAILED CREATE_IN_PROGRESS DELETE_FAILED DELETE_IN_PROGRESS ROLLBACK_COMPLETE ROLLBACK_FAILED ROLLBACK_IN_PROGRESS Description String no description 资源描述。

    LogicalResourceId String WebServer 资源逻辑ID,即模板中资源的名称。

    StackId String cn-hangzhou 资源栈ID。

    StackName String test-describe-resource 资源栈名称。资源栈名称可以包含数字、字母(大小写敏感)、连字符、下划线。必须以数字或字母开头,且长度不超过255个字符。

    StatusReason String state changed 资源状态原因。

    PhysicalResourceId String d04af923-e6b7-4272-aeaa-47ec9777**** 资源物理ID,即实际资源ID。

    ResourceType String ALIYUN::ROS::WaitConditionHandle 资源类型。

    CreateTime String 2019-08-01T06:01:23 创建时间。

    按照ISO8601标准表示,需使用UTC时间,格式:YYYY-MM-DDThh:mm:ss。

    Metadata Map {"key": "value"} 元数据。

    UpdateTime String 2019-08-01T06:01:29 更新时间。

    按照ISO8601标准表示,需使用UTC时间,格式:YYYY-MM-DDThh:mm:ss。

    ResourceAttributes List [ { "ResourceAttributeValue":"curl -Uri "http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55" -Method Post -Headers @{"Content-Type"="application/json"; "Accept"="application/json"; "x-acs-region-id"="cn-beijing"}", "ResourceAttributeKey":"PowerShellCurlCli" } ] 资源属性列表。

    RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6 请求ID。

    DriftDetectionTime String 2020-02-27T07:47:47 资源栈最近一次成功的偏差检查中资源偏差检查的时间。

    ResourceDriftStatus String IN_SYNC 资源栈最近一次成功的偏差检查中的资源的偏差状态。取值范围:

    DELETED:资源与预期的模板配置不同,因为资源已被删除。 MODIFIED:资源与预期的模板配置不同。 NOT_CHECKED:ROS 没有检查资源是否与预期的模板配置不同。 IN_SYNC:资源的当前配置与其预期的模板配置相匹配。 示例 请求示例

    http(s)://ros.aliyuncs.com/?Action=GetStackResource &RegionId=cn-hangzhou &StackId=4a6c9851-3b0f-4f5f-b4ca-a14bf691**** &LogicalResourceId=WebServer &<公共请求参数> 正常返回示例

    XML 格式

    2019-08-01T06:01:23 WaitConditionHandle B288A0BE-D927-4888-B0F7-B35EF84B6E6F CurlCli curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'x-acs-region-id: cn-beijing' http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55 WindowsCurlCli curl -i -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "x-acs-region-id: cn-beijing" "http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55" PowerShellCurlCli curl -Uri "http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55" -Method Post -Headers @{"Content-Type"="application/json"; "Accept"="application/json"; "x-acs-region-id"="cn-beijing"} ALIYUN::ROS::WaitConditionHandle efdf5c10-96a5-4fd7-ab89-68e7baa2**** test-describe-resource UPDATE_COMPLETE state changed 2019-08-01T06:01:29 2020-02-27T07:47:47 IN_SYNC JSON 格式

    { "CreateTime": "2019-08-01T06:01:23", "Description": "", "LogicalResourceId": "WaitConditionHandle", "Metadata": {}, "PhysicalResourceId": "", "RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F", "ResourceAttributes": [ { "ResourceAttributeKey": "CurlCli", "ResourceAttributeValue": "curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'x-acs-region-id: cn-beijing' http://100.100.100.110/waitcondition?stackname=test-describe-resource\&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5\&resource=WaitConditionHandle\&expire=1564682564\&signature=991d910a901a89db6580d74233119960c004de55" }, { "ResourceAttributeKey": "WindowsCurlCli", "ResourceAttributeValue": "curl -i -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "x-acs-region-id: cn-beijing" "http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55"" }, { "ResourceAttributeKey": "PowerShellCurlCli", "ResourceAttributeValue": "curl -Uri "http://100.100.100.110/waitcondition?stackname=test-describe-resource&stackid=efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5&resource=WaitConditionHandle&expire=1564682564&signature=991d910a901a89db6580d74233119960c004de55" -Method Post -Headers @{"Content-Type"="application/json"; "Accept"="application/json"; "x-acs-region-id"="cn-beijing"}" } ], "ResourceType": "ALIYUN::ROS::WaitConditionHandle", "StackId": "efdf5c10-96a5-4fd7-ab89-68e7baa2****", "StackName": "test-describe-resource", "Status": "UPDATE_COMPLETE", "StatusReason": "state changed", "UpdateTime": "2019-08-01T06:01:29", "DriftDetectionTime": "2020-02-27T07:47:47", "ResourceDriftStatus": "IN_SYNC" } 错误码 访问错误中心查看更多错误码。

    访问公共错误码查看更多错误码。

    HttpCode

    错误码

    错误信息

    描述

    404

    ResourceNotFound

    The Resource ({name}) could not be found in Stack {stack}.

    资源栈中不存某资源。name为资源名,stack为资源栈名称或ID。

    404

    StackNotFound

    The Stack ({name}) could not be found.

    资源栈不存在。name为资源栈名称或ID。

    调用ListResourceTypes接口查询支持的资源类型列表。

    调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

    调试 请求参数 名称 类型 是否必选 示例值 描述 Action String 是 ListResourceTypes 系统规定参数。取值:ListResourceTypes。

    返回数据 名称 类型 示例值 描述 RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6 请求ID。

    ResourceTypes List ["ALIYUN::ECS::Instance","ALIYUN::RDS::Instance"] 资源类型数组。

    示例 请求示例

    http(s)://ros.aliyuncs.com/?Action=ListResourceTypes &<公共请求参数> 正常返回示例

    XML 格式

    B288A0BE-D927-4888-B0F7-B35EF84B6E6F ALIYUN::ACTIONTRAIL::Trail ALIYUN::ACTIONTRAIL::TrailLogging ALIYUN::ApiGateway::Api ALIYUN::ApiGateway::App ALIYUN::ApiGateway::Authorization ALIYUN::ApiGateway::CustomDomain ALIYUN::ApiGateway::Deployment ALIYUN::ApiGateway::Group ALIYUN::ApiGateway::Signature ALIYUN::ApiGateway::SignatureBinding ALIYUN::ApiGateway::StageConfig ALIYUN::ApiGateway::TrafficControl ALIYUN::ApiGateway::TrafficControlBinding ALIYUN::ApiGateway::VpcAccessConfig ALIYUN::BSS::WaitOrder ALIYUN::CDN::Domain ALIYUN::CDN::DomainConfig ALIYUN::CEN::CenBandwidthLimit ALIYUN::CEN::CenBandwidthPackage ALIYUN::CEN::CenBandwidthPackageAssociation ALIYUN::CEN::CenInstance ALIYUN::CEN::CenInstanceAttachment ALIYUN::CEN::RouteEntry ALIYUN::CS::App ALIYUN::CS::Cluster ALIYUN::DEBUG::Apple ALIYUN::DEBUG::Dummy ALIYUN::DEBUG::Failure ALIYUN::DEBUG::Secret ALIYUN::DEBUG::Update ALIYUN::DNS::Domain ALIYUN::DNS::DomainGroup ALIYUN::DNS::DomainRecord ALIYUN::ECS::AutoSnapshotPolicy ALIYUN::ECS::BandwidthPackage ALIYUN::ECS::Command ALIYUN::ECS::CopyImage ALIYUN::ECS::CustomImage ALIYUN::ECS::DedicatedHost ALIYUN::ECS::DeploymentSet ALIYUN::ECS::Disk ALIYUN::ECS::DiskAttachment ALIYUN::ECS::ForwardEntry ALIYUN::ECS::Instance ALIYUN::ECS::InstanceClone ALIYUN::ECS::InstanceGroup ALIYUN::ECS::InstanceGroupClone ALIYUN::ECS::Invocation ALIYUN::ECS::JoinSecurityGroup ALIYUN::ECS::LaunchTemplate ALIYUN::ECS::NatGateway ALIYUN::ECS::NetworkInterface ALIYUN::ECS::NetworkInterfaceAttachment ALIYUN::ECS::NetworkInterfacePermission ALIYUN::ECS::PrepayInstance ALIYUN::ECS::PrepayInstanceGroupClone ALIYUN::ECS::Route ALIYUN::ECS::SNatEntry ALIYUN::ECS::SSHKeyPair ALIYUN::ECS::SSHKeyPairAttachment ALIYUN::ECS::SecurityGroup ALIYUN::ECS::SecurityGroupClone ALIYUN::ECS::SecurityGroupEgress ALIYUN::ECS::SecurityGroupIngress ALIYUN::ECS::Snapshot ALIYUN::ECS::VPC ALIYUN::ECS::VSwitch ALIYUN::ESS::AlarmTask ALIYUN::ESS::AlarmTaskEnable ALIYUN::ESS::LifecycleHook ALIYUN::ESS::ScalingConfiguration ALIYUN::ESS::ScalingGroup ALIYUN::ESS::ScalingGroupEnable ALIYUN::ESS::ScalingRule ALIYUN::ESS::ScheduledTask ALIYUN::FC::Function ALIYUN::FC::FunctionInvoker ALIYUN::FC::Service ALIYUN::FC::Trigger ALIYUN::KMS::Alias ALIYUN::KMS::Key ALIYUN::MEMCACHE::Instance ALIYUN::MNS::Queue ALIYUN::MNS::Subscription ALIYUN::MNS::Topic ALIYUN::MONGODB::Instance ALIYUN::MONGODB::PrepayInstance ALIYUN::MarketPlace::Image ALIYUN::MarketPlace::Order ALIYUN::NAS::AccessGroup ALIYUN::NAS::AccessRule ALIYUN::NAS::FileSystem ALIYUN::NAS::MountTarget ALIYUN::OSS::Bucket ALIYUN::OTS::Instance ALIYUN::OTS::VpcBinder ALIYUN::PVTZ::Zone ALIYUN::PVTZ::ZoneRecord ALIYUN::PVTZ::ZoneVpcBinder ALIYUN::RAM::AccessKey ALIYUN::RAM::AttachPolicyToRole ALIYUN::RAM::Group ALIYUN::RAM::ManagedPolicy ALIYUN::RAM::Role ALIYUN::RAM::User ALIYUN::RAM::UserToGroupAddition ALIYUN::RDS::Account ALIYUN::RDS::AccountPrivilege ALIYUN::RDS::DBInstance ALIYUN::RDS::DBInstanceParameterGroup ALIYUN::RDS::DBInstanceSecurityIps ALIYUN::RDS::PrepayDBInstance ALIYUN::REDIS::Instance ALIYUN::REDIS::PrepayInstance ALIYUN::ROS::Stack ALIYUN::ROS::WaitCondition ALIYUN::ROS::WaitConditionHandle ALIYUN::SAG::ACL ALIYUN::SAG::ACLAssociation ALIYUN::SAG::ACLRule ALIYUN::SAG::CloudConnectNetwork ALIYUN::SAG::SmartAccessGatewayBinding ALIYUN::SLB::AccessControl ALIYUN::SLB::BackendServerAttachment ALIYUN::SLB::BackendServerToVServerGroupAddition ALIYUN::SLB::Certificate ALIYUN::SLB::DomainExtension ALIYUN::SLB::Listener ALIYUN::SLB::LoadBalancer ALIYUN::SLB::LoadBalancerClone ALIYUN::SLB::MasterSlaveServerGroup ALIYUN::SLB::Rule ALIYUN::SLB::VServerGroup ALIYUN::SLS::ApplyConfigToMachineGroup ALIYUN::SLS::MachineGroup ALIYUN::UIS::Uis ALIYUN::UIS::UisConnection ALIYUN::UIS::UisNode ALIYUN::VPC::EIP ALIYUN::VPC::EIPAssociation ALIYUN::VPC::PeeringRouterInterfaceBinding ALIYUN::VPC::PeeringRouterInterfaceConnection ALIYUN::VPC::RouterInterface ALIYUN::VPC::SnatEntry JSON 格式

    { "RequestId":"B288A0BE-D927-4888-B0F7-B35EF84B6E6F", "ResourceTypes":[ "ALIYUN::ACTIONTRAIL::Trail", "ALIYUN::ACTIONTRAIL::TrailLogging", "ALIYUN::ApiGateway::Api", "ALIYUN::ApiGateway::App", "ALIYUN::ApiGateway::Authorization", "ALIYUN::ApiGateway::CustomDomain", "ALIYUN::ApiGateway::Deployment", "ALIYUN::ApiGateway::Group", "ALIYUN::ApiGateway::Signature", "ALIYUN::ApiGateway::SignatureBinding", "ALIYUN::ApiGateway::StageConfig", "ALIYUN::ApiGateway::TrafficControl", "ALIYUN::ApiGateway::TrafficControlBinding", "ALIYUN::ApiGateway::VpcAccessConfig", "ALIYUN::BSS::WaitOrder", "ALIYUN::CDN::Domain", "ALIYUN::CDN::DomainConfig", "ALIYUN::CEN::CenBandwidthLimit", "ALIYUN::CEN::CenBandwidthPackage", "ALIYUN::CEN::CenBandwidthPackageAssociation", "ALIYUN::CEN::CenInstance", "ALIYUN::CEN::CenInstanceAttachment", "ALIYUN::CEN::RouteEntry", "ALIYUN::CS::App", "ALIYUN::CS::Cluster", "ALIYUN::DEBUG::Apple", "ALIYUN::DEBUG::Dummy", "ALIYUN::DEBUG::Failure", "ALIYUN::DEBUG::Secret", "ALIYUN::DEBUG::Update", "ALIYUN::DNS::Domain", "ALIYUN::DNS::DomainGroup", "ALIYUN::DNS::DomainRecord", "ALIYUN::ECS::AutoSnapshotPolicy", "ALIYUN::ECS::BandwidthPackage", "ALIYUN::ECS::Command", "ALIYUN::ECS::CopyImage", "ALIYUN::ECS::CustomImage", "ALIYUN::ECS::DedicatedHost", "ALIYUN::ECS::DeploymentSet", "ALIYUN::ECS::Disk", "ALIYUN::ECS::DiskAttachment", "ALIYUN::ECS::ForwardEntry", "ALIYUN::ECS::Instance", "ALIYUN::ECS::InstanceClone", "ALIYUN::ECS::InstanceGroup", "ALIYUN::ECS::InstanceGroupClone", "ALIYUN::ECS::Invocation", "ALIYUN::ECS::JoinSecurityGroup", "ALIYUN::ECS::LaunchTemplate", "ALIYUN::ECS::NatGateway", "ALIYUN::ECS::NetworkInterface", "ALIYUN::ECS::NetworkInterfaceAttachment", "ALIYUN::ECS::NetworkInterfacePermission", "ALIYUN::ECS::PrepayInstance", "ALIYUN::ECS::PrepayInstanceGroupClone", "ALIYUN::ECS::Route", "ALIYUN::ECS::SNatEntry", "ALIYUN::ECS::SSHKeyPair", "ALIYUN::ECS::SSHKeyPairAttachment", "ALIYUN::ECS::SecurityGroup", "ALIYUN::ECS::SecurityGroupClone", "ALIYUN::ECS::SecurityGroupEgress", "ALIYUN::ECS::SecurityGroupIngress", "ALIYUN::ECS::Snapshot", "ALIYUN::ECS::VPC", "ALIYUN::ECS::VSwitch", "ALIYUN::ESS::AlarmTask", "ALIYUN::ESS::AlarmTaskEnable", "ALIYUN::ESS::LifecycleHook", "ALIYUN::ESS::ScalingConfiguration", "ALIYUN::ESS::ScalingGroup", "ALIYUN::ESS::ScalingGroupEnable", "ALIYUN::ESS::ScalingRule", "ALIYUN::ESS::ScheduledTask", "ALIYUN::FC::Function", "ALIYUN::FC::FunctionInvoker", "ALIYUN::FC::Service", "ALIYUN::FC::Trigger", "ALIYUN::KMS::Alias", "ALIYUN::KMS::Key", "ALIYUN::MEMCACHE::Instance", "ALIYUN::MNS::Queue", "ALIYUN::MNS::Subscription", "ALIYUN::MNS::Topic", "ALIYUN::MONGODB::Instance", "ALIYUN::MONGODB::PrepayInstance", "ALIYUN::MarketPlace::Image", "ALIYUN::MarketPlace::Order", "ALIYUN::NAS::AccessGroup", "ALIYUN::NAS::AccessRule", "ALIYUN::NAS::FileSystem", "ALIYUN::NAS::MountTarget", "ALIYUN::OSS::Bucket", "ALIYUN::OTS::Instance", "ALIYUN::OTS::VpcBinder", "ALIYUN::PVTZ::Zone", "ALIYUN::PVTZ::ZoneRecord", "ALIYUN::PVTZ::ZoneVpcBinder", "ALIYUN::RAM::AccessKey", "ALIYUN::RAM::AttachPolicyToRole", "ALIYUN::RAM::Group", "ALIYUN::RAM::ManagedPolicy", "ALIYUN::RAM::Role", "ALIYUN::RAM::User", "ALIYUN::RAM::UserToGroupAddition", "ALIYUN::RDS::Account", "ALIYUN::RDS::AccountPrivilege", "ALIYUN::RDS::DBInstance", "ALIYUN::RDS::DBInstanceParameterGroup", "ALIYUN::RDS::DBInstanceSecurityIps", "ALIYUN::RDS::PrepayDBInstance", "ALIYUN::REDIS::Instance", "ALIYUN::REDIS::PrepayInstance", "ALIYUN::ROS::Stack", "ALIYUN::ROS::WaitCondition", "ALIYUN::ROS::WaitConditionHandle", "ALIYUN::SAG::ACL", "ALIYUN::SAG::ACLAssociation", "ALIYUN::SAG::ACLRule", "ALIYUN::SAG::CloudConnectNetwork", "ALIYUN::SAG::SmartAccessGatewayBinding", "ALIYUN::SLB::AccessControl", "ALIYUN::SLB::BackendServerAttachment", "ALIYUN::SLB::BackendServerToVServerGroupAddition", "ALIYUN::SLB::Certificate", "ALIYUN::SLB::DomainExtension", "ALIYUN::SLB::Listener", "ALIYUN::SLB::LoadBalancer", "ALIYUN::SLB::LoadBalancerClone", "ALIYUN::SLB::MasterSlaveServerGroup", "ALIYUN::SLB::Rule", "ALIYUN::SLB::VServerGroup", "ALIYUN::SLS::ApplyConfigToMachineGroup", "ALIYUN::SLS::MachineGroup", "ALIYUN::UIS::Uis", "ALIYUN::UIS::UisConnection", "ALIYUN::UIS::UisNode", "ALIYUN::VPC::EIP", "ALIYUN::VPC::EIPAssociation", "ALIYUN::VPC::PeeringRouterInterfaceBinding", "ALIYUN::VPC::PeeringRouterInterfaceConnection", "ALIYUN::VPC::RouterInterface", "ALIYUN::VPC::SnatEntry" ] } 错误码 访问错误中心查看更多错误码。

    访问公共错误码查看更多错误码。调用ListStackResources接口查询某个资源栈的资源列表。

    调试 您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

    调试 请求参数 名称 类型 是否必选 示例值 描述 RegionId String 是 cn-hangzhou 资源栈所属的地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。

    StackId String 是 4a6c9851-3b0f-4f5f-b4ca-a14bf691f2ff 资源栈ID。

    返回数据 名称 类型 示例值 描述 RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6 请求ID。

    Resources Array 资源对象的列表。

    示例 请求示例

    http(s)://ros.aliyuncs.com/?Action=ListStackResources &RegionId=cn-hangzhou &StackId=4a6c9851-3b0f-4f5f-b4ca-a14bf691f2ff &<公共请求参数> 正常返回示例

    XML 格式

    B288A0BE-D927-4888-B0F7-B35EF84B6E6F 2019-08-01T06:01:23 dummy a ALIYUN::DEBUG::Dummy efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5 test-describe-resource UPDATE_COMPLETE state changed 2019-08-01T06:01:29 2020-02-27T07:47:47 IN_SYNC 2019-08-01T06:01:28 dummy3 a ALIYUN::DEBUG::Dummy efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5 test-describe-resource CREATE_COMPLETE state changed 2019-08-01T06:01:29 2020-02-27T07:47:47 IN_SYNC 2019-08-01T06:01:23 WaitConditionHandle ALIYUN::ROS::WaitConditionHandle efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5 test-describe-resource UPDATE_COMPLETE state changed 2019-08-01T06:01:29 2020-02-27T07:47:47 IN_SYNC 2019-08-01T06:01:23 nested d04af923-e6b7-4272-aeaa-47ec9777cd78 ALIYUN::ROS::Stack efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5 test-describe-resource UPDATE_COMPLETE state changed 2019-08-01T06:01:28 2020-02-27T07:47:47 IN_SYNC JSON 格式

    { "RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F", "Resources": [ { "CreationTime": "2019-08-01T06:01:23", "LogicalResourceId": "dummy", "PhysicalResourceId": "a", "ResourceType": "ALIYUN::DEBUG::Dummy", "StackId": "efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5", "StackName": "test-describe-resource", "Status": "UPDATE_COMPLETE", "StatusReason": "state changed", "UpdatedTime": "2019-08-01T06:01:29", "DriftDetectionTime": "2020-02-27T07:47:47", "ResourceDriftStatus": "IN_SYNC" }, { "CreationTime": "2019-08-01T06:01:28", "LogicalResourceId": "dummy3", "PhysicalResourceId": "a", "ResourceType": "ALIYUN::DEBUG::Dummy", "StackId": "efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5", "StackName": "test-describe-resource", "Status": "CREATE_COMPLETE", "StatusReason": "state changed", "UpdatedTime": "2019-08-01T06:01:29", "DriftDetectionTime": "2020-02-27T07:47:47", "ResourceDriftStatus": "IN_SYNC" }, { "CreationTime": "2019-08-01T06:01:23", "LogicalResourceId": "WaitConditionHandle", "PhysicalResourceId": "", "ResourceType": "ALIYUN::ROS::WaitConditionHandle", "StackId": "efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5", "StackName": "test-describe-resource", "Status": "UPDATE_COMPLETE", "StatusReason": "state changed", "UpdatedTime": "2019-08-01T06:01:29", "DriftDetectionTime": "2020-02-27T07:47:47", "ResourceDriftStatus": "IN_SYNC" }, { "CreationTime": "2019-08-01T06:01:23", "LogicalResourceId": "nested", "PhysicalResourceId": "d04af923-e6b7-4272-aeaa-47ec9777cd78", "ResourceType": "ALIYUN::ROS::Stack", "StackId": "efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5", "StackName": "test-describe-resource", "Status": "UPDATE_COMPLETE", "StatusReason": "state changed", "UpdatedTime": "2019-08-01T06:01:28", "DriftDetectionTime": "2020-02-27T07:47:47", "ResourceDriftStatus": "IN_SYNC" } ] } 错误码 访问错误中心查看更多错误码。

    访问公共错误码查看更多错误码。

    错误代码

    错误信息

    Http状态码

    描述

    StackNotFound

    The Stack ({name}) could not be found.

    404

    资源栈不存在,name为资源栈名称或ID。

    2020-03-24 19:08:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
数据资源的基础设施API总线 立即下载
Terraform - 管理云资源的正确姿势 立即下载
Terraform-管理云资源的正确姿势 立即下载

相关镜像