1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.packetMirrorings.html">packetMirrorings</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of packetMirrorings.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, region, packetMirroring, requestId=None)</a></code></p> 85<p class="firstline">Deletes the specified PacketMirroring resource.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, region, packetMirroring)</a></code></p> 88<p class="firstline">Returns the specified PacketMirroring resource.</p> 89<p class="toc_element"> 90 <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p> 91<p class="firstline">Creates a PacketMirroring resource in the specified project and region using the data included in the request.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 94<p class="firstline">Retrieves a list of PacketMirroring resources available to the specified project and region.</p> 95<p class="toc_element"> 96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 97<p class="firstline">Retrieves the next page of results.</p> 98<p class="toc_element"> 99 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p> 100<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 104 <pre>Retrieves an aggregated list of packetMirrorings. 105 106Args: 107 project: string, Project ID for this request. (required) 108 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 109 110You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 111 112Currently, only sorting by name or creationTimestamp desc is supported. 113 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 114 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 115 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 116 117For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 118 119You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 120 121To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 122 123Returns: 124 An object of the form: 125 126 { # Contains a list of packetMirrorings. 127 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 128 "kind": "compute#packetMirroringAggregatedList", # Type of resource. 129 "items": { # A list of PacketMirroring resources. 130 "a_key": { # Name of the scope containing this set of packetMirrorings. 131 "warning": { # Informational warning which replaces the list of packetMirrorings when the list is empty. 132 "message": "A String", # [Output Only] A human-readable description of the warning code. 133 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 134 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 135 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 136 { 137 "value": "A String", # [Output Only] A warning data value corresponding to the key. 138 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 139 }, 140 ], 141 }, 142 "packetMirrorings": [ # A list of packetMirrorings contained in this scope. 143 { # Represents a PacketMirroring resource. 144 "priority": 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. 145 # 146 # Default value is 1000. Valid range is 0 through 65535. 147 "kind": "compute#packetMirroring", # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. 148 "enable": "A String", # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. 149 # 150 # The default is TRUE. 151 "collectorIlb": { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. 152 "url": "A String", # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic. 153 "canonicalUrl": "A String", # [Output Only] Unique identifier for the forwarding rule; defined by the server. 154 }, 155 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 156 "collectors": { # PacketMirroring collectorInfos. Each collectorInfo specifies a set of collector VM instances, preferably in the same zone as the mirrored VM(s) 157 "instances": [ # A set of virtual machines configured as destination of the mirrored traffic. They must live in zones contained in the same region as this packetMirroring. 158 { 159 "url": "A String", # Resource URL to the virtual machine instance configured as destination of the mirrored traffic. 160 }, 161 ], 162 }, 163 "mirroredResources": { # PacketMirroring mirroredResourceInfos. Each mirroredResourceInfo specifies a set of mirrored VM instances and/or a set of subnetworks for which traffic from/to all VM instances will be mirrored. 164 "subnetworks": [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in zones contained in the same region as this packetMirroring. 165 # 166 # You may specify a maximum of 5 subnetworks. 167 { 168 "url": "A String", # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. 169 "canonicalUrl": "A String", # [Output Only] Unique identifier for the subnetwork; defined by the server. 170 }, 171 ], 172 "instances": [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. 173 # 174 # Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. 175 # 176 # You may specify a maximum of 50 Instances. 177 { 178 "url": "A String", # Resource URL to the virtual machine instance which is being mirrored. 179 "canonicalUrl": "A String", # [Output Only] Unique identifier for the instance; defined by the server. 180 }, 181 ], 182 "tags": [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. 183 "A String", 184 ], 185 }, 186 "region": "A String", # [Output Only] URI of the region where the packetMirroring resides. 187 "packetMatchers": [ # PacketMirroring packetMatchers. Each packetMatcher specifies a CIRD filter that will apply to the source or destination IP in the IP header for the mirrored VM traffic. 188 { 189 "cidrRange": "A String", # IP CIDR range that applies as filter on the source or destination IP in the IP header. Only IPv4 is supported. 190 }, 191 ], 192 "filter": { # Filter for mirrored traffic. If unspecified, all traffic is mirrored. 193 "IPProtocol": [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 194 "A String", 195 ], 196 "cidrRanges": [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 197 "A String", 198 ], 199 }, 200 "network": { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. 201 "url": "A String", # URL of the network resource. 202 "canonicalUrl": "A String", # [Output Only] Unique identifier for the network; defined by the server. 203 }, 204 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 205 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 206 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 207 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 208 "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. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 209 }, 210 ], 211 }, 212 }, 213 "warning": { # [Output Only] Informational warning message. 214 "message": "A String", # [Output Only] A human-readable description of the warning code. 215 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 216 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 217 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 218 { 219 "value": "A String", # [Output Only] A warning data value corresponding to the key. 220 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 221 }, 222 ], 223 }, 224 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 225 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 226 }</pre> 227</div> 228 229<div class="method"> 230 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 231 <pre>Retrieves the next page of results. 232 233Args: 234 previous_request: The request for the previous page. (required) 235 previous_response: The response from the request for the previous page. (required) 236 237Returns: 238 A request object that you can call 'execute()' on to request the next 239 page. Returns None if there are no more items in the collection. 240 </pre> 241</div> 242 243<div class="method"> 244 <code class="details" id="delete">delete(project, region, packetMirroring, requestId=None)</code> 245 <pre>Deletes the specified PacketMirroring resource. 246 247Args: 248 project: string, Project ID for this request. (required) 249 region: string, Name of the region for this request. (required) 250 packetMirroring: string, Name of the PacketMirroring resource to delete. (required) 251 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 252 253For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 254 255The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 256 257Returns: 258 An object of the form: 259 260 { # Represents an Operation resource. 261 # 262 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 263 # 264 # Operations can be global, regional or zonal. 265 # - For global operations, use the globalOperations resource. 266 # - For regional operations, use the regionOperations resource. 267 # - For zonal operations, use the zonalOperations resource. 268 # 269 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 270 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 271 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 272 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 273 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 274 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 275 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 276 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 277 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 278 "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 when the operation will be complete. This number should monotonically increase as the operation progresses. 279 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 280 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 281 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 282 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 283 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 284 { 285 "message": "A String", # [Output Only] A human-readable description of the warning code. 286 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 287 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 288 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 289 { 290 "value": "A String", # [Output Only] A warning data value corresponding to the key. 291 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 292 }, 293 ], 294 }, 295 ], 296 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 297 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 298 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 299 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 300 "name": "A String", # [Output Only] Name of the resource. 301 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 302 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 303 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 304 { 305 "message": "A String", # [Output Only] An optional, human-readable error message. 306 "code": "A String", # [Output Only] The error type identifier for this error. 307 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 308 }, 309 ], 310 }, 311 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 312 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 313 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 314 }</pre> 315</div> 316 317<div class="method"> 318 <code class="details" id="get">get(project, region, packetMirroring)</code> 319 <pre>Returns the specified PacketMirroring resource. 320 321Args: 322 project: string, Project ID for this request. (required) 323 region: string, Name of the region for this request. (required) 324 packetMirroring: string, Name of the PacketMirroring resource to return. (required) 325 326Returns: 327 An object of the form: 328 329 { # Represents a PacketMirroring resource. 330 "priority": 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. 331 # 332 # Default value is 1000. Valid range is 0 through 65535. 333 "kind": "compute#packetMirroring", # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. 334 "enable": "A String", # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. 335 # 336 # The default is TRUE. 337 "collectorIlb": { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. 338 "url": "A String", # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic. 339 "canonicalUrl": "A String", # [Output Only] Unique identifier for the forwarding rule; defined by the server. 340 }, 341 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 342 "collectors": { # PacketMirroring collectorInfos. Each collectorInfo specifies a set of collector VM instances, preferably in the same zone as the mirrored VM(s) 343 "instances": [ # A set of virtual machines configured as destination of the mirrored traffic. They must live in zones contained in the same region as this packetMirroring. 344 { 345 "url": "A String", # Resource URL to the virtual machine instance configured as destination of the mirrored traffic. 346 }, 347 ], 348 }, 349 "mirroredResources": { # PacketMirroring mirroredResourceInfos. Each mirroredResourceInfo specifies a set of mirrored VM instances and/or a set of subnetworks for which traffic from/to all VM instances will be mirrored. 350 "subnetworks": [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in zones contained in the same region as this packetMirroring. 351 # 352 # You may specify a maximum of 5 subnetworks. 353 { 354 "url": "A String", # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. 355 "canonicalUrl": "A String", # [Output Only] Unique identifier for the subnetwork; defined by the server. 356 }, 357 ], 358 "instances": [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. 359 # 360 # Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. 361 # 362 # You may specify a maximum of 50 Instances. 363 { 364 "url": "A String", # Resource URL to the virtual machine instance which is being mirrored. 365 "canonicalUrl": "A String", # [Output Only] Unique identifier for the instance; defined by the server. 366 }, 367 ], 368 "tags": [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. 369 "A String", 370 ], 371 }, 372 "region": "A String", # [Output Only] URI of the region where the packetMirroring resides. 373 "packetMatchers": [ # PacketMirroring packetMatchers. Each packetMatcher specifies a CIRD filter that will apply to the source or destination IP in the IP header for the mirrored VM traffic. 374 { 375 "cidrRange": "A String", # IP CIDR range that applies as filter on the source or destination IP in the IP header. Only IPv4 is supported. 376 }, 377 ], 378 "filter": { # Filter for mirrored traffic. If unspecified, all traffic is mirrored. 379 "IPProtocol": [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 380 "A String", 381 ], 382 "cidrRanges": [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 383 "A String", 384 ], 385 }, 386 "network": { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. 387 "url": "A String", # URL of the network resource. 388 "canonicalUrl": "A String", # [Output Only] Unique identifier for the network; defined by the server. 389 }, 390 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 391 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 392 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 393 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 394 "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. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 395 }</pre> 396</div> 397 398<div class="method"> 399 <code class="details" id="insert">insert(project, region, body, requestId=None)</code> 400 <pre>Creates a PacketMirroring resource in the specified project and region using the data included in the request. 401 402Args: 403 project: string, Project ID for this request. (required) 404 region: string, Name of the region for this request. (required) 405 body: object, The request body. (required) 406 The object takes the form of: 407 408{ # Represents a PacketMirroring resource. 409 "priority": 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. 410 # 411 # Default value is 1000. Valid range is 0 through 65535. 412 "kind": "compute#packetMirroring", # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. 413 "enable": "A String", # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. 414 # 415 # The default is TRUE. 416 "collectorIlb": { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. 417 "url": "A String", # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic. 418 "canonicalUrl": "A String", # [Output Only] Unique identifier for the forwarding rule; defined by the server. 419 }, 420 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 421 "collectors": { # PacketMirroring collectorInfos. Each collectorInfo specifies a set of collector VM instances, preferably in the same zone as the mirrored VM(s) 422 "instances": [ # A set of virtual machines configured as destination of the mirrored traffic. They must live in zones contained in the same region as this packetMirroring. 423 { 424 "url": "A String", # Resource URL to the virtual machine instance configured as destination of the mirrored traffic. 425 }, 426 ], 427 }, 428 "mirroredResources": { # PacketMirroring mirroredResourceInfos. Each mirroredResourceInfo specifies a set of mirrored VM instances and/or a set of subnetworks for which traffic from/to all VM instances will be mirrored. 429 "subnetworks": [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in zones contained in the same region as this packetMirroring. 430 # 431 # You may specify a maximum of 5 subnetworks. 432 { 433 "url": "A String", # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. 434 "canonicalUrl": "A String", # [Output Only] Unique identifier for the subnetwork; defined by the server. 435 }, 436 ], 437 "instances": [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. 438 # 439 # Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. 440 # 441 # You may specify a maximum of 50 Instances. 442 { 443 "url": "A String", # Resource URL to the virtual machine instance which is being mirrored. 444 "canonicalUrl": "A String", # [Output Only] Unique identifier for the instance; defined by the server. 445 }, 446 ], 447 "tags": [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. 448 "A String", 449 ], 450 }, 451 "region": "A String", # [Output Only] URI of the region where the packetMirroring resides. 452 "packetMatchers": [ # PacketMirroring packetMatchers. Each packetMatcher specifies a CIRD filter that will apply to the source or destination IP in the IP header for the mirrored VM traffic. 453 { 454 "cidrRange": "A String", # IP CIDR range that applies as filter on the source or destination IP in the IP header. Only IPv4 is supported. 455 }, 456 ], 457 "filter": { # Filter for mirrored traffic. If unspecified, all traffic is mirrored. 458 "IPProtocol": [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 459 "A String", 460 ], 461 "cidrRanges": [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 462 "A String", 463 ], 464 }, 465 "network": { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. 466 "url": "A String", # URL of the network resource. 467 "canonicalUrl": "A String", # [Output Only] Unique identifier for the network; defined by the server. 468 }, 469 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 470 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 471 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 472 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 473 "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. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 474 } 475 476 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 477 478For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 479 480The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 481 482Returns: 483 An object of the form: 484 485 { # Represents an Operation resource. 486 # 487 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 488 # 489 # Operations can be global, regional or zonal. 490 # - For global operations, use the globalOperations resource. 491 # - For regional operations, use the regionOperations resource. 492 # - For zonal operations, use the zonalOperations resource. 493 # 494 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 495 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 496 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 497 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 498 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 499 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 500 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 501 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 502 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 503 "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 when the operation will be complete. This number should monotonically increase as the operation progresses. 504 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 505 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 506 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 507 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 508 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 509 { 510 "message": "A String", # [Output Only] A human-readable description of the warning code. 511 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 512 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 513 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 514 { 515 "value": "A String", # [Output Only] A warning data value corresponding to the key. 516 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 517 }, 518 ], 519 }, 520 ], 521 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 522 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 523 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 524 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 525 "name": "A String", # [Output Only] Name of the resource. 526 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 527 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 528 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 529 { 530 "message": "A String", # [Output Only] An optional, human-readable error message. 531 "code": "A String", # [Output Only] The error type identifier for this error. 532 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 533 }, 534 ], 535 }, 536 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 537 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 538 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 539 }</pre> 540</div> 541 542<div class="method"> 543 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 544 <pre>Retrieves a list of PacketMirroring resources available to the specified project and region. 545 546Args: 547 project: string, Project ID for this request. (required) 548 region: string, Name of the region for this request. (required) 549 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 550 551You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 552 553Currently, only sorting by name or creationTimestamp desc is supported. 554 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 555 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 556 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 557 558For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 559 560You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 561 562To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 563 564Returns: 565 An object of the form: 566 567 { # Contains a list of PacketMirroring resources. 568 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 569 "kind": "compute#packetMirroringList", # [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. 570 "items": [ # A list of PacketMirroring resources. 571 { # Represents a PacketMirroring resource. 572 "priority": 42, # The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. 573 # 574 # Default value is 1000. Valid range is 0 through 65535. 575 "kind": "compute#packetMirroring", # [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. 576 "enable": "A String", # Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. 577 # 578 # The default is TRUE. 579 "collectorIlb": { # The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. 580 "url": "A String", # Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic. 581 "canonicalUrl": "A String", # [Output Only] Unique identifier for the forwarding rule; defined by the server. 582 }, 583 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 584 "collectors": { # PacketMirroring collectorInfos. Each collectorInfo specifies a set of collector VM instances, preferably in the same zone as the mirrored VM(s) 585 "instances": [ # A set of virtual machines configured as destination of the mirrored traffic. They must live in zones contained in the same region as this packetMirroring. 586 { 587 "url": "A String", # Resource URL to the virtual machine instance configured as destination of the mirrored traffic. 588 }, 589 ], 590 }, 591 "mirroredResources": { # PacketMirroring mirroredResourceInfos. Each mirroredResourceInfo specifies a set of mirrored VM instances and/or a set of subnetworks for which traffic from/to all VM instances will be mirrored. 592 "subnetworks": [ # A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in zones contained in the same region as this packetMirroring. 593 # 594 # You may specify a maximum of 5 subnetworks. 595 { 596 "url": "A String", # Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. 597 "canonicalUrl": "A String", # [Output Only] Unique identifier for the subnetwork; defined by the server. 598 }, 599 ], 600 "instances": [ # A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. 601 # 602 # Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. 603 # 604 # You may specify a maximum of 50 Instances. 605 { 606 "url": "A String", # Resource URL to the virtual machine instance which is being mirrored. 607 "canonicalUrl": "A String", # [Output Only] Unique identifier for the instance; defined by the server. 608 }, 609 ], 610 "tags": [ # A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. 611 "A String", 612 ], 613 }, 614 "region": "A String", # [Output Only] URI of the region where the packetMirroring resides. 615 "packetMatchers": [ # PacketMirroring packetMatchers. Each packetMatcher specifies a CIRD filter that will apply to the source or destination IP in the IP header for the mirrored VM traffic. 616 { 617 "cidrRange": "A String", # IP CIDR range that applies as filter on the source or destination IP in the IP header. Only IPv4 is supported. 618 }, 619 ], 620 "filter": { # Filter for mirrored traffic. If unspecified, all traffic is mirrored. 621 "IPProtocol": [ # Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 622 "A String", 623 ], 624 "cidrRanges": [ # IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IpProtocols is specified, all traffic is mirrored. 625 "A String", 626 ], 627 }, 628 "network": { # Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. 629 "url": "A String", # URL of the network resource. 630 "canonicalUrl": "A String", # [Output Only] Unique identifier for the network; defined by the server. 631 }, 632 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 633 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 634 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 635 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 636 "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. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 637 }, 638 ], 639 "warning": { # [Output Only] Informational warning message. 640 "message": "A String", # [Output Only] A human-readable description of the warning code. 641 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 642 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 643 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 644 { 645 "value": "A String", # [Output Only] A warning data value corresponding to the key. 646 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 647 }, 648 ], 649 }, 650 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 651 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 652 }</pre> 653</div> 654 655<div class="method"> 656 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 657 <pre>Retrieves the next page of results. 658 659Args: 660 previous_request: The request for the previous page. (required) 661 previous_response: The response from the request for the previous page. (required) 662 663Returns: 664 A request object that you can call 'execute()' on to request the next 665 page. Returns None if there are no more items in the collection. 666 </pre> 667</div> 668 669<div class="method"> 670 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code> 671 <pre>Returns permissions that a caller has on the specified resource. 672 673Args: 674 project: string, Project ID for this request. (required) 675 region: string, The name of the region for this request. (required) 676 resource: string, Name or id of the resource for this request. (required) 677 body: object, The request body. (required) 678 The object takes the form of: 679 680{ 681 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 682 "A String", 683 ], 684 } 685 686 687Returns: 688 An object of the form: 689 690 { 691 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 692 "A String", 693 ], 694 }</pre> 695</div> 696 697</body></html>