pulumi-oci 2.28.0a1742884810__py3-none-any.whl → 2.28.0a1743049042__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,6 +81,8 @@ from .get_compute_gpu_memory_cluster_instances import *
81
81
  from .get_compute_gpu_memory_clusters import *
82
82
  from .get_compute_gpu_memory_fabric import *
83
83
  from .get_compute_gpu_memory_fabrics import *
84
+ from .get_compute_host import *
85
+ from .get_compute_hosts import *
84
86
  from .get_compute_image_capability_schema import *
85
87
  from .get_compute_image_capability_schemas import *
86
88
  from .get_console_histories import *
@@ -435,6 +435,8 @@ __all__ = [
435
435
  'GetComputeGpuMemoryClustersFilterArgsDict',
436
436
  'GetComputeGpuMemoryFabricsFilterArgs',
437
437
  'GetComputeGpuMemoryFabricsFilterArgsDict',
438
+ 'GetComputeHostsFilterArgs',
439
+ 'GetComputeHostsFilterArgsDict',
438
440
  'GetComputeImageCapabilitySchemasFilterArgs',
439
441
  'GetComputeImageCapabilitySchemasFilterArgsDict',
440
442
  'GetConsoleHistoriesFilterArgs',
@@ -21079,6 +21081,53 @@ class GetComputeGpuMemoryFabricsFilterArgs:
21079
21081
  pulumi.set(self, "regex", value)
21080
21082
 
21081
21083
 
21084
+ if not MYPY:
21085
+ class GetComputeHostsFilterArgsDict(TypedDict):
21086
+ name: str
21087
+ values: Sequence[str]
21088
+ regex: NotRequired[bool]
21089
+ elif False:
21090
+ GetComputeHostsFilterArgsDict: TypeAlias = Mapping[str, Any]
21091
+
21092
+ @pulumi.input_type
21093
+ class GetComputeHostsFilterArgs:
21094
+ def __init__(__self__, *,
21095
+ name: str,
21096
+ values: Sequence[str],
21097
+ regex: Optional[bool] = None):
21098
+ pulumi.set(__self__, "name", name)
21099
+ pulumi.set(__self__, "values", values)
21100
+ if regex is not None:
21101
+ pulumi.set(__self__, "regex", regex)
21102
+
21103
+ @property
21104
+ @pulumi.getter
21105
+ def name(self) -> str:
21106
+ return pulumi.get(self, "name")
21107
+
21108
+ @name.setter
21109
+ def name(self, value: str):
21110
+ pulumi.set(self, "name", value)
21111
+
21112
+ @property
21113
+ @pulumi.getter
21114
+ def values(self) -> Sequence[str]:
21115
+ return pulumi.get(self, "values")
21116
+
21117
+ @values.setter
21118
+ def values(self, value: Sequence[str]):
21119
+ pulumi.set(self, "values", value)
21120
+
21121
+ @property
21122
+ @pulumi.getter
21123
+ def regex(self) -> Optional[bool]:
21124
+ return pulumi.get(self, "regex")
21125
+
21126
+ @regex.setter
21127
+ def regex(self, value: Optional[bool]):
21128
+ pulumi.set(self, "regex", value)
21129
+
21130
+
21082
21131
  if not MYPY:
21083
21132
  class GetComputeImageCapabilitySchemasFilterArgsDict(TypedDict):
21084
21133
  name: str
@@ -0,0 +1,393 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+
17
+ __all__ = [
18
+ 'GetComputeHostResult',
19
+ 'AwaitableGetComputeHostResult',
20
+ 'get_compute_host',
21
+ 'get_compute_host_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetComputeHostResult:
26
+ """
27
+ A collection of values returned by getComputeHost.
28
+ """
29
+ def __init__(__self__, additional_data=None, availability_domain=None, capacity_reservation_id=None, compartment_id=None, compute_host_id=None, defined_tags=None, display_name=None, fault_domain=None, freeform_tags=None, gpu_memory_fabric_id=None, health=None, hpc_island_id=None, id=None, impacted_component_details=None, instance_id=None, lifecycle_details=None, local_block_id=None, network_block_id=None, shape=None, state=None, time_created=None, time_updated=None):
30
+ if additional_data and not isinstance(additional_data, str):
31
+ raise TypeError("Expected argument 'additional_data' to be a str")
32
+ pulumi.set(__self__, "additional_data", additional_data)
33
+ if availability_domain and not isinstance(availability_domain, str):
34
+ raise TypeError("Expected argument 'availability_domain' to be a str")
35
+ pulumi.set(__self__, "availability_domain", availability_domain)
36
+ if capacity_reservation_id and not isinstance(capacity_reservation_id, str):
37
+ raise TypeError("Expected argument 'capacity_reservation_id' to be a str")
38
+ pulumi.set(__self__, "capacity_reservation_id", capacity_reservation_id)
39
+ if compartment_id and not isinstance(compartment_id, str):
40
+ raise TypeError("Expected argument 'compartment_id' to be a str")
41
+ pulumi.set(__self__, "compartment_id", compartment_id)
42
+ if compute_host_id and not isinstance(compute_host_id, str):
43
+ raise TypeError("Expected argument 'compute_host_id' to be a str")
44
+ pulumi.set(__self__, "compute_host_id", compute_host_id)
45
+ if defined_tags and not isinstance(defined_tags, dict):
46
+ raise TypeError("Expected argument 'defined_tags' to be a dict")
47
+ pulumi.set(__self__, "defined_tags", defined_tags)
48
+ if display_name and not isinstance(display_name, str):
49
+ raise TypeError("Expected argument 'display_name' to be a str")
50
+ pulumi.set(__self__, "display_name", display_name)
51
+ if fault_domain and not isinstance(fault_domain, str):
52
+ raise TypeError("Expected argument 'fault_domain' to be a str")
53
+ pulumi.set(__self__, "fault_domain", fault_domain)
54
+ if freeform_tags and not isinstance(freeform_tags, dict):
55
+ raise TypeError("Expected argument 'freeform_tags' to be a dict")
56
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
57
+ if gpu_memory_fabric_id and not isinstance(gpu_memory_fabric_id, str):
58
+ raise TypeError("Expected argument 'gpu_memory_fabric_id' to be a str")
59
+ pulumi.set(__self__, "gpu_memory_fabric_id", gpu_memory_fabric_id)
60
+ if health and not isinstance(health, str):
61
+ raise TypeError("Expected argument 'health' to be a str")
62
+ pulumi.set(__self__, "health", health)
63
+ if hpc_island_id and not isinstance(hpc_island_id, str):
64
+ raise TypeError("Expected argument 'hpc_island_id' to be a str")
65
+ pulumi.set(__self__, "hpc_island_id", hpc_island_id)
66
+ if id and not isinstance(id, str):
67
+ raise TypeError("Expected argument 'id' to be a str")
68
+ pulumi.set(__self__, "id", id)
69
+ if impacted_component_details and not isinstance(impacted_component_details, str):
70
+ raise TypeError("Expected argument 'impacted_component_details' to be a str")
71
+ pulumi.set(__self__, "impacted_component_details", impacted_component_details)
72
+ if instance_id and not isinstance(instance_id, str):
73
+ raise TypeError("Expected argument 'instance_id' to be a str")
74
+ pulumi.set(__self__, "instance_id", instance_id)
75
+ if lifecycle_details and not isinstance(lifecycle_details, dict):
76
+ raise TypeError("Expected argument 'lifecycle_details' to be a dict")
77
+ pulumi.set(__self__, "lifecycle_details", lifecycle_details)
78
+ if local_block_id and not isinstance(local_block_id, str):
79
+ raise TypeError("Expected argument 'local_block_id' to be a str")
80
+ pulumi.set(__self__, "local_block_id", local_block_id)
81
+ if network_block_id and not isinstance(network_block_id, str):
82
+ raise TypeError("Expected argument 'network_block_id' to be a str")
83
+ pulumi.set(__self__, "network_block_id", network_block_id)
84
+ if shape and not isinstance(shape, str):
85
+ raise TypeError("Expected argument 'shape' to be a str")
86
+ pulumi.set(__self__, "shape", shape)
87
+ if state and not isinstance(state, str):
88
+ raise TypeError("Expected argument 'state' to be a str")
89
+ pulumi.set(__self__, "state", state)
90
+ if time_created and not isinstance(time_created, str):
91
+ raise TypeError("Expected argument 'time_created' to be a str")
92
+ pulumi.set(__self__, "time_created", time_created)
93
+ if time_updated and not isinstance(time_updated, str):
94
+ raise TypeError("Expected argument 'time_updated' to be a str")
95
+ pulumi.set(__self__, "time_updated", time_updated)
96
+
97
+ @property
98
+ @pulumi.getter(name="additionalData")
99
+ def additional_data(self) -> str:
100
+ """
101
+ Additional data that can be exposed to the customer. Will include raw fault codes for strategic customers
102
+ """
103
+ return pulumi.get(self, "additional_data")
104
+
105
+ @property
106
+ @pulumi.getter(name="availabilityDomain")
107
+ def availability_domain(self) -> str:
108
+ """
109
+ The availability domain of the compute host. Example: `Uocm:US-CHICAGO-1-AD-2`
110
+ """
111
+ return pulumi.get(self, "availability_domain")
112
+
113
+ @property
114
+ @pulumi.getter(name="capacityReservationId")
115
+ def capacity_reservation_id(self) -> str:
116
+ """
117
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Capacity Reserver that is currently on host
118
+ """
119
+ return pulumi.get(self, "capacity_reservation_id")
120
+
121
+ @property
122
+ @pulumi.getter(name="compartmentId")
123
+ def compartment_id(self) -> str:
124
+ """
125
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment.
126
+ """
127
+ return pulumi.get(self, "compartment_id")
128
+
129
+ @property
130
+ @pulumi.getter(name="computeHostId")
131
+ def compute_host_id(self) -> str:
132
+ return pulumi.get(self, "compute_host_id")
133
+
134
+ @property
135
+ @pulumi.getter(name="definedTags")
136
+ def defined_tags(self) -> Mapping[str, str]:
137
+ """
138
+ Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
139
+ """
140
+ return pulumi.get(self, "defined_tags")
141
+
142
+ @property
143
+ @pulumi.getter(name="displayName")
144
+ def display_name(self) -> str:
145
+ """
146
+ A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
147
+ """
148
+ return pulumi.get(self, "display_name")
149
+
150
+ @property
151
+ @pulumi.getter(name="faultDomain")
152
+ def fault_domain(self) -> str:
153
+ """
154
+ A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains.
155
+ """
156
+ return pulumi.get(self, "fault_domain")
157
+
158
+ @property
159
+ @pulumi.getter(name="freeformTags")
160
+ def freeform_tags(self) -> Mapping[str, str]:
161
+ """
162
+ Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
163
+ """
164
+ return pulumi.get(self, "freeform_tags")
165
+
166
+ @property
167
+ @pulumi.getter(name="gpuMemoryFabricId")
168
+ def gpu_memory_fabric_id(self) -> str:
169
+ """
170
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique GPU Memory Fabric
171
+ """
172
+ return pulumi.get(self, "gpu_memory_fabric_id")
173
+
174
+ @property
175
+ @pulumi.getter
176
+ def health(self) -> str:
177
+ """
178
+ The heathy state of the host
179
+ """
180
+ return pulumi.get(self, "health")
181
+
182
+ @property
183
+ @pulumi.getter(name="hpcIslandId")
184
+ def hpc_island_id(self) -> str:
185
+ """
186
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island
187
+ """
188
+ return pulumi.get(self, "hpc_island_id")
189
+
190
+ @property
191
+ @pulumi.getter
192
+ def id(self) -> str:
193
+ """
194
+ The provider-assigned unique ID for this managed resource.
195
+ """
196
+ return pulumi.get(self, "id")
197
+
198
+ @property
199
+ @pulumi.getter(name="impactedComponentDetails")
200
+ def impacted_component_details(self) -> str:
201
+ """
202
+ A list that contains impacted components related to an unhealthy host. An impacted component will be a free-form structure of key values pairs that will provide more or less details based on data tiering
203
+ """
204
+ return pulumi.get(self, "impacted_component_details")
205
+
206
+ @property
207
+ @pulumi.getter(name="instanceId")
208
+ def instance_id(self) -> str:
209
+ """
210
+ The public [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Virtual Machine or Bare Metal instance
211
+ """
212
+ return pulumi.get(self, "instance_id")
213
+
214
+ @property
215
+ @pulumi.getter(name="lifecycleDetails")
216
+ def lifecycle_details(self) -> Mapping[str, str]:
217
+ """
218
+ A free-form description detailing why the host is in its current state.
219
+ """
220
+ return pulumi.get(self, "lifecycle_details")
221
+
222
+ @property
223
+ @pulumi.getter(name="localBlockId")
224
+ def local_block_id(self) -> str:
225
+ """
226
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block
227
+ """
228
+ return pulumi.get(self, "local_block_id")
229
+
230
+ @property
231
+ @pulumi.getter(name="networkBlockId")
232
+ def network_block_id(self) -> str:
233
+ """
234
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block
235
+ """
236
+ return pulumi.get(self, "network_block_id")
237
+
238
+ @property
239
+ @pulumi.getter
240
+ def shape(self) -> str:
241
+ """
242
+ The shape of host
243
+ """
244
+ return pulumi.get(self, "shape")
245
+
246
+ @property
247
+ @pulumi.getter
248
+ def state(self) -> str:
249
+ """
250
+ The lifecycle state of the host
251
+ """
252
+ return pulumi.get(self, "state")
253
+
254
+ @property
255
+ @pulumi.getter(name="timeCreated")
256
+ def time_created(self) -> str:
257
+ """
258
+ The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
259
+ """
260
+ return pulumi.get(self, "time_created")
261
+
262
+ @property
263
+ @pulumi.getter(name="timeUpdated")
264
+ def time_updated(self) -> str:
265
+ """
266
+ The date and time that the compute host record was updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
267
+ """
268
+ return pulumi.get(self, "time_updated")
269
+
270
+
271
+ class AwaitableGetComputeHostResult(GetComputeHostResult):
272
+ # pylint: disable=using-constant-test
273
+ def __await__(self):
274
+ if False:
275
+ yield self
276
+ return GetComputeHostResult(
277
+ additional_data=self.additional_data,
278
+ availability_domain=self.availability_domain,
279
+ capacity_reservation_id=self.capacity_reservation_id,
280
+ compartment_id=self.compartment_id,
281
+ compute_host_id=self.compute_host_id,
282
+ defined_tags=self.defined_tags,
283
+ display_name=self.display_name,
284
+ fault_domain=self.fault_domain,
285
+ freeform_tags=self.freeform_tags,
286
+ gpu_memory_fabric_id=self.gpu_memory_fabric_id,
287
+ health=self.health,
288
+ hpc_island_id=self.hpc_island_id,
289
+ id=self.id,
290
+ impacted_component_details=self.impacted_component_details,
291
+ instance_id=self.instance_id,
292
+ lifecycle_details=self.lifecycle_details,
293
+ local_block_id=self.local_block_id,
294
+ network_block_id=self.network_block_id,
295
+ shape=self.shape,
296
+ state=self.state,
297
+ time_created=self.time_created,
298
+ time_updated=self.time_updated)
299
+
300
+
301
+ def get_compute_host(compute_host_id: Optional[str] = None,
302
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeHostResult:
303
+ """
304
+ This data source provides details about a specific Compute Host resource in Oracle Cloud Infrastructure Core service.
305
+
306
+ Gets information about the specified compute host
307
+
308
+ ## Example Usage
309
+
310
+ ```python
311
+ import pulumi
312
+ import pulumi_oci as oci
313
+
314
+ test_compute_host = oci.Core.get_compute_host(compute_host_id=test_compute_host_oci_core_compute_host["id"])
315
+ ```
316
+
317
+
318
+ :param str compute_host_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host.
319
+ """
320
+ __args__ = dict()
321
+ __args__['computeHostId'] = compute_host_id
322
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
323
+ __ret__ = pulumi.runtime.invoke('oci:Core/getComputeHost:getComputeHost', __args__, opts=opts, typ=GetComputeHostResult).value
324
+
325
+ return AwaitableGetComputeHostResult(
326
+ additional_data=pulumi.get(__ret__, 'additional_data'),
327
+ availability_domain=pulumi.get(__ret__, 'availability_domain'),
328
+ capacity_reservation_id=pulumi.get(__ret__, 'capacity_reservation_id'),
329
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
330
+ compute_host_id=pulumi.get(__ret__, 'compute_host_id'),
331
+ defined_tags=pulumi.get(__ret__, 'defined_tags'),
332
+ display_name=pulumi.get(__ret__, 'display_name'),
333
+ fault_domain=pulumi.get(__ret__, 'fault_domain'),
334
+ freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
335
+ gpu_memory_fabric_id=pulumi.get(__ret__, 'gpu_memory_fabric_id'),
336
+ health=pulumi.get(__ret__, 'health'),
337
+ hpc_island_id=pulumi.get(__ret__, 'hpc_island_id'),
338
+ id=pulumi.get(__ret__, 'id'),
339
+ impacted_component_details=pulumi.get(__ret__, 'impacted_component_details'),
340
+ instance_id=pulumi.get(__ret__, 'instance_id'),
341
+ lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
342
+ local_block_id=pulumi.get(__ret__, 'local_block_id'),
343
+ network_block_id=pulumi.get(__ret__, 'network_block_id'),
344
+ shape=pulumi.get(__ret__, 'shape'),
345
+ state=pulumi.get(__ret__, 'state'),
346
+ time_created=pulumi.get(__ret__, 'time_created'),
347
+ time_updated=pulumi.get(__ret__, 'time_updated'))
348
+ def get_compute_host_output(compute_host_id: Optional[pulumi.Input[str]] = None,
349
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeHostResult]:
350
+ """
351
+ This data source provides details about a specific Compute Host resource in Oracle Cloud Infrastructure Core service.
352
+
353
+ Gets information about the specified compute host
354
+
355
+ ## Example Usage
356
+
357
+ ```python
358
+ import pulumi
359
+ import pulumi_oci as oci
360
+
361
+ test_compute_host = oci.Core.get_compute_host(compute_host_id=test_compute_host_oci_core_compute_host["id"])
362
+ ```
363
+
364
+
365
+ :param str compute_host_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute host.
366
+ """
367
+ __args__ = dict()
368
+ __args__['computeHostId'] = compute_host_id
369
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
370
+ __ret__ = pulumi.runtime.invoke_output('oci:Core/getComputeHost:getComputeHost', __args__, opts=opts, typ=GetComputeHostResult)
371
+ return __ret__.apply(lambda __response__: GetComputeHostResult(
372
+ additional_data=pulumi.get(__response__, 'additional_data'),
373
+ availability_domain=pulumi.get(__response__, 'availability_domain'),
374
+ capacity_reservation_id=pulumi.get(__response__, 'capacity_reservation_id'),
375
+ compartment_id=pulumi.get(__response__, 'compartment_id'),
376
+ compute_host_id=pulumi.get(__response__, 'compute_host_id'),
377
+ defined_tags=pulumi.get(__response__, 'defined_tags'),
378
+ display_name=pulumi.get(__response__, 'display_name'),
379
+ fault_domain=pulumi.get(__response__, 'fault_domain'),
380
+ freeform_tags=pulumi.get(__response__, 'freeform_tags'),
381
+ gpu_memory_fabric_id=pulumi.get(__response__, 'gpu_memory_fabric_id'),
382
+ health=pulumi.get(__response__, 'health'),
383
+ hpc_island_id=pulumi.get(__response__, 'hpc_island_id'),
384
+ id=pulumi.get(__response__, 'id'),
385
+ impacted_component_details=pulumi.get(__response__, 'impacted_component_details'),
386
+ instance_id=pulumi.get(__response__, 'instance_id'),
387
+ lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
388
+ local_block_id=pulumi.get(__response__, 'local_block_id'),
389
+ network_block_id=pulumi.get(__response__, 'network_block_id'),
390
+ shape=pulumi.get(__response__, 'shape'),
391
+ state=pulumi.get(__response__, 'state'),
392
+ time_created=pulumi.get(__response__, 'time_created'),
393
+ time_updated=pulumi.get(__response__, 'time_updated')))