Debian Codegraph @

docs/dyn/cloudkms_v1.projects.locations.singleTenantHsmInstances.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="cloudkms_v1.html">Cloud Key Management Service (KMS) API</a> . <a href="cloudkms_v1.projects.html">projects</a> . <a href="cloudkms_v1.projects.locations.html">locations</a> . <a href="cloudkms_v1.projects.locations.singleTenantHsmInstances.html">singleTenantHsmInstances</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="cloudkms_v1.projects.locations.singleTenantHsmInstances.proposals.html">proposals()</a></code>
79 </p>
80 <p class="firstline">Returns the proposals Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, singleTenantHsmInstanceId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a new SingleTenantHsmInstance in a given Project and Location. User must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM instance to finish setup of the instance.</p>
88 <p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Returns metadata for a given SingleTenantHsmInstance.</p>
91 <p class="toc_element">
92 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Lists SingleTenantHsmInstances.</p>
94 <p class="toc_element">
95 <code><a href="#list_next">list_next()</a></code></p>
96 <p class="firstline">Retrieves the next page of results.</p>
97 <h3>Method Details</h3>
98 <div class="method">
99 <code class="details" id="close">close()</code>
100 <pre>Close httplib2 connections.</pre>
101 </div>
102
103 <div class="method">
104 <code class="details" id="create">create(parent, body=None, singleTenantHsmInstanceId=None, x__xgafv=None)</code>
105 <pre>Creates a new SingleTenantHsmInstance in a given Project and Location. User must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM instance to finish setup of the instance.
106
107 Args:
108 parent: string, Required. The resource name of the location associated with the SingleTenantHsmInstance, in the format `projects/*/locations/*`. (required)
109 body: object, The request body.
110 The object takes the form of:
111
112 { # A SingleTenantHsmInstance represents a single-tenant HSM instance. It can be used for creating CryptoKeys with a ProtectionLevel of HSM_SINGLE_TENANT, as well as performing cryptographic operations using keys created within the SingleTenantHsmInstance.
113 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was created.
114 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was deleted.
115 &quot;disableTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A RefreshSingleTenantHsmInstance operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.
116 &quot;keyPortabilityEnabled&quot;: True or False, # Optional. Immutable. Indicates whether key portability is enabled for the SingleTenantHsmInstance. This can only be set at creation time. Key portability features are disabled by default and not yet available in GA.
117 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*/locations/*/singleTenantHsmInstances/*`.
118 &quot;quorumAuth&quot;: { # Configuration for M of N quorum auth. # Required. The quorum auth configuration for the SingleTenantHsmInstance.
119 &quot;requiredApproverCount&quot;: 42, # Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count - 1.
120 &quot;totalApproverCount&quot;: 42, # Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.
121 &quot;twoFactorPublicKeyPems&quot;: [ # Output only. The public keys associated with the 2FA keys for M of N quorum auth.
122 &quot;A String&quot;,
123 ],
124 },
125 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the SingleTenantHsmInstance.
126 &quot;unrefreshedDurationUntilDisable&quot;: &quot;A String&quot;, # Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 730 days.
127 }
128
129 singleTenantHsmInstanceId: string, Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`.
130 x__xgafv: string, V1 error format.
131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
134
135 Returns:
136 An object of the form:
137
138 { # This resource represents a long-running operation that is the result of a network API call.
139 &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.
140 &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.
141 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
142 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
143 {
144 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
145 },
146 ],
147 &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.
148 },
149 &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.
150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
151 },
152 &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}`.
153 &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`.
154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
155 },
156 }</pre>
157 </div>
158
159 <div class="method">
160 <code class="details" id="get">get(name, x__xgafv=None)</code>
161 <pre>Returns metadata for a given SingleTenantHsmInstance.
162
163 Args:
164 name: string, Required. The name of the SingleTenantHsmInstance to get. (required)
165 x__xgafv: string, V1 error format.
166 Allowed values
167 1 - v1 error format
168 2 - v2 error format
169
170 Returns:
171 An object of the form:
172
173 { # A SingleTenantHsmInstance represents a single-tenant HSM instance. It can be used for creating CryptoKeys with a ProtectionLevel of HSM_SINGLE_TENANT, as well as performing cryptographic operations using keys created within the SingleTenantHsmInstance.
174 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was created.
175 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was deleted.
176 &quot;disableTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A RefreshSingleTenantHsmInstance operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.
177 &quot;keyPortabilityEnabled&quot;: True or False, # Optional. Immutable. Indicates whether key portability is enabled for the SingleTenantHsmInstance. This can only be set at creation time. Key portability features are disabled by default and not yet available in GA.
178 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*/locations/*/singleTenantHsmInstances/*`.
179 &quot;quorumAuth&quot;: { # Configuration for M of N quorum auth. # Required. The quorum auth configuration for the SingleTenantHsmInstance.
180 &quot;requiredApproverCount&quot;: 42, # Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count - 1.
181 &quot;totalApproverCount&quot;: 42, # Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.
182 &quot;twoFactorPublicKeyPems&quot;: [ # Output only. The public keys associated with the 2FA keys for M of N quorum auth.
183 &quot;A String&quot;,
184 ],
185 },
186 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the SingleTenantHsmInstance.
187 &quot;unrefreshedDurationUntilDisable&quot;: &quot;A String&quot;, # Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 730 days.
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
193 <pre>Lists SingleTenantHsmInstances.
194
195 Args:
196 parent: string, Required. The resource name of the location associated with the SingleTenantHsmInstances to list, in the format `projects/*/locations/*`. (required)
197 filter: string, Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering).
198 orderBy: string, Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering).
199 pageSize: integer, Optional. Optional limit on the number of SingleTenantHsmInstances to include in the response. Further SingleTenantHsmInstances can subsequently be obtained by including the ListSingleTenantHsmInstancesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
200 pageToken: string, Optional. Optional pagination token, returned earlier via ListSingleTenantHsmInstancesResponse.next_page_token.
201 showDeleted: boolean, Optional. If set to true, HsmManagement.ListSingleTenantHsmInstances will also return SingleTenantHsmInstances in DELETED state.
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207 Returns:
208 An object of the form:
209
210 { # Response message for HsmManagement.ListSingleTenantHsmInstances.
211 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Pass this value in ListSingleTenantHsmInstancesRequest.page_token to retrieve the next page of results.
212 &quot;singleTenantHsmInstances&quot;: [ # The list of SingleTenantHsmInstances.
213 { # A SingleTenantHsmInstance represents a single-tenant HSM instance. It can be used for creating CryptoKeys with a ProtectionLevel of HSM_SINGLE_TENANT, as well as performing cryptographic operations using keys created within the SingleTenantHsmInstance.
214 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was created.
215 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time at which the SingleTenantHsmInstance was deleted.
216 &quot;disableTime&quot;: &quot;A String&quot;, # Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A RefreshSingleTenantHsmInstance operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled.
217 &quot;keyPortabilityEnabled&quot;: True or False, # Optional. Immutable. Indicates whether key portability is enabled for the SingleTenantHsmInstance. This can only be set at creation time. Key portability features are disabled by default and not yet available in GA.
218 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*/locations/*/singleTenantHsmInstances/*`.
219 &quot;quorumAuth&quot;: { # Configuration for M of N quorum auth. # Required. The quorum auth configuration for the SingleTenantHsmInstance.
220 &quot;requiredApproverCount&quot;: 42, # Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count - 1.
221 &quot;totalApproverCount&quot;: 42, # Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16.
222 &quot;twoFactorPublicKeyPems&quot;: [ # Output only. The public keys associated with the 2FA keys for M of N quorum auth.
223 &quot;A String&quot;,
224 ],
225 },
226 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the SingleTenantHsmInstance.
227 &quot;unrefreshedDurationUntilDisable&quot;: &quot;A String&quot;, # Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 730 days.
228 },
229 ],
230 &quot;totalSize&quot;: 42, # The total number of SingleTenantHsmInstances that matched the query. This field is not populated if ListSingleTenantHsmInstancesRequest.filter is applied.
231 }</pre>
232 </div>
233
234 <div class="method">
235 <code class="details" id="list_next">list_next()</code>
236 <pre>Retrieves the next page of results.
237
238 Args:
239 previous_request: The request for the previous page. (required)
240 previous_response: The response from the request for the previous page. (required)
241
242 Returns:
243 A request object that you can call &#x27;execute()&#x27; on to request the next
244 page. Returns None if there are no more items in the collection.
245 </pre>
246 </div>
247
248 </body></html>