Queries the locality configuration.
Operation description
Currently, only deployment resources can be modified.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadApplication |
get |
*Application
|
None | None |
Request syntax
GET /pop/sp/applications/locality/setting HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The ID of the region. |
cn-shanghai |
| NamespaceId |
string |
Yes |
The ID of the microservices namespace. |
cn-shanghai:test |
| AppId |
string |
Yes |
The ID of the application. To obtain the application ID, call the ListApplication operation. For more information, see ListApplication. |
dc190221-22b5-491c-a548-82f5fa1e3e26 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. A value of 200 indicates that the request was successful. |
200 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The message returned. |
success |
| RequestId |
string |
The unique ID of the request. |
1053-08e4-47a5-b2ab-5c0323de**** |
| Success |
boolean |
The result of the request.
|
True |
| Data |
object |
This parameter is not in use. |
|
| Threshold |
number |
The threshold. |
15 |
| Enabled |
boolean |
Indicates whether the feature is enabled. |
true |
Examples
Success response
JSON format
{
"Code": 200,
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "1053-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.