Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.apis.html">apis</a> . <a href="apigee_v1.organizations.apis.deployments.html">deployments</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 | <code><a href="#list">list(parent, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Lists all deployments of an API proxy.</p> |
| 83 | <h3>Method Details</h3> |
| 84 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 85 | <code class="details" id="close">close()</code> |
| 86 | <pre>Close httplib2 connections.</pre> |
| 87 | </div> |
| 88 | |
| 89 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 90 | <code class="details" id="list">list(parent, x__xgafv=None)</code> |
| 91 | <pre>Lists all deployments of an API proxy. |
| 92 | |
| 93 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 94 | parent: string, Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}` (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 95 | x__xgafv: string, V1 error format. |
| 96 | Allowed values |
| 97 | 1 - v1 error format |
| 98 | 2 - v2 error format |
| 99 | |
| 100 | Returns: |
| 101 | An object of the form: |
| 102 | |
| 103 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 104 | "deployments": [ # List of deployments. |
| 105 | { |
| 106 | "apiProxy": "A String", # API proxy. |
| 107 | "deployStartTime": "A String", # Time the API proxy was marked `deployed` in the control plane in millisconds since epoch. |
| 108 | "environment": "A String", # Environment. |
| 109 | "errors": [ # Errors reported for this deployment. Populated only when state == ERROR. This field is not populated in List APIs. |
| 110 | { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 111 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 112 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 113 | { |
| 114 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 115 | }, |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 116 | ], |
| 117 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 118 | }, |
| 119 | ], |
| 120 | "instances": [ # Status reported by each runtime instance. This field is not populated in List APIs. |
| 121 | { # The status of a deployment as reported by a single instance. |
| 122 | "deployedRevisions": [ # Revisions currently deployed in MPs. |
| 123 | { # Revisions deployed in the MPs. |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 124 | "percentage": 42, # Percentage of MP replicas reporting this revision. |
| 125 | "revision": "A String", # API proxy revision reported as deployed. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 126 | }, |
| 127 | ], |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 128 | "deployedRoutes": [ # Current routes deployed in the ingress routing table. A route which is missing will appear in `missing_routes`. |
| 129 | { # Route deployed in the ingress routing table. |
| 130 | "basepath": "A String", # Base path in the routing table. |
| 131 | "envgroup": "A String", # Environment group where this route is installed. |
| 132 | "environment": "A String", # Destination environment. This will be empty if the route is not yet reported. |
| 133 | "percentage": 42, # Percentage of ingress replicas reporting this route. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 134 | }, |
| 135 | ], |
| 136 | "instance": "A String", # ID of the instance reporting the status. |
| 137 | }, |
| 138 | ], |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 139 | "pods": [ # Status reported by runtime pods. This field is not populated for List APIs. **Note**: **This field is deprecated**. Runtime versions 1.3 and above report instance level status rather than pod status. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 140 | { |
| 141 | "appVersion": "A String", # Version of the application running in the pod. |
| 142 | "deploymentStatus": "A String", # Status of the deployment. Valid values include: - `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not yet reported on the deployment. |
| 143 | "deploymentStatusTime": "A String", # Time the deployment status was reported in milliseconds since epoch. |
| 144 | "deploymentTime": "A String", # Time the proxy was deployed in milliseconds since epoch. |
| 145 | "podName": "A String", # Name of the pod which is reporting the status. |
| 146 | "podStatus": "A String", # Overall status of the pod (not this specific deployment). Valid values include: - `active`: Up to date. - `stale` : Recently out of date. Pods that have not reported status in a long time are excluded from the output. |
| 147 | "podStatusTime": "A String", # Time the pod status was reported in milliseconds since epoch. |
| 148 | "statusCode": "A String", # Code associated with the deployment status. |
| 149 | "statusCodeDetails": "A String", # Human-readable message associated with the status code. |
| 150 | }, |
| 151 | ], |
| 152 | "revision": "A String", # API proxy revision. |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 153 | "routeConflicts": [ # Conflicts in the desired state routing configuration. The presence of conflicts does not cause the state to be `ERROR`, but it will mean that some of the deployment's base paths are not routed to its environment. If the conflicts change, the state will transition to `PROGRESSING` until the latest configuration is rolled out to all instances. This field is not populated in List APIs. |
| 154 | { # Describes a routing conflict that may cause a deployment not to receive traffic at some base path. |
| 155 | "conflictingDeployment": { # Tuple representing a base path and the deployment containing it. # Existing base path/deployment causing the conflict. |
| 156 | "apiProxy": "A String", # Name of the deployed API proxy revision containing the base path. |
| 157 | "basepath": "A String", # Base path receiving traffic. |
| 158 | "environment": "A String", # Name of the environment in which the proxy is deployed. |
| 159 | "revision": "A String", # Name of the deployed API proxy revision containing the base path. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 160 | }, |
yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 161 | "description": "A String", # Human-readable description of this conflict. |
| 162 | "environmentGroup": "A String", # Name of the environment group in which this conflict exists. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 163 | }, |
| 164 | ], |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 165 | "serviceAccount": "A String", # The full resource name of Cloud IAM Service Account that this deployment is using, eg, `projects/-/serviceAccounts/{email}`. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 166 | "state": "A String", # Current state of the deployment. This field is not populated in List APIs. |
| 167 | }, |
| 168 | ], |
| 169 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 170 | </div> |
| 171 | |
| 172 | </body></html> |