Sets or purges the AD server information for a gateway.
Operation description
When you call this operation, note the following:
-
If you want to add an AD server, ensure that the AD server information is valid and the gateway can access the AD server using its DNS. You can call the SetGatewayDNS operation to set the DNS for the Cloud Storage Gateway.
-
If you add AD server information and information for another AD server already exists, the new information overwrites the existing information.
-
To purge the AD server information, set the IsEnabled parameter to false.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:SetGatewayADInfo |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The ID of the gateway. |
gw-000eg44nmxbsfwbv**** |
| Username |
string |
No |
The username that is used to connect to the AD server. Valid values:
|
ale**** |
| Password |
string |
No |
The password that is used to connect to the AD server. Valid values:
|
12**** |
| ServerIp |
string |
No |
The IP address of the AD server. Valid values:
|
12.12.x.x |
| IsEnabled |
boolean |
No |
Specifies whether to enable the AD server. Valid values:
Important
|
true |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| TaskId |
string |
The ID of the task. |
t-000c6hshwukkcfn**** |
| Message |
string |
The message that is returned. |
successful |
| RequestId |
string |
The ID of the request. |
89398CFB-4EB6-4C7E-BB3C-EF213AC8FA** |
| Code |
string |
The status code. A status code of 200 indicates that the request was successful. |
200 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"TaskId": "t-000c6hshwukkcfn****",
"Message": "successful",
"RequestId": "89398CFB-4EB6-4C7E-BB3C-EF213AC8FA**",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyADUserName | You must enter a valid username. | You must enter a valid username. |
| 400 | EmptyADPassword | You must enter a valid password. | You must enter a valid password. |
| 400 | InvalidADServerIp | The specified IP address for the server is invalid. You must enter a valid IP address. | The specified IP address for the server is invalid. You must enter a valid IP address. |
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | You must enter a valid ID for the gateway. |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The specified gateway does not exist. You must specify a valid parameter. |
| 400 | GatewayInOperation | The gateway is processing requests . Try again later. | The gateway is busy. Try again later. |
| 500 | InternalError | Unexpected error. Try again later. If the error persists after several tries, we recommend that you submit a ticket. | Unexpected error. Try again later. If the error persists after several tries, we recommend that you submit a ticket. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.