最近更新时间:2023.05.11 16:26:02
首次发布时间:2023.05.11 16:17:41
调用 CreateResourcePool 接口,创建 Spark 资源池。
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
ProjectId | string | 是 | w4***rd65 | 项目 ID。 |
ZoneId | string | 是 | ZoneA | 可用区 ID,您可以通过调用ListZone接口获取可用区。 |
Name | string | 是 | doc-resource-1 | 自定义设置资源池名称。
|
BillingType | enum | 是 | POST | 资源池的计费方式,目前仅支持 POST(按量计费)。 |
VpcId | string | 是 | vpc-id123 | 私有网络 ID。 |
SubnetIdList | list | 是 | ["subnet-id123"] | 子网 ID。 |
SecurityGroupIdList | list | 是 | ["sg-id123"] | 安全组 ID。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
ResourcePoolTrn | string | doc-resource-1-***226 | 资源池的唯一标识符。 |
POST https://open.volcengineapi.com?Action=CreateResourcePool&Version=2021-06-01 Content-Type: application/json Region: cn-beijing ServiceName: spark { "ZoneId": "cn-beijing", "Name": "doc-instance-1", "BillingType": "POST", "VpcId": "vpc-id123", "SubnetIdList": [ "subnet-id123" ], "SecurityGroupIdList": [ "sg-id123" ], "ProjectId": "w4***rd65" }
{ "ResourcePoolTrn": "doc-resource-1-***226" }