Generates a command that is used to add a self-managed Kubernetes cluster.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterName | string | Yes | The name of the Kubernetes cluster. | test |
GroupId | long | Yes | The group ID. | 11341690 |
Vendor | string | Yes | The service provider of the cloud asset. Valid values:
| Tencent |
ExpireDate | long | Yes | The time at which the container ends to be added. | 1711951508388 |
AuditRegionId | string | No | The ID of the region in which the audit logs are stored. | cn-hangzhou |
AuditProject | string | No | The Simple Log Service project that is used to store the audit logs. | k8s-log-custom-huxintest1018-2 |
AuditLogStore | string | No | The Simple Log Service Logstore that is used to store the audit logs. | audit-cf6baf6afa106eca665296fdf68b65bf |
AliyunYundunGatewayProjectName | string | No | This parameter is deprecated. | None |
AliyunYundunGatewayApiName | string | No | This parameter is deprecated. | None |
AliyunYundunGatewayPopName | string | No | This parameter is deprecated. | None |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "061955B2-BC40-589F-AF63-C40A901EE279",
"Data": {
"ClusterName": "test",
"AliUid": 0,
"InstallKey": "BC66185***",
"ClusterId": "c8ca91e0907d94efaba7fb0827eb9****",
"GroupId": "11618788",
"ExpireDate": 1804230578566,
"AuditRegionId": "cn-hangzhou",
"AuditProject": "k8s-log-custom-your-project-sd89ehaaa",
"AuditLogStore": "audit-cf6baf6afa106eca665296fdf68b65bf"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history