最近更新时间:2024.03.22 17:19:35
首次发布时间:2023.08.21 14:31:38
API 名称:CreatePool
。
API 域名:open.volcengineapi.com
。
API 描述:为 GTM 实例创建地址池。
POST
除了以下参数,您还需要 对请求进行鉴权。
参数名称 | 数据类型 | 参数类型 | 是否必选 | 参数说明 |
---|---|---|---|---|
Action | String | 查询参数 | 是 | API 的名称。该参数的取值为 CreatePool 。 |
Version | String | 查询参数 | 是 | API 的版本。该参数的取值是 2023-01-01 。 |
GtmId | String | 请求正文参数 | 是 | GTM 实例的 UUID。您可以通过 ListGtms API 获取 UUID。 |
Pool | Object | 请求正文参数 | 是 | 地址池。 |
参数名称 | 数据类型 | 参数说明 |
---|---|---|
RequestId | String | 标识本次请求的 ID。 |
Action | String | Action 查询参数的值。 |
Version | String | API 版本。 |
Service | String | 服务类型。 |
Region | String | 服务所在区域。 |
参数名称 | 数据类型 | 参数说明 |
---|---|---|
PoolId | String | 地址池的 ID。 |
POST https://open.volcengineapi.com?Action=CreatePool&Version=2023-01-01 { "GtmId": "2a8f91c4-aa07-4ae4-9ebc-68750d611822", "Pool": { "Name": "example-pool", "Remark": "", "AddrType": "ipv4", "Addresses": [ { "Value": "1.1.1.1", "Weight": 3, "RectifiedGeos": ["mobile"], "Mode": "auto" } ] } }
{ "ResponseMetadata": { "RequestId": "20230727152318D60DAA2A8AF0E65F9619", "Action": "CreatePool", "Version": "2023-01-01", "Service": "GTM", "Region": "cn-north-1" }, "Result": { "PoolId": "cf65f46e-6a19-4d15-99b5-684a6ce4e7ff" } }