Updates a localization configuration.
Operation description
This operation modifies only Deployment resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
update |
*Application
|
None | None |
Request syntax
POST /pop/sp/applications/locality/setting HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The ID of the region where the elastic compute unit (ECU) is located. |
cn-hangzhou |
| NamespaceId |
string |
Yes |
The ID of the namespace. This ID cannot be changed after the namespace is created. The format is [unk]physical space identifier[unk]. |
cn-hangzhou |
| AppId |
string |
Yes |
The ID of the application. You can call the ListApplication operation to obtain this ID. |
bfa00cfb-9642-4292-bb78-1d7d4c86004c |
| Enabled |
boolean |
Yes |
Specifies whether the setting is active:
|
false |
| Threshold |
number |
No |
The total number of items that satisfy the threshold expression. |
15 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Code |
integer |
The status code of the request. |
200 |
| Message |
string |
The response message. |
success |
| RequestId |
string |
The ID of the request. |
a5281053-08e4-47a5-b2ab-5c0323de***** |
| Success |
boolean |
Indicates whether the call was successful. |
True |
| Data |
object |
The result of the update. |
|
| Threshold |
number |
The threshold of the ECU. |
15 |
| Enabled |
boolean |
Whether it is active. |
true |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Code": 200,
"Message": "success",
"RequestId": "a5281053-08e4-47a5-b2ab-5c0323de*****",
"Success": true,
"Data": {
"Threshold": 15,
"Enabled": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.