John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [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="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.targetPools.html">targetPools</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#addHealthCheck">addHealthCheck(project, region, targetPool, body)</a></code></p> |
| 79 | <p class="firstline">Adds health check URL to targetPool.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#addInstance">addInstance(project, region, targetPool, body)</a></code></p> |
| 82 | <p class="firstline">Adds instance url to targetPool.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</a></code></p> |
| 85 | <p class="firstline">Retrieves the list of target pools grouped by scope.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> |
| 88 | <p class="firstline">Retrieves the next page of results.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#delete">delete(project, region, targetPool)</a></code></p> |
| 91 | <p class="firstline">Deletes the specified TargetPool resource.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#get">get(project, region, targetPool)</a></code></p> |
| 94 | <p class="firstline">Returns the specified TargetPool resource.</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#getHealth">getHealth(project, region, targetPool, body)</a></code></p> |
| 97 | <p class="firstline">Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool.</p> |
| 98 | <p class="toc_element"> |
| 99 | <code><a href="#insert">insert(project, region, body)</a></code></p> |
| 100 | <p class="firstline">Creates a TargetPool resource in the specified project and region using the data included in the request.</p> |
| 101 | <p class="toc_element"> |
| 102 | <code><a href="#list">list(project, region, maxResults=None, pageToken=None, filter=None)</a></code></p> |
| 103 | <p class="firstline">Retrieves the list of TargetPool resources available to the specified project and region.</p> |
| 104 | <p class="toc_element"> |
| 105 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 106 | <p class="firstline">Retrieves the next page of results.</p> |
| 107 | <p class="toc_element"> |
| 108 | <code><a href="#removeHealthCheck">removeHealthCheck(project, region, targetPool, body)</a></code></p> |
| 109 | <p class="firstline">Removes health check URL from targetPool.</p> |
| 110 | <p class="toc_element"> |
| 111 | <code><a href="#removeInstance">removeInstance(project, region, targetPool, body)</a></code></p> |
| 112 | <p class="firstline">Removes instance URL from targetPool.</p> |
| 113 | <p class="toc_element"> |
| 114 | <code><a href="#setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</a></code></p> |
| 115 | <p class="firstline">Changes backup pool configurations.</p> |
| 116 | <h3>Method Details</h3> |
| 117 | <div class="method"> |
| 118 | <code class="details" id="addHealthCheck">addHealthCheck(project, region, targetPool, body)</code> |
| 119 | <pre>Adds health check URL to targetPool. |
| 120 | |
| 121 | Args: |
| 122 | project: string, A parameter (required) |
| 123 | region: string, Name of the region scoping this request. (required) |
| 124 | targetPool: string, Name of the TargetPool resource to which health_check_url is to be added. (required) |
| 125 | body: object, The request body. (required) |
| 126 | The object takes the form of: |
| 127 | |
| 128 | { |
| 129 | "healthChecks": [ # Health check URLs to be added to targetPool. |
| 130 | { |
| 131 | "healthCheck": "A String", |
| 132 | }, |
| 133 | ], |
| 134 | } |
| 135 | |
| 136 | |
| 137 | Returns: |
| 138 | An object of the form: |
| 139 | |
| 140 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 141 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 142 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 143 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 144 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 145 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 146 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 147 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 148 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 149 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 150 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 151 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 152 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 153 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 154 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 155 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 156 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 157 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 158 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 159 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 160 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 161 | }, |
| 162 | ], |
| 163 | }, |
| 164 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 165 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 166 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 167 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 168 | "name": "A String", # [Output Only] Name of the resource. |
| 169 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 170 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 171 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 172 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 173 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 174 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 175 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 176 | }, |
| 177 | ], |
| 178 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 179 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 180 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 181 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 182 | }</pre> |
| 183 | </div> |
| 184 | |
| 185 | <div class="method"> |
| 186 | <code class="details" id="addInstance">addInstance(project, region, targetPool, body)</code> |
| 187 | <pre>Adds instance url to targetPool. |
| 188 | |
| 189 | Args: |
| 190 | project: string, A parameter (required) |
| 191 | region: string, Name of the region scoping this request. (required) |
| 192 | targetPool: string, Name of the TargetPool resource to which instance_url is to be added. (required) |
| 193 | body: object, The request body. (required) |
| 194 | The object takes the form of: |
| 195 | |
| 196 | { |
| 197 | "instances": [ # URLs of the instances to be added to targetPool. |
| 198 | { |
| 199 | "instance": "A String", |
| 200 | }, |
| 201 | ], |
| 202 | } |
| 203 | |
| 204 | |
| 205 | Returns: |
| 206 | An object of the form: |
| 207 | |
| 208 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 209 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 210 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 211 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 212 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 213 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 214 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 215 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 216 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 217 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 218 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 219 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 220 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 221 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 222 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 223 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 224 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 225 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 226 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 227 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 228 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 229 | }, |
| 230 | ], |
| 231 | }, |
| 232 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 233 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 234 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 235 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 236 | "name": "A String", # [Output Only] Name of the resource. |
| 237 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 238 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 239 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 240 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 241 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 242 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 243 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 244 | }, |
| 245 | ], |
| 246 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 247 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 248 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 249 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 250 | }</pre> |
| 251 | </div> |
| 252 | |
| 253 | <div class="method"> |
| 254 | <code class="details" id="aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</code> |
| 255 | <pre>Retrieves the list of target pools grouped by scope. |
| 256 | |
| 257 | Args: |
| 258 | project: string, Name of the project scoping this request. (required) |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 259 | maxResults: integer, Maximum count of results to be returned. |
| 260 | pageToken: string, Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request. |
| 261 | filter: string, Filter expression for filtering listed resources. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 262 | |
| 263 | Returns: |
| 264 | An object of the form: |
| 265 | |
| 266 | { |
| 267 | "nextPageToken": "A String", # A token used to continue a truncated list request (output only). |
| 268 | "items": { # A map of scoped target pool lists. |
| 269 | "a_key": { # Name of the scope containing this set of target pools. |
| 270 | "warning": { # Informational warning which replaces the list of addresses when the list is empty. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 271 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 272 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 273 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 274 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 275 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 276 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 277 | }, |
| 278 | ], |
| 279 | }, |
| 280 | "targetPools": [ # List of target pools contained in this scope. |
| 281 | { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool. |
| 282 | "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. |
| 283 | # |
| 284 | # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 285 | # |
| 286 | # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 287 | "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. |
| 288 | "region": "A String", # URL of the region where the target pool resides (output only). |
| 289 | "kind": "compute#targetPool", # Type of the resource. |
| 290 | "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy. |
| 291 | "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool. |
| 292 | "A String", |
| 293 | ], |
| 294 | "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1]. |
| 295 | # |
| 296 | # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 297 | # |
| 298 | # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 299 | "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times. |
| 300 | "A String", |
| 301 | ], |
| 302 | "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). |
| 303 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 304 | "selfLink": "A String", # Server defined URL for the resource (output only). |
| 305 | "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. |
| 306 | }, |
| 307 | ], |
| 308 | }, |
| 309 | }, |
| 310 | "kind": "compute#targetPoolAggregatedList", # Type of resource. |
| 311 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 312 | "selfLink": "A String", # Server defined URL for this resource (output only). |
| 313 | }</pre> |
| 314 | </div> |
| 315 | |
| 316 | <div class="method"> |
| 317 | <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> |
| 318 | <pre>Retrieves the next page of results. |
| 319 | |
| 320 | Args: |
| 321 | previous_request: The request for the previous page. (required) |
| 322 | previous_response: The response from the request for the previous page. (required) |
| 323 | |
| 324 | Returns: |
| 325 | A request object that you can call 'execute()' on to request the next |
| 326 | page. Returns None if there are no more items in the collection. |
| 327 | </pre> |
| 328 | </div> |
| 329 | |
| 330 | <div class="method"> |
| 331 | <code class="details" id="delete">delete(project, region, targetPool)</code> |
| 332 | <pre>Deletes the specified TargetPool resource. |
| 333 | |
| 334 | Args: |
| 335 | project: string, Name of the project scoping this request. (required) |
| 336 | region: string, Name of the region scoping this request. (required) |
| 337 | targetPool: string, Name of the TargetPool resource to delete. (required) |
| 338 | |
| 339 | Returns: |
| 340 | An object of the form: |
| 341 | |
| 342 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 343 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 344 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 345 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 346 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 347 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 348 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 349 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 350 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 351 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 352 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 353 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 354 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 355 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 356 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 357 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 358 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 359 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 360 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 361 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 362 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 363 | }, |
| 364 | ], |
| 365 | }, |
| 366 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 367 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 368 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 369 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 370 | "name": "A String", # [Output Only] Name of the resource. |
| 371 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 372 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 373 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 374 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 375 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 376 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 377 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 378 | }, |
| 379 | ], |
| 380 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 381 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 382 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 383 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 384 | }</pre> |
| 385 | </div> |
| 386 | |
| 387 | <div class="method"> |
| 388 | <code class="details" id="get">get(project, region, targetPool)</code> |
| 389 | <pre>Returns the specified TargetPool resource. |
| 390 | |
| 391 | Args: |
| 392 | project: string, Name of the project scoping this request. (required) |
| 393 | region: string, Name of the region scoping this request. (required) |
| 394 | targetPool: string, Name of the TargetPool resource to return. (required) |
| 395 | |
| 396 | Returns: |
| 397 | An object of the form: |
| 398 | |
| 399 | { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool. |
| 400 | "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. |
| 401 | # |
| 402 | # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 403 | # |
| 404 | # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 405 | "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. |
| 406 | "region": "A String", # URL of the region where the target pool resides (output only). |
| 407 | "kind": "compute#targetPool", # Type of the resource. |
| 408 | "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy. |
| 409 | "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool. |
| 410 | "A String", |
| 411 | ], |
| 412 | "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1]. |
| 413 | # |
| 414 | # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 415 | # |
| 416 | # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 417 | "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times. |
| 418 | "A String", |
| 419 | ], |
| 420 | "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). |
| 421 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 422 | "selfLink": "A String", # Server defined URL for the resource (output only). |
| 423 | "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. |
| 424 | }</pre> |
| 425 | </div> |
| 426 | |
| 427 | <div class="method"> |
| 428 | <code class="details" id="getHealth">getHealth(project, region, targetPool, body)</code> |
| 429 | <pre>Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool. |
| 430 | |
| 431 | Args: |
| 432 | project: string, A parameter (required) |
| 433 | region: string, Name of the region scoping this request. (required) |
| 434 | targetPool: string, Name of the TargetPool resource to which the queried instance belongs. (required) |
| 435 | body: object, The request body. (required) |
| 436 | The object takes the form of: |
| 437 | |
| 438 | { |
| 439 | "instance": "A String", |
| 440 | } |
| 441 | |
| 442 | |
| 443 | Returns: |
| 444 | An object of the form: |
| 445 | |
| 446 | { |
| 447 | "kind": "compute#targetPoolInstanceHealth", # Type of resource. |
| 448 | "healthStatus": [ |
| 449 | { |
| 450 | "instance": "A String", # URL of the instance resource. |
| 451 | "healthState": "A String", # Health state of the instance. |
| 452 | "ipAddress": "A String", # The IP address represented by this resource. |
Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 453 | "port": 42, # The port on the instance. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 454 | }, |
| 455 | ], |
| 456 | }</pre> |
| 457 | </div> |
| 458 | |
| 459 | <div class="method"> |
| 460 | <code class="details" id="insert">insert(project, region, body)</code> |
| 461 | <pre>Creates a TargetPool resource in the specified project and region using the data included in the request. |
| 462 | |
| 463 | Args: |
| 464 | project: string, Name of the project scoping this request. (required) |
| 465 | region: string, Name of the region scoping this request. (required) |
| 466 | body: object, The request body. (required) |
| 467 | The object takes the form of: |
| 468 | |
| 469 | { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool. |
| 470 | "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. |
| 471 | # |
| 472 | # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 473 | # |
| 474 | # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 475 | "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. |
| 476 | "region": "A String", # URL of the region where the target pool resides (output only). |
| 477 | "kind": "compute#targetPool", # Type of the resource. |
| 478 | "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy. |
| 479 | "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool. |
| 480 | "A String", |
| 481 | ], |
| 482 | "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1]. |
| 483 | # |
| 484 | # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 485 | # |
| 486 | # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 487 | "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times. |
| 488 | "A String", |
| 489 | ], |
| 490 | "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). |
| 491 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 492 | "selfLink": "A String", # Server defined URL for the resource (output only). |
| 493 | "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. |
| 494 | } |
| 495 | |
| 496 | |
| 497 | Returns: |
| 498 | An object of the form: |
| 499 | |
| 500 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 501 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 502 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 503 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 504 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 505 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 506 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 507 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 508 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 509 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 510 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 511 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 512 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 513 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 514 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 515 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 516 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 517 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 518 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 519 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 520 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 521 | }, |
| 522 | ], |
| 523 | }, |
| 524 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 525 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 526 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 527 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 528 | "name": "A String", # [Output Only] Name of the resource. |
| 529 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 530 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 531 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 532 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 533 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 534 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 535 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 536 | }, |
| 537 | ], |
| 538 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 539 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 540 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 541 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 542 | }</pre> |
| 543 | </div> |
| 544 | |
| 545 | <div class="method"> |
| 546 | <code class="details" id="list">list(project, region, maxResults=None, pageToken=None, filter=None)</code> |
| 547 | <pre>Retrieves the list of TargetPool resources available to the specified project and region. |
| 548 | |
| 549 | Args: |
| 550 | project: string, Name of the project scoping this request. (required) |
| 551 | region: string, Name of the region scoping this request. (required) |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 552 | maxResults: integer, Maximum count of results to be returned. |
| 553 | pageToken: string, Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previous list request. |
| 554 | filter: string, Filter expression for filtering listed resources. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 555 | |
| 556 | Returns: |
| 557 | An object of the form: |
| 558 | |
| 559 | { # Contains a list of TargetPool resources. |
| 560 | "nextPageToken": "A String", # A token used to continue a truncated list request (output only). |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 561 | "items": [ # A list of TargetPool resources. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 562 | { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool. |
| 563 | "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. |
| 564 | # |
| 565 | # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 566 | # |
| 567 | # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 568 | "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. |
| 569 | "region": "A String", # URL of the region where the target pool resides (output only). |
| 570 | "kind": "compute#targetPool", # Type of the resource. |
| 571 | "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy. |
| 572 | "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool. |
| 573 | "A String", |
| 574 | ], |
| 575 | "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1]. |
| 576 | # |
| 577 | # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool. |
| 578 | # |
| 579 | # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. |
| 580 | "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times. |
| 581 | "A String", |
| 582 | ], |
| 583 | "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). |
| 584 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 585 | "selfLink": "A String", # Server defined URL for the resource (output only). |
| 586 | "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. |
| 587 | }, |
| 588 | ], |
| 589 | "kind": "compute#targetPoolList", # Type of resource. |
| 590 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 591 | "selfLink": "A String", # Server defined URL for this resource (output only). |
| 592 | }</pre> |
| 593 | </div> |
| 594 | |
| 595 | <div class="method"> |
| 596 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 597 | <pre>Retrieves the next page of results. |
| 598 | |
| 599 | Args: |
| 600 | previous_request: The request for the previous page. (required) |
| 601 | previous_response: The response from the request for the previous page. (required) |
| 602 | |
| 603 | Returns: |
| 604 | A request object that you can call 'execute()' on to request the next |
| 605 | page. Returns None if there are no more items in the collection. |
| 606 | </pre> |
| 607 | </div> |
| 608 | |
| 609 | <div class="method"> |
| 610 | <code class="details" id="removeHealthCheck">removeHealthCheck(project, region, targetPool, body)</code> |
| 611 | <pre>Removes health check URL from targetPool. |
| 612 | |
| 613 | Args: |
| 614 | project: string, A parameter (required) |
| 615 | region: string, Name of the region scoping this request. (required) |
| 616 | targetPool: string, Name of the TargetPool resource to which health_check_url is to be removed. (required) |
| 617 | body: object, The request body. (required) |
| 618 | The object takes the form of: |
| 619 | |
| 620 | { |
| 621 | "healthChecks": [ # Health check URLs to be removed from targetPool. |
| 622 | { |
| 623 | "healthCheck": "A String", |
| 624 | }, |
| 625 | ], |
| 626 | } |
| 627 | |
| 628 | |
| 629 | Returns: |
| 630 | An object of the form: |
| 631 | |
| 632 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 633 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 634 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 635 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 636 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 637 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 638 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 639 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 640 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 641 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 642 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 643 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 644 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 645 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 646 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 647 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 648 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 649 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 650 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 651 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 652 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 653 | }, |
| 654 | ], |
| 655 | }, |
| 656 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 657 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 658 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 659 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 660 | "name": "A String", # [Output Only] Name of the resource. |
| 661 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 662 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 663 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 664 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 665 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 666 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 667 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 668 | }, |
| 669 | ], |
| 670 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 671 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 672 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 673 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 674 | }</pre> |
| 675 | </div> |
| 676 | |
| 677 | <div class="method"> |
| 678 | <code class="details" id="removeInstance">removeInstance(project, region, targetPool, body)</code> |
| 679 | <pre>Removes instance URL from targetPool. |
| 680 | |
| 681 | Args: |
| 682 | project: string, A parameter (required) |
| 683 | region: string, Name of the region scoping this request. (required) |
| 684 | targetPool: string, Name of the TargetPool resource to which instance_url is to be removed. (required) |
| 685 | body: object, The request body. (required) |
| 686 | The object takes the form of: |
| 687 | |
| 688 | { |
| 689 | "instances": [ # URLs of the instances to be removed from targetPool. |
| 690 | { |
| 691 | "instance": "A String", |
| 692 | }, |
| 693 | ], |
| 694 | } |
| 695 | |
| 696 | |
| 697 | Returns: |
| 698 | An object of the form: |
| 699 | |
| 700 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 701 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 702 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 703 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 704 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 705 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 706 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 707 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 708 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 709 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 710 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 711 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 712 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 713 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 714 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 715 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 716 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 717 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 718 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 719 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 720 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 721 | }, |
| 722 | ], |
| 723 | }, |
| 724 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 725 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 726 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 727 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 728 | "name": "A String", # [Output Only] Name of the resource. |
| 729 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 730 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 731 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 732 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 733 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 734 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 735 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 736 | }, |
| 737 | ], |
| 738 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 739 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 740 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 741 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 742 | }</pre> |
| 743 | </div> |
| 744 | |
| 745 | <div class="method"> |
| 746 | <code class="details" id="setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</code> |
| 747 | <pre>Changes backup pool configurations. |
| 748 | |
| 749 | Args: |
| 750 | project: string, Name of the project scoping this request. (required) |
| 751 | region: string, Name of the region scoping this request. (required) |
| 752 | targetPool: string, Name of the TargetPool resource for which the backup is to be set. (required) |
| 753 | body: object, The request body. (required) |
| 754 | The object takes the form of: |
| 755 | |
| 756 | { |
| 757 | "target": "A String", |
| 758 | } |
| 759 | |
| 760 | failoverRatio: number, New failoverRatio value for the containing target pool. |
| 761 | |
| 762 | Returns: |
| 763 | An object of the form: |
| 764 | |
| 765 | { # An operation resource, used to manage asynchronous API requests. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 766 | "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 767 | "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 768 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 769 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 770 | "zone": "A String", # [Output Only] URL of the zone where the operation resides. |
| 771 | "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete. |
| 772 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 773 | "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 774 | "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 775 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 776 | "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE. |
| 777 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format. |
| 778 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 779 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 780 | "message": "A String", # [Output Only] Optional human-readable details for this warning. |
| 781 | "code": "A String", # [Output Only] The warning type identifier for this warning. |
| 782 | "data": [ # [Output Only] Metadata for this warning in key: value format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 783 | { |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 784 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 785 | "key": "A String", # [Output Only] A key for the warning data. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 786 | }, |
| 787 | ], |
| 788 | }, |
| 789 | ], |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 790 | "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. |
| 791 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format. |
| 792 | "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources. |
| 793 | "name": "A String", # [Output Only] Name of the resource. |
| 794 | "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources. |
| 795 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 796 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 797 | { |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 798 | "message": "A String", # [Output Only] An optional, human-readable error message. |
| 799 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 800 | "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 801 | }, |
| 802 | ], |
| 803 | }, |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 804 | "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 805 | "selfLink": "A String", # [Output Only] Server defined URL for the resource. |
Nathaniel Manista | 5cbe5ba | 2015-03-10 23:29:22 +0000 | [diff] [blame] | 806 | "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 807 | }</pre> |
| 808 | </div> |
| 809 | |
| 810 | </body></html> |