Domain name for API request: emr.tencentcloudapi.com.
This API is available for clusters with OpenLDAP components configured.
This API is used to add user lists (user management).
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: AddUsersForUserManager. |
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 string ID |
UserManagerUserList.N | Yes | Array of UserInfoForUserManager | User information list |
Parameter Name | Type | Description |
---|---|---|
SuccessUserList | Array of String | The user list that is successfully added Note: This field may return null , indicating that no valid value can be obtained. |
FailedUserList | Array of String | The user list that is not successfully added 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: AddUsersForUserManager
<Common request parameters>
{
"InstanceId": "xx",
"UserManagerUserList": [
{
"UserName": "test1",
"UserGroup": "test1",
"PassWord": "test1",
"ReMark": "test1"
},
{
"UserName": "test2",
"UserGroup": "test2",
"PassWord": "test2",
"ReMark": "test2"
},
{
"UserName": "test3",
"UserGroup": "test3",
"PassWord": "test3",
"ReMark": "test3"
},
{
"UserName": "test4",
"UserGroup": "test4",
"PassWord": "test4",
"ReMark": "test4"
}
]
}
{
"Response": {
"FailedUserList": [],
"RequestId": "782d3570-9f82-4bff-974a-17cf684fdfe9",
"SuccessUserList": [
"test1",
"test2",
"test3",
"test4"
]
}
}
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 |
---|---|
FailedOperation | Operation failed. |
InternalError | Internal error. |
InternalError.CamCgwError | An error occurred while calling another service API. |
InvalidParameter.InvalidInstanceName | Invalid cluster name. |
ResourceNotFound.InstanceNotFound | The instance was not found. |
Was this page helpful?