All Products
Search
Document Center

Security Center:GenerateK8sAccessInfo

Last Updated:Feb 20, 2024

Generates a command that is used to add a self-managed Kubernetes cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterNamestringYes

The name of the Kubernetes cluster.

test
GroupIdlongYes

The group ID.

11341690
VendorstringYes

The service provider of the cloud asset. Valid values:

  • Tencent
  • HUAWEICLOUD
  • Azure
  • AWS
  • Others
Tencent
ExpireDatelongYes

The time at which the container ends to be added.

1711951508388
AuditRegionIdstringNo

The ID of the region in which the audit logs are stored.

cn-hangzhou
AuditProjectstringNo

The Simple Log Service project that is used to store the audit logs.

k8s-log-custom-huxintest1018-2
AuditLogStorestringNo

The Simple Log Service Logstore that is used to store the audit logs.

audit-cf6baf6afa106eca665296fdf68b65bf
AliyunYundunGatewayProjectNamestringNo

This parameter is deprecated.

None
AliyunYundunGatewayApiNamestringNo

This parameter is deprecated.

None
AliyunYundunGatewayPopNamestringNo

This parameter is deprecated.

None

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

061955B2-BC40-589F-AF63-C40A901EE279
Dataobject

The data returned.

ClusterNamestring

The cluster name.

test
AliUidlong

The ID of the Alibaba Cloud account.

1766185894104***
InstallKeystring

The installation key of the server.

BC66185***
ClusterIdstring

The cluster ID.

c8ca91e0907d94efaba7fb0827eb9****
GroupIdstring

The server group ID.

11618788
ExpireDatelong

The expiration time. Unit: milliseconds.

1804230578566
AuditRegionIdstring

The ID of the region in which the server is deployed.

cn-hangzhou
AuditProjectstring

The Simple Log Service project that is used to store the audit logs.

k8s-log-custom-your-project-sd89ehaaa
AuditLogStorestring

The Simple Log Service Logstore that is used to store the audit logs.

audit-cf6baf6afa106eca665296fdf68b65bf

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history