云应用引擎 CAE-创建环境:请求示例

时间:2024-11-14 17:12:19

请求示例

创建环境,环境名称为“test”,组织名“cae-test”,绑定 虚拟私有云VPC

POST https://{endpoint}/v1/{project_id}/cae/environments

{
  "api_version" : "v1",
  "kind" : "Environment",
  "metadata" : {
    "annotations" : {
      "vpc_id" : "9b320498-6c39-4fe7-a758-79636dd68a82",
      "group_name" : "cae-test",
      "type" : "exclusive",
      "subnet_id" : "1c75734a-132c-459f-86e2-a3db86a66b86",
      "security_group_id" : "e6c5a41d-8f47-48bd-a21b-0a4b10766aef"
    },
    "name" : "test"
  }
}
support.huaweicloud.com/api-cae/CreateEnvironment.html