Domain name for API request: emr.tencentcloudapi.com.
This API is available for clusters with OpenLDAP components configured.
This API is used to export users in batches. For a Kerberos cluster, set NeedKeytabInfo
to true
to obtain the download link of the Keytab file. If SupportDownLoadKeyTab
is true
, but DownLoadKeyTabUrl
is null, the Keytab file is not ready yet (being generated) in the backend.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeUsersForUserManager. |
Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
Region | No | String | Common Params. This parameter is not required for this API. |
InstanceId | Yes | String | Cluster instance ID |
PageNo | Yes | Integer | Page number |
PageSize | Yes | Integer | Page size |
UserManagerFilter | No | UserManagerFilter | User list query filter |
NeedKeytabInfo | No | Boolean | Whether the Keytab file information is required. This field is only valid for clusters with Kerberos enabled and defaults to false . |
Parameter Name | Type | Description |
---|---|---|
TotalCnt | Integer | Total number |
UserManagerUserList | Array of UserManagerUserBriefInfo | User information list Note: This field may return null, indicating that no valid value can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: emr.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeUsersForUserManager
<Common request parameters>
{
"InstanceId": "xx",
"UserManagerFilter": {
"UserName": "xx"
},
"PageSize": 0,
"PageNo": 0,
"NeedKeytabInfo": true
}
{
"Response": {
"RequestId": "782d3570-9f82-4bff-974a-17cf684fdfe9",
"TotalCnt": 4,
"UserManagerUserList": [
{
"CreateTime": "2022-05-12 17:40:23",
"DownLoadKeyTabUrl": "",
"SupportDownLoadKeyTab": true,
"UserGroup": "test4",
"UserName": "test4",
"UserType": "NormalUser"
},
{
"CreateTime": "2022-05-12 17:40:23",
"DownLoadKeyTabUrl": "",
"SupportDownLoadKeyTab": true,
"UserGroup": "test3",
"UserName": "test3",
"UserType": "NormalUser"
},
{
"CreateTime": "2022-05-12 17:40:23",
"DownLoadKeyTabUrl": "https://cosulr/cluster/test2.keytab",
"SupportDownLoadKeyTab": true,
"UserGroup": "test2",
"UserName": "test2",
"UserType": "NormalUser"
},
{
"CreateTime": "2022-05-12 17:40:23",
"DownLoadKeyTabUrl": "https://cosulr/cluster/test1.keytab",
"SupportDownLoadKeyTab": true,
"UserGroup": "test1",
"UserName": "test1",
"UserType": "NormalUser"
}
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InvalidParameter.InvalidInstanceName | Invalid cluster name. |
ResourceNotFound.ClusterNotFound | The instance was not found. |
ResourceNotFound.InstanceNotFound | The instance was not found. |
UnauthorizedOperation.CheckCamAuth | Unauthorized operation. |
Was this page helpful?