暂停开发机实例
POST /compute/aicl/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/containerInstances/{container_instance_name}:suspend
请求头(Request Header)
请求参数(Request Parameters
名称 | 类型 | 必须 | 位置 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|---|
subscription_name | string | 是 | path | - | - | 订阅名称. |
resource_group_name | string | 是 | path | - | - | 资源组. |
zone | string | 是 | path | - | - | 可用区. |
container_instance_name | string | 是 | path | - | - | 开发机实例资源名称. |
请求体(Request Body)
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
subscription_name | string | 是 | - | - | 订阅名称. |
resource_group_name | string | 是 | - | - | 资源组. |
zone | string | 是 | - | - | 可用区. |
container_instance_name | string | 是 | - | - | 开发机实例资源名称. |
is_save_snapshot | boolean | 否 | - | - | 是否保存快照. |
snapshot | object | 否 | - | - | 开发机快照. |
其中,snapshot
的参数如下
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
name | string | 是 | - | - | 快照名称. |
ccr_namespace | string | 是 | - | - | 容器镜像空间. |
请求示例(Request Example)
curl --location 'aicl-openapi-zh.sensecoreapi.dev/compute/aicl-openapi-zh/v1/subscriptions/5ca8ea29-75db-4f42-a08e-52ed52fc1348/resourceGroups/default/zones/cn-sh-01a/containerInstances/c4ac55ef-e9e4-409a-b5ed-c9a6d5976697:suspend' \
--header 'Content-Type: application/json' \
--data '{
"is_save_snapshot": false,
"snapshot": {
"name": "aicl-openapi-zh-snapshot-name",
"ccr_namespace": "test"
}
}'
响应示例(Response Example)
正常HTTP状态码为200,无特殊返回。