Querying Policy Group Attributes
Function
This API is used to query policy group attributes.
Request
Request headers
Table 2 describes the request headers.
Parameter |
Description |
Mandatory |
Example |
---|---|---|---|
ResourceType |
Resource type. |
Yes |
Default value: app, indicates querying the policy group attributes of an application. |
Content-Type |
Content type, which is application/json;charset=utf-8. |
Yes |
application/json;charset=utf-8 |
Cluster-Id |
Cluster ID. |
Yes |
- |
Namespace |
Namespace. |
Yes |
- |
Deployment-Name |
Application name. |
Yes |
- |
Response
Response parameters
Table 3 describes the response parameters.
Parameter |
Type |
Description |
---|---|---|
errorCode |
String |
Error code. |
errorMessage |
String |
Error details. |
config |
See Table 4. |
Set of policy group attributes. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of a policy group attribute. |
max_instances |
Integer |
Maximum number of instances. |
min_instances |
Integer |
Minimum number of instances. |
cooldown_time |
Integer |
Cooldown period (unit: s). |
Example response
{ "errorCode": "SVCSTG.PE.0", "errorMessage": "", "config": { "id":"f9c7f57e-b1dc-4ef0-a009-ff2848776803", "max_instances": 100,//Maximum number of instances "min_instances": 1,//Minimum number of instances "cooldown_time": 60//Cooldown period, which is the execution interval between two policies. } }
Error Code
Error Code |
Message |
Solution |
---|---|---|
SVCSTG.PE.4031012 |
Failed to verify the project ID. |
Check whether the parameter meets requirements. |
SVCSTG.PE.5001203 |
Query error. |
Contact technical support. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.