Reading the Scaling Operation of a Specified Deployment
Function
This API is used to read the scaling operation of a specified Deployment.
URI
GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
name |
Yes |
Name of the Scale. |
|
namespace |
Yes |
Object name and auth scope, such as for teams and projects. |
|
pretty |
No |
If 'true', then the output is pretty printed. |
Request
N/A
Response
Response parameters
For the description about response parameters, see Table 79.
Example response
{
"kind": "Scale",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "deploy-ex-12130306",
"namespace": "ns-12130306-s",
"selfLink": "/apis/extensions/v1beta1/namespaces/ns-12130306-s/deployments/deploy-ex-12130306/scale",
"uid": "934db57d-dfb3-11e7-9c19-fa163e2d897b",
"resourceVersion": "418871",
"creationTimestamp": "2017-12-13T03:13:22Z"
},
"spec": {
"replicas": 2
},
"status": {
"replicas": 2,
"selector": {
"cce/appgroup": "deploy-ex-test"
},
"targetSelector": "cce/appgroup=deploy-ex-test"
}
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
This operation succeeds, and a Deployment resource object is returned. |
For more status codes, see Status Codes.
Last Article: Reading the Status of a Deployment
Next Article: Listing All Deployments of a User
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.