执行部署计划
场景描述
本章节指导用户通过API执行部署计划,并基于部署计划创建边缘业务。API的调用方法请参见如何调用API 。
约束限制
执行部署计划前,请预先创建好待执行的部署计划。
操作步骤
- 执行部署计划。
- 接口相关信息
URI格式:POST /v1/deployments/{deployment_id}/deploy
详情请参见执行部署计划。
- 请求示例
POST https://{endpoint}/v1/deployments/7e78be27-b5c3-44c3-8129-11111111111/deploy
{endpoint}信息请从地区和终端节点获取。
- 响应示例
{ "id": "8b809a1a-d478-4c19-86e0-d77bd43be5c9", "name": "iec-m83t", "deployment_id": "7e78be27-b5c3-44c3-8129-11111111111", "status": "creating", "job_id": "1258b5a9586349f2bc2ddec873ebc66b" }
- 接口相关信息
- 查询边缘业务详情
- 接口相关信息
URI格式:GET /v1/edgeclouds/{edgecloud_id}
详情请参见查询边缘业务详情。
- 请求示例
GET https://{endpoint}/v1/edgeclouds/8b809a1a-d478-4c19-86e0-d77bd43be5c9
{endpoint}信息请从地区和终端节点获取。
- 响应示例
{ "id": "8b809a1a-d478-4c19-86e0-d77bd43be5c9", "name": "iec-m83t", "stacks": [ { "id": "51f14af0-9ca7-4520-ab00-d90a46bf8eba", "name": "stack-bm3m-xi_a-001", "resources": [ { "name": "res-uoio", "image_ref": "00000000-0000-0000-0000-000000000008", "flavor_ref": "c6.large.2", "admin_pass": "******", "net_config": { "vpc_id": "c4b78eca-8ce4-4e7e-8aba-f7da2c7b1816", "subnets": null, "nic_num": 1, "associate_mode": "" }, "bandwidth": { "size": 0, "sharetype": "WHOLE" }, "count": 1, "root_volume": { "volume_type": "SAS", "size": 40 }, "security_groups": [ { "id": "18289138-5b8b-11eb-bcf8-fa16406a65c4" } ] } ] } ], "coverage": { "coverage_policy": "centralize", "coverage_level": "city", "coverage_sites": [ { "site": "xi'an", "i18n_site": "西安市", "demands": [ { "demand_count": 1 } ] } ] }, "success_num": 1, "failed_num": 0, "status": "inService", "edge_regions": 1, "create_at": "2021-02-27T09:56:21.460947Z", "update_at": "2021-02-27T09:57:35.289858Z" }
- 接口相关信息