Debian Codegraph @

docs/dyn/certificatemanager_v1.projects.locations.certificates.html

raw
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="certificatemanager_v1.html">Certificate Manager API</a> . <a href="certificatemanager_v1.projects.html">projects</a> . <a href="certificatemanager_v1.projects.locations.html">locations</a> . <a href="certificatemanager_v1.projects.locations.certificates.html">certificates</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, certificateId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Certificate in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Certificate.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single Certificate.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Certificates in a given project and location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a Certificate.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, certificateId=None, x__xgafv=None)</code>
106 <pre>Creates a new Certificate in a given project and location.
107
108 Args:
109 parent: string, Required. The parent resource of the certificate. Must be in the format `projects/*/locations/*`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Defines TLS certificate.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of a Certificate.
115 &quot;description&quot;: &quot;A String&quot;, # Optional. One or more paragraphs of text description of a certificate.
116 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The expiry timestamp of a Certificate.
117 &quot;labels&quot;: { # Optional. Set of labels associated with a Certificate.
118 &quot;a_key&quot;: &quot;A String&quot;,
119 },
120 &quot;managed&quot;: { # Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed certificate.
121 &quot;authorizationAttemptInfo&quot;: [ # Output only. Detailed state of the latest authorization attempt for each domain specified for managed certificate resource.
122 { # State of the latest attempt to authorize a domain for certificate issuance.
123 &quot;attemptTime&quot;: &quot;A String&quot;, # Output only. The timestamp, when the authorization attempt was made.
124 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation for reaching the state. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use FailureReason enum.
125 &quot;domain&quot;: &quot;A String&quot;, # Output only. Domain name of the authorization attempt.
126 &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Reason for failure of the authorization attempt for the domain.
127 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the domain for managed certificate issuance.
128 &quot;troubleshooting&quot;: { # Troubleshooting information for the authorization attempt. # Output only. Troubleshooting information for the authorization attempt. This field is only populated if the authorization attempt failed.
129 &quot;cname&quot;: { # CNAME troubleshooting information. # Output only. CNAME troubleshooting information.
130 &quot;expectedData&quot;: &quot;A String&quot;, # Output only. The expected value of the CNAME record for the domain, equals to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
131 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the CNAME record for the domain, equals to `dns_resource_record.name` in the corresponding `DnsAuthorization`.
132 &quot;resolvedData&quot;: [ # Output only. The resolved CNAME chain. Empty list if the CNAME record for `CNAME.name` is not found. Otherwise the first item is the value of the CNAME record for `CNAME.name`. If the CNAME chain is longer, the second item is the value of the CNAME record for the first item, and so on.
133 &quot;A String&quot;,
134 ],
135 },
136 &quot;ips&quot;: { # IPs troubleshooting information. # Output only. IPs troubleshooting information.
137 &quot;resolved&quot;: [ # Output only. The list of IP addresses resolved from the domain&#x27;s A/AAAA records. Can contain both ipv4 and ipv6 addresses.
138 &quot;A String&quot;,
139 ],
140 &quot;serving&quot;: [ # Output only. The list of IP addresses, where the certificate is attached and port 443 is open.
141 &quot;A String&quot;,
142 ],
143 &quot;servingOnAltPorts&quot;: [ # Output only. The list of IP addresses, where the certificate is attached, but port 443 is not open.
144 &quot;A String&quot;,
145 ],
146 },
147 &quot;issues&quot;: [ # Output only. The list of issues discovered during the authorization attempt.
148 &quot;A String&quot;,
149 ],
150 },
151 },
152 ],
153 &quot;dnsAuthorizations&quot;: [ # Optional. Immutable. Authorizations that will be used for performing domain authorization.
154 &quot;A String&quot;,
155 ],
156 &quot;domains&quot;: [ # Optional. Immutable. The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution.
157 &quot;A String&quot;,
158 ],
159 &quot;issuanceConfig&quot;: &quot;A String&quot;, # Optional. Immutable. The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
160 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a Managed Certificate.
161 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
162 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
163 },
164 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
165 },
166 &quot;managedIdentity&quot;: { # Configuration and state of a Managed Identity Certificate. Certificate Manager provisions and renews Managed Identity Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed identity certificate.
167 &quot;identity&quot;: &quot;A String&quot;, # Required. Immutable. SPIFFE ID of the Managed Identity used for this certificate.
168 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a managed certificate.
169 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
170 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
171 },
172 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
173 },
174 &quot;name&quot;: &quot;A String&quot;, # Identifier. A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
175 &quot;pemCertificate&quot;: &quot;A String&quot;, # Output only. The PEM-encoded certificate chain.
176 &quot;sanDnsnames&quot;: [ # Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven&#x27;t been provisioned yet have this field populated with a value of the managed.domains field.
177 &quot;A String&quot;,
178 ],
179 &quot;scope&quot;: &quot;A String&quot;, # Optional. Immutable. The scope of the certificate.
180 &quot;selfManaged&quot;: { # Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user&#x27;s responsibility. # If set, defines data of a self-managed certificate.
181 &quot;pemCertificate&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.
182 &quot;pemPrivateKey&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded private key of the leaf certificate.
183 },
184 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Certificate.
185 &quot;usedBy&quot;: [ # Output only. The list of resources that use this Certificate.
186 { # Defines a resource that uses the certificate.
187 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//certificatemanager.googleapis.com/projects/*/locations/*/certificateMaps/*/certificateMapEntries/*` or `//compute.googleapis.com/projects/*/locations/*/targetHttpsProxies/*`.
188 },
189 ],
190 }
191
192 certificateId: string, Required. A user-provided name of the certificate.
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # This resource represents a long-running operation that is the result of a network API call.
202 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
203 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
204 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
205 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
206 {
207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
208 },
209 ],
210 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
211 },
212 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
215 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
216 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
224 <pre>Deletes a single Certificate.
225
226 Args:
227 name: string, Required. A name of the certificate to delete. Must be in the format `projects/*/locations/*/certificates/*`. (required)
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233 Returns:
234 An object of the form:
235
236 { # This resource represents a long-running operation that is the result of a network API call.
237 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
238 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
239 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
240 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
241 {
242 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
243 },
244 ],
245 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
246 },
247 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
248 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
249 },
250 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
251 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
252 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
253 },
254 }</pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="get">get(name, x__xgafv=None)</code>
259 <pre>Gets details of a single Certificate.
260
261 Args:
262 name: string, Required. A name of the certificate to describe. Must be in the format `projects/*/locations/*/certificates/*`. (required)
263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268 Returns:
269 An object of the form:
270
271 { # Defines TLS certificate.
272 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of a Certificate.
273 &quot;description&quot;: &quot;A String&quot;, # Optional. One or more paragraphs of text description of a certificate.
274 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The expiry timestamp of a Certificate.
275 &quot;labels&quot;: { # Optional. Set of labels associated with a Certificate.
276 &quot;a_key&quot;: &quot;A String&quot;,
277 },
278 &quot;managed&quot;: { # Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed certificate.
279 &quot;authorizationAttemptInfo&quot;: [ # Output only. Detailed state of the latest authorization attempt for each domain specified for managed certificate resource.
280 { # State of the latest attempt to authorize a domain for certificate issuance.
281 &quot;attemptTime&quot;: &quot;A String&quot;, # Output only. The timestamp, when the authorization attempt was made.
282 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation for reaching the state. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use FailureReason enum.
283 &quot;domain&quot;: &quot;A String&quot;, # Output only. Domain name of the authorization attempt.
284 &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Reason for failure of the authorization attempt for the domain.
285 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the domain for managed certificate issuance.
286 &quot;troubleshooting&quot;: { # Troubleshooting information for the authorization attempt. # Output only. Troubleshooting information for the authorization attempt. This field is only populated if the authorization attempt failed.
287 &quot;cname&quot;: { # CNAME troubleshooting information. # Output only. CNAME troubleshooting information.
288 &quot;expectedData&quot;: &quot;A String&quot;, # Output only. The expected value of the CNAME record for the domain, equals to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
289 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the CNAME record for the domain, equals to `dns_resource_record.name` in the corresponding `DnsAuthorization`.
290 &quot;resolvedData&quot;: [ # Output only. The resolved CNAME chain. Empty list if the CNAME record for `CNAME.name` is not found. Otherwise the first item is the value of the CNAME record for `CNAME.name`. If the CNAME chain is longer, the second item is the value of the CNAME record for the first item, and so on.
291 &quot;A String&quot;,
292 ],
293 },
294 &quot;ips&quot;: { # IPs troubleshooting information. # Output only. IPs troubleshooting information.
295 &quot;resolved&quot;: [ # Output only. The list of IP addresses resolved from the domain&#x27;s A/AAAA records. Can contain both ipv4 and ipv6 addresses.
296 &quot;A String&quot;,
297 ],
298 &quot;serving&quot;: [ # Output only. The list of IP addresses, where the certificate is attached and port 443 is open.
299 &quot;A String&quot;,
300 ],
301 &quot;servingOnAltPorts&quot;: [ # Output only. The list of IP addresses, where the certificate is attached, but port 443 is not open.
302 &quot;A String&quot;,
303 ],
304 },
305 &quot;issues&quot;: [ # Output only. The list of issues discovered during the authorization attempt.
306 &quot;A String&quot;,
307 ],
308 },
309 },
310 ],
311 &quot;dnsAuthorizations&quot;: [ # Optional. Immutable. Authorizations that will be used for performing domain authorization.
312 &quot;A String&quot;,
313 ],
314 &quot;domains&quot;: [ # Optional. Immutable. The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution.
315 &quot;A String&quot;,
316 ],
317 &quot;issuanceConfig&quot;: &quot;A String&quot;, # Optional. Immutable. The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
318 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a Managed Certificate.
319 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
320 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
321 },
322 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
323 },
324 &quot;managedIdentity&quot;: { # Configuration and state of a Managed Identity Certificate. Certificate Manager provisions and renews Managed Identity Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed identity certificate.
325 &quot;identity&quot;: &quot;A String&quot;, # Required. Immutable. SPIFFE ID of the Managed Identity used for this certificate.
326 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a managed certificate.
327 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
328 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
329 },
330 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
331 },
332 &quot;name&quot;: &quot;A String&quot;, # Identifier. A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
333 &quot;pemCertificate&quot;: &quot;A String&quot;, # Output only. The PEM-encoded certificate chain.
334 &quot;sanDnsnames&quot;: [ # Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven&#x27;t been provisioned yet have this field populated with a value of the managed.domains field.
335 &quot;A String&quot;,
336 ],
337 &quot;scope&quot;: &quot;A String&quot;, # Optional. Immutable. The scope of the certificate.
338 &quot;selfManaged&quot;: { # Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user&#x27;s responsibility. # If set, defines data of a self-managed certificate.
339 &quot;pemCertificate&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.
340 &quot;pemPrivateKey&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded private key of the leaf certificate.
341 },
342 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Certificate.
343 &quot;usedBy&quot;: [ # Output only. The list of resources that use this Certificate.
344 { # Defines a resource that uses the certificate.
345 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//certificatemanager.googleapis.com/projects/*/locations/*/certificateMaps/*/certificateMapEntries/*` or `//compute.googleapis.com/projects/*/locations/*/targetHttpsProxies/*`.
346 },
347 ],
348 }</pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
353 <pre>Lists Certificates in a given project and location.
354
355 Args:
356 parent: string, Required. The project and location from which the certificate should be listed, specified in the format `projects/*/locations/*`. (required)
357 filter: string, Optional. Filter expression to restrict the Certificates returned.
358 orderBy: string, Optional. A list of Certificate field names used to specify the order of the returned results. The default sorting order is ascending. To specify descending order for a field, add a suffix `&quot; desc&quot;`.
359 pageSize: integer, Optional. Maximum number of certificates to return per call.
360 pageToken: string, Optional. The value returned by the last `ListCertificatesResponse`. Indicates that this is a continuation of a prior `ListCertificates` call, and that the system should return the next page of data.
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366 Returns:
367 An object of the form:
368
369 { # Response for the `ListCertificates` method.
370 &quot;certificates&quot;: [ # A list of certificates for the parent resource.
371 { # Defines TLS certificate.
372 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of a Certificate.
373 &quot;description&quot;: &quot;A String&quot;, # Optional. One or more paragraphs of text description of a certificate.
374 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The expiry timestamp of a Certificate.
375 &quot;labels&quot;: { # Optional. Set of labels associated with a Certificate.
376 &quot;a_key&quot;: &quot;A String&quot;,
377 },
378 &quot;managed&quot;: { # Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed certificate.
379 &quot;authorizationAttemptInfo&quot;: [ # Output only. Detailed state of the latest authorization attempt for each domain specified for managed certificate resource.
380 { # State of the latest attempt to authorize a domain for certificate issuance.
381 &quot;attemptTime&quot;: &quot;A String&quot;, # Output only. The timestamp, when the authorization attempt was made.
382 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation for reaching the state. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use FailureReason enum.
383 &quot;domain&quot;: &quot;A String&quot;, # Output only. Domain name of the authorization attempt.
384 &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Reason for failure of the authorization attempt for the domain.
385 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the domain for managed certificate issuance.
386 &quot;troubleshooting&quot;: { # Troubleshooting information for the authorization attempt. # Output only. Troubleshooting information for the authorization attempt. This field is only populated if the authorization attempt failed.
387 &quot;cname&quot;: { # CNAME troubleshooting information. # Output only. CNAME troubleshooting information.
388 &quot;expectedData&quot;: &quot;A String&quot;, # Output only. The expected value of the CNAME record for the domain, equals to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
389 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the CNAME record for the domain, equals to `dns_resource_record.name` in the corresponding `DnsAuthorization`.
390 &quot;resolvedData&quot;: [ # Output only. The resolved CNAME chain. Empty list if the CNAME record for `CNAME.name` is not found. Otherwise the first item is the value of the CNAME record for `CNAME.name`. If the CNAME chain is longer, the second item is the value of the CNAME record for the first item, and so on.
391 &quot;A String&quot;,
392 ],
393 },
394 &quot;ips&quot;: { # IPs troubleshooting information. # Output only. IPs troubleshooting information.
395 &quot;resolved&quot;: [ # Output only. The list of IP addresses resolved from the domain&#x27;s A/AAAA records. Can contain both ipv4 and ipv6 addresses.
396 &quot;A String&quot;,
397 ],
398 &quot;serving&quot;: [ # Output only. The list of IP addresses, where the certificate is attached and port 443 is open.
399 &quot;A String&quot;,
400 ],
401 &quot;servingOnAltPorts&quot;: [ # Output only. The list of IP addresses, where the certificate is attached, but port 443 is not open.
402 &quot;A String&quot;,
403 ],
404 },
405 &quot;issues&quot;: [ # Output only. The list of issues discovered during the authorization attempt.
406 &quot;A String&quot;,
407 ],
408 },
409 },
410 ],
411 &quot;dnsAuthorizations&quot;: [ # Optional. Immutable. Authorizations that will be used for performing domain authorization.
412 &quot;A String&quot;,
413 ],
414 &quot;domains&quot;: [ # Optional. Immutable. The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution.
415 &quot;A String&quot;,
416 ],
417 &quot;issuanceConfig&quot;: &quot;A String&quot;, # Optional. Immutable. The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
418 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a Managed Certificate.
419 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
420 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
421 },
422 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
423 },
424 &quot;managedIdentity&quot;: { # Configuration and state of a Managed Identity Certificate. Certificate Manager provisions and renews Managed Identity Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed identity certificate.
425 &quot;identity&quot;: &quot;A String&quot;, # Required. Immutable. SPIFFE ID of the Managed Identity used for this certificate.
426 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a managed certificate.
427 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
428 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
429 },
430 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
431 },
432 &quot;name&quot;: &quot;A String&quot;, # Identifier. A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
433 &quot;pemCertificate&quot;: &quot;A String&quot;, # Output only. The PEM-encoded certificate chain.
434 &quot;sanDnsnames&quot;: [ # Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven&#x27;t been provisioned yet have this field populated with a value of the managed.domains field.
435 &quot;A String&quot;,
436 ],
437 &quot;scope&quot;: &quot;A String&quot;, # Optional. Immutable. The scope of the certificate.
438 &quot;selfManaged&quot;: { # Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user&#x27;s responsibility. # If set, defines data of a self-managed certificate.
439 &quot;pemCertificate&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.
440 &quot;pemPrivateKey&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded private key of the leaf certificate.
441 },
442 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Certificate.
443 &quot;usedBy&quot;: [ # Output only. The list of resources that use this Certificate.
444 { # Defines a resource that uses the certificate.
445 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//certificatemanager.googleapis.com/projects/*/locations/*/certificateMaps/*/certificateMapEntries/*` or `//compute.googleapis.com/projects/*/locations/*/targetHttpsProxies/*`.
446 },
447 ],
448 },
449 ],
450 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
451 &quot;unreachable&quot;: [ # A list of locations that could not be reached.
452 &quot;A String&quot;,
453 ],
454 }</pre>
455 </div>
456
457 <div class="method">
458 <code class="details" id="list_next">list_next()</code>
459 <pre>Retrieves the next page of results.
460
461 Args:
462 previous_request: The request for the previous page. (required)
463 previous_response: The response from the request for the previous page. (required)
464
465 Returns:
466 A request object that you can call &#x27;execute()&#x27; on to request the next
467 page. Returns None if there are no more items in the collection.
468 </pre>
469 </div>
470
471 <div class="method">
472 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
473 <pre>Updates a Certificate.
474
475 Args:
476 name: string, Identifier. A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`. (required)
477 body: object, The request body.
478 The object takes the form of:
479
480 { # Defines TLS certificate.
481 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of a Certificate.
482 &quot;description&quot;: &quot;A String&quot;, # Optional. One or more paragraphs of text description of a certificate.
483 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. The expiry timestamp of a Certificate.
484 &quot;labels&quot;: { # Optional. Set of labels associated with a Certificate.
485 &quot;a_key&quot;: &quot;A String&quot;,
486 },
487 &quot;managed&quot;: { # Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed certificate.
488 &quot;authorizationAttemptInfo&quot;: [ # Output only. Detailed state of the latest authorization attempt for each domain specified for managed certificate resource.
489 { # State of the latest attempt to authorize a domain for certificate issuance.
490 &quot;attemptTime&quot;: &quot;A String&quot;, # Output only. The timestamp, when the authorization attempt was made.
491 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation for reaching the state. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use FailureReason enum.
492 &quot;domain&quot;: &quot;A String&quot;, # Output only. Domain name of the authorization attempt.
493 &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Reason for failure of the authorization attempt for the domain.
494 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the domain for managed certificate issuance.
495 &quot;troubleshooting&quot;: { # Troubleshooting information for the authorization attempt. # Output only. Troubleshooting information for the authorization attempt. This field is only populated if the authorization attempt failed.
496 &quot;cname&quot;: { # CNAME troubleshooting information. # Output only. CNAME troubleshooting information.
497 &quot;expectedData&quot;: &quot;A String&quot;, # Output only. The expected value of the CNAME record for the domain, equals to `dns_resource_record.data` in the corresponding `DnsAuthorization`.
498 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the CNAME record for the domain, equals to `dns_resource_record.name` in the corresponding `DnsAuthorization`.
499 &quot;resolvedData&quot;: [ # Output only. The resolved CNAME chain. Empty list if the CNAME record for `CNAME.name` is not found. Otherwise the first item is the value of the CNAME record for `CNAME.name`. If the CNAME chain is longer, the second item is the value of the CNAME record for the first item, and so on.
500 &quot;A String&quot;,
501 ],
502 },
503 &quot;ips&quot;: { # IPs troubleshooting information. # Output only. IPs troubleshooting information.
504 &quot;resolved&quot;: [ # Output only. The list of IP addresses resolved from the domain&#x27;s A/AAAA records. Can contain both ipv4 and ipv6 addresses.
505 &quot;A String&quot;,
506 ],
507 &quot;serving&quot;: [ # Output only. The list of IP addresses, where the certificate is attached and port 443 is open.
508 &quot;A String&quot;,
509 ],
510 &quot;servingOnAltPorts&quot;: [ # Output only. The list of IP addresses, where the certificate is attached, but port 443 is not open.
511 &quot;A String&quot;,
512 ],
513 },
514 &quot;issues&quot;: [ # Output only. The list of issues discovered during the authorization attempt.
515 &quot;A String&quot;,
516 ],
517 },
518 },
519 ],
520 &quot;dnsAuthorizations&quot;: [ # Optional. Immutable. Authorizations that will be used for performing domain authorization.
521 &quot;A String&quot;,
522 ],
523 &quot;domains&quot;: [ # Optional. Immutable. The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution.
524 &quot;A String&quot;,
525 ],
526 &quot;issuanceConfig&quot;: &quot;A String&quot;, # Optional. Immutable. The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
527 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a Managed Certificate.
528 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
529 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
530 },
531 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
532 },
533 &quot;managedIdentity&quot;: { # Configuration and state of a Managed Identity Certificate. Certificate Manager provisions and renews Managed Identity Certificates automatically, for as long as it&#x27;s authorized to do so. # If set, contains configuration and state of a managed identity certificate.
534 &quot;identity&quot;: &quot;A String&quot;, # Required. Immutable. SPIFFE ID of the Managed Identity used for this certificate.
535 &quot;provisioningIssue&quot;: { # Information about issues with provisioning a Managed Certificate. # Output only. Information about issues with provisioning a managed certificate.
536 &quot;details&quot;: &quot;A String&quot;, # Output only. Human readable explanation about the issue. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use Reason enum.
537 &quot;reason&quot;: &quot;A String&quot;, # Output only. Reason for provisioning failures.
538 },
539 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the managed certificate resource.
540 },
541 &quot;name&quot;: &quot;A String&quot;, # Identifier. A user-defined name of the certificate. Certificate names must be unique globally and match pattern `projects/*/locations/*/certificates/*`.
542 &quot;pemCertificate&quot;: &quot;A String&quot;, # Output only. The PEM-encoded certificate chain.
543 &quot;sanDnsnames&quot;: [ # Output only. The list of Subject Alternative Names of dnsName type defined in the certificate (see RFC 5280 4.2.1.6). Managed certificates that haven&#x27;t been provisioned yet have this field populated with a value of the managed.domains field.
544 &quot;A String&quot;,
545 ],
546 &quot;scope&quot;: &quot;A String&quot;, # Optional. Immutable. The scope of the certificate.
547 &quot;selfManaged&quot;: { # Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user&#x27;s responsibility. # If set, defines data of a self-managed certificate.
548 &quot;pemCertificate&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded certificate chain. Leaf certificate comes first, followed by intermediate ones if any.
549 &quot;pemPrivateKey&quot;: &quot;A String&quot;, # Optional. Input only. The PEM-encoded private key of the leaf certificate.
550 },
551 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Certificate.
552 &quot;usedBy&quot;: [ # Output only. The list of resources that use this Certificate.
553 { # Defines a resource that uses the certificate.
554 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//certificatemanager.googleapis.com/projects/*/locations/*/certificateMaps/*/certificateMapEntries/*` or `//compute.googleapis.com/projects/*/locations/*/targetHttpsProxies/*`.
555 },
556 ],
557 }
558
559 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
560 x__xgafv: string, V1 error format.
561 Allowed values
562 1 - v1 error format
563 2 - v2 error format
564
565 Returns:
566 An object of the form:
567
568 { # This resource represents a long-running operation that is the result of a network API call.
569 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
570 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
571 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
572 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
573 {
574 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
575 },
576 ],
577 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
578 },
579 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
580 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
581 },
582 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
583 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
584 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
585 },
586 }</pre>
587 </div>
588
589 </body></html>