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="logging_v2.html">Stackdriver Logging API</a> . <a href="logging_v2.projects.html">projects</a> . <a href="logging_v2.projects.exclusions.html">exclusions</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(parent, body, x__xgafv=None)</a></code></p> 79<p class="firstline">Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 82<p class="firstline">Deletes an exclusion.</p> 83<p class="toc_element"> 84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Gets the description of an exclusion.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Lists all the exclusions in a parent resource.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(name, body, updateMask=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Changes one or more properties of an existing exclusion.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="create">create(parent, body, x__xgafv=None)</code> 98 <pre>Creates a new exclusion in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. 99 100Args: 101 parent: string, Required. The parent resource in which to create the exclusion: 102"projects/[PROJECT_ID]" 103"organizations/[ORGANIZATION_ID]" 104"billingAccounts/[BILLING_ACCOUNT_ID]" 105"folders/[FOLDER_ID]" 106Examples: "projects/my-logging-project", "organizations/123456789". (required) 107 body: object, The request body. (required) 108 The object takes the form of: 109 110{ # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 111 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 112 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 113 "description": "A String", # Optional. A description of this exclusion. 114 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 115 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 116 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 117 } 118 119 x__xgafv: string, V1 error format. 120 Allowed values 121 1 - v1 error format 122 2 - v2 error format 123 124Returns: 125 An object of the form: 126 127 { # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 128 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 129 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 130 "description": "A String", # Optional. A description of this exclusion. 131 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 132 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 133 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 134 }</pre> 135</div> 136 137<div class="method"> 138 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 139 <pre>Deletes an exclusion. 140 141Args: 142 name: string, Required. The resource name of an existing exclusion to delete: 143"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" 144"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" 145"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" 146"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" 147Example: "projects/my-project-id/exclusions/my-exclusion-id". (required) 148 x__xgafv: string, V1 error format. 149 Allowed values 150 1 - v1 error format 151 2 - v2 error format 152 153Returns: 154 An object of the form: 155 156 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: 157 # service Foo { 158 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 159 # } 160 # The JSON representation for Empty is empty JSON object {}. 161 }</pre> 162</div> 163 164<div class="method"> 165 <code class="details" id="get">get(name, x__xgafv=None)</code> 166 <pre>Gets the description of an exclusion. 167 168Args: 169 name: string, Required. The resource name of an existing exclusion: 170"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" 171"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" 172"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" 173"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" 174Example: "projects/my-project-id/exclusions/my-exclusion-id". (required) 175 x__xgafv: string, V1 error format. 176 Allowed values 177 1 - v1 error format 178 2 - v2 error format 179 180Returns: 181 An object of the form: 182 183 { # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 184 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 185 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 186 "description": "A String", # Optional. A description of this exclusion. 187 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 188 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 189 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 190 }</pre> 191</div> 192 193<div class="method"> 194 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> 195 <pre>Lists all the exclusions in a parent resource. 196 197Args: 198 parent: string, Required. The parent resource whose exclusions are to be listed. 199"projects/[PROJECT_ID]" 200"organizations/[ORGANIZATION_ID]" 201"billingAccounts/[BILLING_ACCOUNT_ID]" 202"folders/[FOLDER_ID]" 203 (required) 204 pageSize: integer, Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available. 205 pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call. 206 x__xgafv: string, V1 error format. 207 Allowed values 208 1 - v1 error format 209 2 - v2 error format 210 211Returns: 212 An object of the form: 213 214 { # Result returned from ListExclusions. 215 "nextPageToken": "A String", # If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken. 216 "exclusions": [ # A list of exclusions. 217 { # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 218 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 219 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 220 "description": "A String", # Optional. A description of this exclusion. 221 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 222 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 223 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 224 }, 225 ], 226 }</pre> 227</div> 228 229<div class="method"> 230 <code class="details" id="list_next">list_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="patch">patch(name, body, updateMask=None, x__xgafv=None)</code> 245 <pre>Changes one or more properties of an existing exclusion. 246 247Args: 248 name: string, Required. The resource name of the exclusion to update: 249"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" 250"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" 251"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" 252"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" 253Example: "projects/my-project-id/exclusions/my-exclusion-id". (required) 254 body: object, The request body. (required) 255 The object takes the form of: 256 257{ # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 258 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 259 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 260 "description": "A String", # Optional. A description of this exclusion. 261 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 262 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 263 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 264 } 265 266 updateMask: string, Required. A nonempty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". 267 x__xgafv: string, V1 error format. 268 Allowed values 269 1 - v1 error format 270 2 - v2 error format 271 272Returns: 273 An object of the form: 274 275 { # Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded. 276 "disabled": True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. 277 "updateTime": "A String", # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. 278 "description": "A String", # Optional. A description of this exclusion. 279 "filter": "A String", # Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" 280 "createTime": "A String", # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. 281 "name": "A String", # Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. 282 }</pre> 283</div> 284 285</body></html>