下载 OpenAPI 规范:下载
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "privateEndpoints": [
- {
- "id": "string",
- "description": "string",
- "cloudProvider": "gcp",
- "region": "ap-south-1"
}
], - "byocConfig": [
- {
- "id": "string",
- "state": "infra-ready",
- "accountName": "string",
- "regionId": "ap-south-1",
- "cloudProvider": "gcp"
}
]
}
]
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "privateEndpoints": [
- {
- "id": "string",
- "description": "string",
- "cloudProvider": "gcp",
- "region": "ap-south-1"
}
], - "byocConfig": [
- {
- "id": "string",
- "state": "infra-ready",
- "accountName": "string",
- "regionId": "ap-south-1",
- "cloudProvider": "gcp"
}
]
}
}
更新组织字段。需要 ADMIN 认证密钥角色。
organizationId 必需 | string <uuid> 要更新的组织的 ID。 |
name | string 组织名称。 |
object (OrganizationPrivateEndpointsPatch) |
{- "name": "string",
- "privateEndpoints": {
- "add": [
- {
- "id": "string",
- "description": "string",
- "cloudProvider": "gcp",
- "region": "ap-south-1"
}
], - "remove": [
- {
- "id": "string",
- "description": "string",
- "cloudProvider": "gcp",
- "region": "ap-south-1"
}
]
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "privateEndpoints": [
- {
- "id": "string",
- "description": "string",
- "cloudProvider": "gcp",
- "region": "ap-south-1"
}
], - "byocConfig": [
- {
- "id": "string",
- "state": "infra-ready",
- "accountName": "string",
- "regionId": "ap-south-1",
- "cloudProvider": "gcp"
}
]
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
]
}
在组织中创建新服务,并返回当前服务状态和用于访问服务的密码。服务以异步方式启动。
organizationId 必需 | string <uuid> 将拥有该服务的组织的 ID。 |
name | string 服务名称。最多 50 个字符的字母数字字符串,可以包含空格。 |
provider | string 枚举: "aws" "gcp" "azure" 云提供商 |
region | string 枚举: "ap-south-1" "ap-southeast-1" "eu-central-1" "eu-west-1" "eu-west-2" "us-east-1" "us-east-2" "us-west-2" "ap-southeast-2" "ap-northeast-1" "us-east1" "us-central1" "europe-west4" "asia-southeast1" "eastus" "eastus2" "westus3" "germanywestcentral" 服务区域。 |
tier | string 枚举: "development" "production" "dedicated_high_mem" "dedicated_high_cpu" "dedicated_standard" "dedicated_standard_n2d_standard_4" "dedicated_standard_n2d_standard_8" "dedicated_standard_n2d_standard_32" "dedicated_standard_n2d_standard_128" "dedicated_standard_n2d_standard_32_16SSD" "dedicated_standard_n2d_standard_64_24SSD" 服务层级: 'development','production','dedicated_high_mem','dedicated_high_cpu','dedicated_standard','dedicated_standard_n2d_standard_4','dedicated_standard_n2d_standard_8','dedicated_standard_n2d_standard_32','dedicated_standard_n2d_standard_128','dedicated_standard_n2d_standard_32_16SSD','dedicated_standard_n2d_standard_64_24SSD'。生产服务可伸缩,开发服务大小固定。Azure 服务不支持开发层级 |
对象数组 objects (IpAccessListEntry) 允许访问服务的 IP 地址列表 | |
minTotalMemoryGb | number 12 的倍数 [ 24 .. 708 ] 已弃用 已弃用 - 对于具有非默认副本数量的服务,此值不准确。自动伸缩期间三个工作节点的最小内存(Gb)。仅适用于“production”服务。必须是 12 的倍数且大于或等于 24。 |
maxTotalMemoryGb | number 12 的倍数 [ 24 .. 708 ] 已弃用 已弃用 - 对于具有非默认副本数量的服务,此值不准确。自动伸缩期间三个工作节点的最大内存(Gb)。仅适用于“production”服务。对于非付费服务,必须是 12 的倍数且小于或等于 360;对于付费服务,则为 708。 |
minReplicaMemoryGb | number 4 的倍数 [ 8 .. 236 ] 自动伸缩期间每个副本的最小总内存(Gb)。必须是 4 的倍数且大于或等于 8。 |
maxReplicaMemoryGb | number 4 的倍数 [ 8 .. 236 ] 自动伸缩期间每个副本的最大总内存(Gb)。必须是 4 的倍数且小于或等于 120*(对于非付费服务)或 236*(对于付费服务)。* - 最大副本大小取决于您所选区域中云提供商的硬件可用性。 |
numReplicas | number [ 1 .. 20 ] 服务的副本数。必须介于 1 到 20 之间。请联系支持部门以启用此功能。 |
idleScaling | boolean 设置为 true 时,允许服务在空闲时缩减到零。默认为 true。 |
idleTimeoutMinutes | number 设置最小空闲超时时间(分钟)。必须 >= 5 分钟。 |
isReadonly | boolean 如果此服务是只读的,则为 True。仅当提供了 dataWarehouseId 时,它才能是只读的。 |
dataWarehouseId | string 包含此服务的数据仓库 |
backupId | string <uuid> 可选的备份 ID,用作新服务的初始状态。使用时,新实例的区域和层级必须与原始实例的值相同。 |
encryptionKey | string 可选的客户提供的磁盘加密密钥 |
encryptionAssumedRoleIdentifier | string 用于磁盘加密的可选角色 |
privateEndpointIds | 字符串数组 strings 私有终端列表 |
privatePreviewTermsChecked | boolean 接受私有预览条款和条件。仅在私有预览的情况下,在组织中创建第一个服务时才需要 |
releaseChannel | string 枚举: "default" "fast" 如果您想尽快获得新的 ClickHouse 版本,请选择 fast。您将更快地获得新功能,但出现错误的风险也更高。此功能仅适用于生产服务。 |
byocId | string 这是在为自带云 (BYOC) 设置区域后返回的 ID。当指定 byocId 参数时,minReplicaMemoryGb 和 maxReplicaGb 参数也是必需的,其值包含在以下大小中:28、60、124、188、252、380。 |
{- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "tier": "development",
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "isReadonly": true,
- "dataWarehouseId": "string",
- "backupId": "eb7cea43-10b2-42dd-8819-ab9aed37565f",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "privateEndpointIds": [
- "string"
], - "privatePreviewTermsChecked": true,
- "releaseChannel": "default",
- "byocId": "string"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "service": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}, - "password": "string"
}
}
返回属于该组织的服务
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 请求的服务的 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
}
更新基本服务详情,例如服务名称或 IP 访问列表。
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 要更新的服务的 ID。 |
name | string 服务名称。最多 50 个字符的字母数字字符串,可以包含空格。 |
object (IpAccessListPatch) | |
object (InstancePrivateEndpointsPatch) | |
releaseChannel | string 枚举: "default" "fast" 如果您想尽快获得新的 ClickHouse 版本,请选择 fast。您将更快地获得新功能,但出现错误的风险也更高。此功能仅适用于生产服务。 |
{- "name": "string",
- "ipAccessList": {
- "add": [
- {
- "source": "string",
- "description": "string"
}
], - "remove": [
- {
- "source": "string",
- "description": "string"
}
]
}, - "privateEndpointIds": {
- "add": [
- "string"
], - "remove": [
- "string"
]
}, - "releaseChannel": "default"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
}
这是一项实验性功能。请联系支持部门以启用它。
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
serviceId 必需 | string <uuid> 请求的服务的 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "string",
- "openApiKeys": [
- "string"
], - "roles": [
- "sql_console_read_only"
], - "allowedOrigins": "string"
}
}
这是一项实验性功能。请联系支持部门以启用它。
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
serviceId 必需 | string <uuid> 请求的服务的 ID。 |
roles | 字符串数组 strings 项目枚举: "sql_console_read_only" "sql_console_admin" 角色 |
openApiKeys | 字符串数组 strings 服务查询终端的版本 |
allowedOrigins | string 允许的来源,以逗号分隔的域名列表 |
{- "roles": [
- "sql_console_read_only"
], - "openApiKeys": [
- "string"
], - "allowedOrigins": "string"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "string",
- "openApiKeys": [
- "string"
], - "roles": [
- "sql_console_read_only"
], - "allowedOrigins": "string"
}
}
启动或停止服务
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 要更新状态的服务的 ID。 |
command | string 枚举: "start" "stop" 更改状态的命令: 'start','stop'。 |
{- "command": "start"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
}
更新服务的最小和最大总内存限制以及空闲模式伸缩行为。内存设置仅适用于“production”服务,并且必须是 12GB 的倍数,从 24GB 开始。请联系支持部门以启用 numReplicas 的调整。
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 要更新伸缩参数的服务的 ID。 |
minTotalMemoryGb | number 12 的倍数 [ 24 .. 708 ] 已弃用 已弃用 - 对于具有非默认副本数量的服务,此值不准确。自动伸缩期间三个工作节点的最小内存(Gb)。仅适用于“production”服务。必须是 12 的倍数且大于或等于 24。 |
maxTotalMemoryGb | number 12 的倍数 [ 24 .. 708 ] 已弃用 已弃用 - 对于具有非默认副本数量的服务,此值不准确。自动伸缩期间三个工作节点的最大内存(Gb)。仅适用于“production”服务。对于非付费服务,必须是 12 的倍数且小于或等于 360;对于付费服务,则为 708。 |
numReplicas | number [ 1 .. 20 ] 服务的副本数。必须介于 1 到 20 之间。请联系支持部门以启用此功能。 |
idleScaling | boolean 设置为 true 时,允许服务在空闲时缩减到零。默认为 true。 |
idleTimeoutMinutes | number 设置最小空闲超时时间(分钟)。必须 >= 5 分钟。 |
{- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
}
更新每个副本的最小和最大内存限制以及服务的空闲模式伸缩行为。内存设置仅适用于“production”服务,并且必须是 4GB 的倍数,从 8GB 开始。请联系支持部门以启用 numReplicas 的调整。
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 要更新伸缩参数的服务的 ID。 |
minReplicaMemoryGb | number 4 的倍数 [ 8 .. 236 ] 单个副本的最小自动伸缩内存(Gb)。仅适用于“production”服务。必须是 4 的倍数且大于或等于 8。 |
maxReplicaMemoryGb | number 4 的倍数 [ 8 .. 236 ] 单个副本的最大自动伸缩内存(Gb)。仅适用于“production”服务。必须是 4 的倍数且小于或等于 120(对于非付费服务)或 236(对于付费服务)。 |
numReplicas | number [ 1 .. 20 ] 服务的副本数。必须介于 1 到 20 之间。请联系支持部门以启用此功能。 |
idleScaling | boolean 设置为 true 时,允许服务在空闲时缩减到零。默认为 true。 |
idleTimeoutMinutes | number 设置最小空闲超时时间(分钟)。必须 >= 5 分钟。 |
{- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "provider": "aws",
- "region": "ap-south-1",
- "state": "starting",
- "endpoints": [
- {
- "protocol": "https",
- "host": "string",
- "port": 0
}
], - "tier": "development",
- "minTotalMemoryGb": 48,
- "maxTotalMemoryGb": 360,
- "minReplicaMemoryGb": 16,
- "maxReplicaMemoryGb": 120,
- "numReplicas": 3,
- "idleScaling": true,
- "idleTimeoutMinutes": 0,
- "ipAccessList": [
- {
- "source": "string",
- "description": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "encryptionKey": "string",
- "encryptionAssumedRoleIdentifier": "string",
- "iamRole": "string",
- "privateEndpointIds": [
- "string"
], - "dataWarehouseId": "string",
- "isPrimary": true,
- "isReadonly": true,
- "releaseChannel": "default",
- "byocId": "string"
}
}
为服务设置新密码
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 要更新密码的服务的 ID。 |
newPasswordHash | string 可选的密码哈希值。用于避免通过网络传输密码。如果未提供,则会生成一个新密码并在响应中提供。否则,将使用此哈希值。算法:echo -n "yourpassword" | sha256sum | tr -d '-' | xxd -r -p | base64 |
newDoubleSha1Hash | string MySQL 协议的可选双重 SHA1 密码哈希值。如果未提供 newPasswordHash,则将忽略此键,并将使用生成的密码。算法:echo -n "yourpassword" | sha1sum | tr -d '-' | xxd -r -p | sha1sum | tr -d '-' |
{- "newPasswordHash": "string",
- "newDoubleSha1Hash": "string"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "password": "string"
}
}
返回服务的所有备份列表。最新的备份在列表中排在最前面。
organizationId 必需 | string <uuid> 拥有备份的组织的 ID。 |
serviceId 必需 | string <uuid> 创建备份的服务 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "done",
- "serviceId": "string",
- "startedAt": "2019-08-24T14:15:22Z",
- "finishedAt": "2019-08-24T14:15:22Z",
- "sizeInBytes": 0,
- "durationInSeconds": 0,
- "type": "full"
}
]
}
返回单个备份信息。
organizationId 必需 | string <uuid> 拥有备份的组织的 ID。 |
serviceId 必需 | string <uuid> 创建备份的服务 ID。 |
backupId 必需 | string <uuid> 请求的备份 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "done",
- "serviceId": "string",
- "startedAt": "2019-08-24T14:15:22Z",
- "finishedAt": "2019-08-24T14:15:22Z",
- "sizeInBytes": 0,
- "durationInSeconds": 0,
- "type": "full"
}
}
返回服务备份配置。
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 服务的 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "backupPeriodInHours": 0,
- "backupRetentionPeriodInHours": 0,
- "backupStartTime": "string"
}
}
更新服务备份配置。需要 ADMIN 身份验证密钥角色。将属性设置为 null 值,会将属性重置为其默认值。
organizationId 必需 | string <uuid> 拥有该服务的组织的 ID。 |
serviceId 必需 | string <uuid> 服务的 ID。 |
backupPeriodInHours | number 每次备份之间的小时间隔。 |
backupRetentionPeriodInHours | number 备份可用的最短持续时间(小时)。 |
backupStartTime | string 执行备份的时间,格式为 HH:MM(以 UTC 时区评估)。定义后,备份周期将重置为每 24 小时一次。 |
{- "backupPeriodInHours": 0,
- "backupRetentionPeriodInHours": 0,
- "backupStartTime": "string"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "backupPeriodInHours": 0,
- "backupRetentionPeriodInHours": 0,
- "backupStartTime": "string"
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "state": "enabled",
- "roles": [
- "admin"
], - "keySuffix": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z",
- "usedAt": "2019-08-24T14:15:22Z"
}
]
}
创建新的 API 密钥。
organizationId 必需 | string <uuid> 将拥有密钥的组织的 ID。 |
name | string 密钥的名称。 |
expireAt | string <date-time> 密钥过期的的时间戳。如果不存在或为空,则密钥永不过期。ISO-8601。 |
state | string Enum: "enabled" "disabled" 密钥的初始状态:“enabled”(启用)、“disabled”(禁用)。如果未提供,则新密钥将为“enabled”(启用)。 |
object (ApiKeyHashData) | |
roles | 字符串数组 strings Items Enum: "admin" "developer" "org_member" "billing" 分配给密钥的角色列表。至少包含 1 个元素。 |
{- "name": "string",
- "expireAt": "2019-08-24T14:15:22Z",
- "state": "enabled",
- "hashData": {
- "keyIdHash": "string",
- "keyIdSuffix": "string",
- "keySecretHash": "string"
}, - "roles": [
- "admin"
]
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "key": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "state": "enabled",
- "roles": [
- "admin"
], - "keySuffix": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z",
- "usedAt": "2019-08-24T14:15:22Z"
}, - "keyId": "string",
- "keySecret": "string"
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "state": "enabled",
- "roles": [
- "admin"
], - "keySuffix": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z",
- "usedAt": "2019-08-24T14:15:22Z"
}
}
更新 API 密钥属性。
organizationId 必需 | string <uuid> 拥有密钥的组织的 ID。 |
keyId 必需 | string <uuid> 要更新的密钥 ID。 |
name | string 密钥的名称 |
roles | 字符串数组 strings Items Enum: "admin" "developer" "org_member" "billing" 分配给密钥的角色列表。至少包含 1 个元素。 |
expireAt | string <date-time> 密钥过期的的时间戳。如果不存在或为空,则密钥永不过期。ISO-8601。 |
state | string Enum: "enabled" "disabled" 密钥的状态:“enabled”(启用)、“disabled”(禁用)。 |
{- "name": "string",
- "roles": [
- "admin"
], - "expireAt": "2019-08-24T14:15:22Z",
- "state": "enabled"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "state": "enabled",
- "roles": [
- "admin"
], - "keySuffix": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z",
- "usedAt": "2019-08-24T14:15:22Z"
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "userId": "string",
- "name": "string",
- "role": "admin",
- "joinedAt": "2019-08-24T14:15:22Z"
}
]
}
返回单个组织成员的详细信息。
organizationId 必需 | string <uuid> 成员所属的组织的 ID。 |
userId 必需 | string <uuid> 请求的用户 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "userId": "string",
- "name": "string",
- "role": "admin",
- "joinedAt": "2019-08-24T14:15:22Z"
}
}
更新组织成员角色。
organizationId 必需 | string <uuid> 成员所属的组织的 ID。 |
userId 必需 | string <uuid> 要修补的用户的 ID |
role | string Enum: "admin" "developer" "org_member" "billing" 成员在组织中的角色。 |
{- "role": "admin"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "userId": "string",
- "name": "string",
- "role": "admin",
- "joinedAt": "2019-08-24T14:15:22Z"
}
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "role": "admin",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z"
}
]
}
创建组织邀请。
organizationId 必需 | string <uuid> 要邀请用户加入的组织的 ID。 |
string <email> 被邀请用户的电子邮件。只有具有此电子邮件的用户才能使用邀请加入。电子邮件以小写形式存储。 | |
role | string Enum: "admin" "developer" "org_member" "billing" 成员在组织中的角色。 |
{- "role": "admin"
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "role": "admin",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z"
}
}
返回单个组织邀请的详细信息。
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
invitationId 必需 | string <uuid> 请求的组织的 ID。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "role": "admin",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z"
}
}
返回所有组织活动的列表。
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
from_date | string <date-time> 搜索的开始日期 |
to_date | string <date-time> 搜索的结束日期 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": [
- {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "type": "create_organization",
- "actorType": "user",
- "actorId": "string",
- "actorDetails": "string",
- "actorIpAddress": "string",
- "organizationId": "string",
- "serviceId": "string"
}
]
}
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "type": "create_organization",
- "actorType": "user",
- "actorId": "string",
- "actorDetails": "string",
- "actorIpAddress": "string",
- "organizationId": "string",
- "serviceId": "string"
}
}
这是一项实验性功能。请联系支持部门以启用它。
返回查询时间段内(最多 31 天)组织的每日、每实体组织使用成本记录的总计和列表。请求和响应中的所有日期均基于 UTC 时区进行评估。
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
from_date 必需 | string <date-time> 报告的开始日期,例如 2024-12-19。 |
to_date 必需 | string <date-time> 报告的结束日期(包括在内),例如 2024-12-20。此日期不能晚于 from_date 之后 30 天(最长查询期限为 31 天)。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "grandTotalCHC": 0,
- "costs": {
- "date": "2019-08-24",
- "entityType": "service",
- "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
- "entityName": "string",
- "metrics": {
- "computeCHC": 0,
- "storageCHC": 0,
- "backupCHC": 0
}, - "totalCHC": 0,
- "locked": true
}
}
}
设置私有终端所需的信息
organizationId 必需 | string <uuid> 请求的组织的 ID。 |
Cloud provider identifier 必需 | string 云提供商标识符。aws、gcp 或 azure 之一。 |
Cloud provider region 必需 | string 特定云提供商内的区域标识符。 |
{- "status": 200,
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "result": {
- "endpointServiceId": "string"
}
}