首页 运维编排服务 API参考 API目录 应用管理 应用分组 DeployApplicationGroup - 部署应用分组

DeployApplicationGroup - 部署应用分组

部署应用分组。

调试

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

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

部署地域。

cn-hangzhou
ApplicationNamestring

应用名称。

MyApplication
DeployParametersstring

应用分组部署配置信息。

{ "TemplateURL": "https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json", "Parameters": { "ZoneId": "cn-hangzhou-k", "ProjectName": "test", "SystemDiskSize": 40, "InstanceChargeType": "PostPaid", "SecurityGroupId": "sg-bp1a4374akk63jl8tddy", "VSwitchId": "vsw-bp1fcvc3zn0jrag86rrlm", "SystemDiskCategory": "cloud_essd", "InstancePassword": "******", "InternetChargeType": "PayByTraffic", "InstanceCount": 1, "InternetMaxBandwidthOut": 0, "VpcId": "vpc-bp1i99boyas8i8m9t3skp", "EcsImageId": "centos_8_5_x64_20G_alibase_20211228.vhd", "DataDiskSize": 100, "EcsInstanceType": "ecs.s6-c1m4.small", "DataDiskCategory": "cloud_efficiency", "EnvironmentCommandId": "c-hz028fc3g031gcg" }
Namestring

应用分组名称。

MyApplicationGroup

返回参数

名称类型描述示例值
object
RequestIdstring

请求ID。

8AF4800A-A316-589A-90C4-313B1FEEB084

示例

请求示例

http(s)://[Endpoint]/?Action=DeployApplicationGroup
&RegionId=cn-hangzhou
&ApplicationName=MyApplication
&DeployParameters={       "TemplateURL": "https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json",       "Parameters": {         "ZoneId": "cn-hangzhou-k",         "ProjectName": "test",         "SystemDiskSize": 40,         "InstanceChargeType": "PostPaid",         "SecurityGroupId": "sg-bp1a4374akk63jl8tddy",         "VSwitchId": "vsw-bp1fcvc3zn0jrag86rrlm",         "SystemDiskCategory": "cloud_essd",         "InstancePassword": "******",         "InternetChargeType": "PayByTraffic",         "InstanceCount": 1,         "InternetMaxBandwidthOut": 0,         "VpcId": "vpc-bp1i99boyas8i8m9t3skp",         "EcsImageId": "centos_8_5_x64_20G_alibase_20211228.vhd",         "DataDiskSize": 100,         "EcsInstanceType": "ecs.s6-c1m4.small",         "DataDiskCategory": "cloud_efficiency",         "EnvironmentCommandId": "c-hz028fc3g031gcg"       }
&Name=MyApplicationGroup
&公共请求参数

正常返回示例

JSON格式

{
  "ApplicationGroup": {
    "Status": "Deployed",
    "DeployRegionId": "cn-hangzhou",
    "Description": "",
    "ApplicationName": "测试",
    "ImportTagKey": "测试",
    "StatusReason": "Stack CREATE completed successfully",
    "CmsGroupId": "196343713",
    "CreateDate": "2022-02-24T07:42:10Z",
    "Name": "test",
    "ImportTagValue": "test",
    "UpdateDate": "2022-02-24T07:58:33Z",
    "DeployParameters": {
      "TemplateURL": "https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json",
      "Parameters": {
        "ZoneId": "cn-hangzhou-k",
        "ProjectName": "test",
        "SystemDiskSize": 40,
        "InstanceChargeType": "PostPaid",
        "SecurityGroupId": "sg-bp1a4374akk63jl8tddy",
        "VSwitchId": "vsw-bp1fcvc3zn0jrag86rrlm",
        "SystemDiskCategory": "cloud_essd",
        "InstancePassword": "******",
        "InternetChargeType": "PayByTraffic",
        "InstanceCount": 1,
        "InternetMaxBandwidthOut": 0,
        "VpcId": "vpc-bp1i99boyas8i8m9t3skp",
        "EcsImageId": "centos_8_5_x64_20G_alibase_20211228.vhd",
        "DataDiskSize": 100,
        "EcsInstanceType": "ecs.s6-c1m4.small",
        "DataDiskCategory": "cloud_efficiency",
        "EnvironmentCommandId": "c-hz028fc3g031gcg"
      },
      "RegionId": "cn-hangzhou",
      "StackName": "stack-1645688523068-3no_AKhOJ",
      "DisableRollback": true
    },
    "DeployOutputs": {
      "Outputs": [
        {
          "Description": "No description given",
          "OutputKey": "InstanceIds"
        }
      ],
      "StackId": "6ef4b860-f6e7-4145-8d22-f4a2a32363e1"
    }
  },
  "RequestId": "8AF4800A-A316-589A-90C4-313B1FEEB084"
}

XML格式

<DeployApplicationGroupResponse>
    <ApplicationGroup>
        <Status>Deployed</Status>
        <DeployRegionId>cn-hangzhou</DeployRegionId>
        <Description/>
        <ApplicationName>测试</ApplicationName>
        <ImportTagKey>测试</ImportTagKey>
        <StatusReason>Stack CREATE completed successfully</StatusReason>
        <CmsGroupId>196343713</CmsGroupId>
        <CreateDate>2022-02-24T07:42:10Z</CreateDate>
        <Name>test</Name>
        <ImportTagValue>test</ImportTagValue>
        <UpdateDate>2022-02-24T07:58:33Z</UpdateDate>
        <DeployParameters>
            <TemplateURL>https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json</TemplateURL>
            <Parameters>
                <ZoneId>cn-hangzhou-k</ZoneId>
                <ProjectName>test</ProjectName>
                <SystemDiskSize>40</SystemDiskSize>
                <InstanceChargeType>PostPaid</InstanceChargeType>
                <SecurityGroupId>sg-bp1a4374akk63jl8tddy</SecurityGroupId>
                <VSwitchId>vsw-bp1fcvc3zn0jrag86rrlm</VSwitchId>
                <SystemDiskCategory>cloud_essd</SystemDiskCategory>
                <InstancePassword>******</InstancePassword>
                <InternetChargeType>PayByTraffic</InternetChargeType>
                <InstanceCount>1</InstanceCount>
                <InternetMaxBandwidthOut>0</InternetMaxBandwidthOut>
                <VpcId>vpc-bp1i99boyas8i8m9t3skp</VpcId>
                <EcsImageId>centos_8_5_x64_20G_alibase_20211228.vhd</EcsImageId>
                <DataDiskSize>100</DataDiskSize>
                <EcsInstanceType>ecs.s6-c1m4.small</EcsInstanceType>
                <DataDiskCategory>cloud_efficiency</DataDiskCategory>
                <EnvironmentCommandId>c-hz028fc3g031gcg</EnvironmentCommandId>
            </Parameters>
            <RegionId>cn-hangzhou</RegionId>
            <StackName>stack-1645688523068-3no_AKhOJ</StackName>
            <DisableRollback>true</DisableRollback>
        </DeployParameters>
        <DeployOutputs>
            <Outputs>
                <Description>No description given</Description>
                <OutputKey>InstanceIds</OutputKey>
            </Outputs>
            <StackId>6ef4b860-f6e7-4145-8d22-f4a2a32363e1</StackId>
        </DeployOutputs>
    </ApplicationGroup>
    <RequestId>8AF4800A-A316-589A-90C4-313B1FEEB084</RequestId>
</DeployApplicationGroupResponse>

错误码

访问错误中心查看更多错误码。

阿里云首页 运维编排服务 相关技术圈