Queries the configuration of a common switch.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetCommonSwitchConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
No |
The type of the common switch. Note
You can call the ListClientUserDefineRules or ListSystemClientRules operation to obtain the switch type from the response parameter SwitchId. |
USER-DEFINE-RULE-SWITCH-TYPE_180**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
24A20733-10A0-4AF6-BE6B-E3322413**** |
| Data |
object |
The data returned. |
|
| TargetSyncStatus |
string |
The status of the synchronization. Valid values:
|
valid |
| TargetDefault |
string |
Indicates whether the switch is turned on by default for newly added servers. Valid values:
|
add |
Examples
Success response
JSON format
{
"RequestId": "24A20733-10A0-4AF6-BE6B-E3322413****",
"Data": {
"TargetSyncStatus": "valid",
"TargetDefault": "add"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.