Updates the weight of a DNS record based on the specified parameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:UpdateDNSSLBWeight |
update |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
Specifies the language of the request and response. Default value: zh. Valid values:
|
en |
| UserClientIp |
string |
No |
The IP address of the user. |
192.0.2.1 |
| RecordId |
string |
Yes |
The ID of the DNS record. You can call the DescribeDomainRecords operation to retrieve the ID. |
9******** |
| Weight |
integer |
Yes |
The new weight. Valid values: 1 to 100. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
536E9CAD-DB30-4647-AC87-AA5CC38C5382 |
| RecordId |
string |
The ID of the DNS record. |
9******* |
| Weight |
integer |
The updated weight. |
2 |
Examples
Success response
JSON format
{
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"RecordId": "9*******",
"Weight": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.