pulumi-oci 1.20.0a1705991859__py3-none-any.whl → 1.21.0a1706309702__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.
- pulumi_oci/__init__.py +35 -0
- pulumi_oci/core/get_boot_volume_attachments.py +36 -2
- pulumi_oci/database/autonomous_database_wallet.py +18 -0
- pulumi_oci/database/vm_cluster_network.py +20 -7
- pulumi_oci/generativeai/__init__.py +18 -0
- pulumi_oci/generativeai/_inputs.py +534 -0
- pulumi_oci/generativeai/dedicated_ai_cluster.py +808 -0
- pulumi_oci/generativeai/endpoint.py +717 -0
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +288 -0
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +183 -0
- pulumi_oci/generativeai/get_endpoint.py +275 -0
- pulumi_oci/generativeai/get_endpoints.py +183 -0
- pulumi_oci/generativeai/get_model.py +353 -0
- pulumi_oci/generativeai/get_models.py +220 -0
- pulumi_oci/generativeai/model.py +858 -0
- pulumi_oci/generativeai/outputs.py +1721 -0
- pulumi_oci/loadbalancer/_inputs.py +12 -0
- pulumi_oci/loadbalancer/outputs.py +12 -0
- pulumi_oci/marketplace/get_publication.py +14 -1
- pulumi_oci/marketplace/outputs.py +11 -0
- pulumi_oci/marketplace/publication.py +28 -0
- pulumi_oci/stackmonitoring/__init__.py +3 -0
- pulumi_oci/stackmonitoring/_inputs.py +143 -0
- pulumi_oci/stackmonitoring/get_process_set.py +236 -0
- pulumi_oci/stackmonitoring/get_process_sets.py +156 -0
- pulumi_oci/stackmonitoring/outputs.py +422 -0
- pulumi_oci/stackmonitoring/process_set.py +548 -0
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/METADATA +1 -1
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/RECORD +31 -16
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/WHEEL +0 -0
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,275 @@
|
|
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 pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
'GetEndpointResult',
|
15
|
+
'AwaitableGetEndpointResult',
|
16
|
+
'get_endpoint',
|
17
|
+
'get_endpoint_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetEndpointResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getEndpoint.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, compartment_id=None, content_moderation_configs=None, dedicated_ai_cluster_id=None, defined_tags=None, description=None, display_name=None, endpoint_id=None, freeform_tags=None, id=None, lifecycle_details=None, model_id=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
26
|
+
if compartment_id and not isinstance(compartment_id, str):
|
27
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
28
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
29
|
+
if content_moderation_configs and not isinstance(content_moderation_configs, list):
|
30
|
+
raise TypeError("Expected argument 'content_moderation_configs' to be a list")
|
31
|
+
pulumi.set(__self__, "content_moderation_configs", content_moderation_configs)
|
32
|
+
if dedicated_ai_cluster_id and not isinstance(dedicated_ai_cluster_id, str):
|
33
|
+
raise TypeError("Expected argument 'dedicated_ai_cluster_id' to be a str")
|
34
|
+
pulumi.set(__self__, "dedicated_ai_cluster_id", dedicated_ai_cluster_id)
|
35
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
36
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
37
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
38
|
+
if description and not isinstance(description, str):
|
39
|
+
raise TypeError("Expected argument 'description' to be a str")
|
40
|
+
pulumi.set(__self__, "description", description)
|
41
|
+
if display_name and not isinstance(display_name, str):
|
42
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
43
|
+
pulumi.set(__self__, "display_name", display_name)
|
44
|
+
if endpoint_id and not isinstance(endpoint_id, str):
|
45
|
+
raise TypeError("Expected argument 'endpoint_id' to be a str")
|
46
|
+
pulumi.set(__self__, "endpoint_id", endpoint_id)
|
47
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
48
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
49
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
50
|
+
if id and not isinstance(id, str):
|
51
|
+
raise TypeError("Expected argument 'id' to be a str")
|
52
|
+
pulumi.set(__self__, "id", id)
|
53
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
54
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
55
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
56
|
+
if model_id and not isinstance(model_id, str):
|
57
|
+
raise TypeError("Expected argument 'model_id' to be a str")
|
58
|
+
pulumi.set(__self__, "model_id", model_id)
|
59
|
+
if state and not isinstance(state, str):
|
60
|
+
raise TypeError("Expected argument 'state' to be a str")
|
61
|
+
pulumi.set(__self__, "state", state)
|
62
|
+
if system_tags and not isinstance(system_tags, dict):
|
63
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
64
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
65
|
+
if time_created and not isinstance(time_created, str):
|
66
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
67
|
+
pulumi.set(__self__, "time_created", time_created)
|
68
|
+
if time_updated and not isinstance(time_updated, str):
|
69
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
70
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
71
|
+
|
72
|
+
@property
|
73
|
+
@pulumi.getter(name="compartmentId")
|
74
|
+
def compartment_id(self) -> str:
|
75
|
+
"""
|
76
|
+
The compartment OCID to create the endpoint in.
|
77
|
+
"""
|
78
|
+
return pulumi.get(self, "compartment_id")
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter(name="contentModerationConfigs")
|
82
|
+
def content_moderation_configs(self) -> Sequence['outputs.GetEndpointContentModerationConfigResult']:
|
83
|
+
"""
|
84
|
+
The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses. It's recommended to use content moderation.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "content_moderation_configs")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter(name="dedicatedAiClusterId")
|
90
|
+
def dedicated_ai_cluster_id(self) -> str:
|
91
|
+
"""
|
92
|
+
The OCID of the dedicated AI cluster on which the model will be deployed to.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "dedicated_ai_cluster_id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter(name="definedTags")
|
98
|
+
def defined_tags(self) -> Mapping[str, Any]:
|
99
|
+
"""
|
100
|
+
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"}`
|
101
|
+
"""
|
102
|
+
return pulumi.get(self, "defined_tags")
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter
|
106
|
+
def description(self) -> str:
|
107
|
+
"""
|
108
|
+
An optional description of the endpoint.
|
109
|
+
"""
|
110
|
+
return pulumi.get(self, "description")
|
111
|
+
|
112
|
+
@property
|
113
|
+
@pulumi.getter(name="displayName")
|
114
|
+
def display_name(self) -> str:
|
115
|
+
"""
|
116
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
117
|
+
"""
|
118
|
+
return pulumi.get(self, "display_name")
|
119
|
+
|
120
|
+
@property
|
121
|
+
@pulumi.getter(name="endpointId")
|
122
|
+
def endpoint_id(self) -> str:
|
123
|
+
return pulumi.get(self, "endpoint_id")
|
124
|
+
|
125
|
+
@property
|
126
|
+
@pulumi.getter(name="freeformTags")
|
127
|
+
def freeform_tags(self) -> Mapping[str, Any]:
|
128
|
+
"""
|
129
|
+
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"}`
|
130
|
+
"""
|
131
|
+
return pulumi.get(self, "freeform_tags")
|
132
|
+
|
133
|
+
@property
|
134
|
+
@pulumi.getter
|
135
|
+
def id(self) -> str:
|
136
|
+
"""
|
137
|
+
An OCID that uniquely identifies this endpoint resource.
|
138
|
+
"""
|
139
|
+
return pulumi.get(self, "id")
|
140
|
+
|
141
|
+
@property
|
142
|
+
@pulumi.getter(name="lifecycleDetails")
|
143
|
+
def lifecycle_details(self) -> str:
|
144
|
+
"""
|
145
|
+
A message describing the current state of the endpoint in more detail that can provide actionable information.
|
146
|
+
"""
|
147
|
+
return pulumi.get(self, "lifecycle_details")
|
148
|
+
|
149
|
+
@property
|
150
|
+
@pulumi.getter(name="modelId")
|
151
|
+
def model_id(self) -> str:
|
152
|
+
"""
|
153
|
+
The OCID of the model that's used to create this endpoint.
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "model_id")
|
156
|
+
|
157
|
+
@property
|
158
|
+
@pulumi.getter
|
159
|
+
def state(self) -> str:
|
160
|
+
"""
|
161
|
+
The current state of the endpoint.
|
162
|
+
"""
|
163
|
+
return pulumi.get(self, "state")
|
164
|
+
|
165
|
+
@property
|
166
|
+
@pulumi.getter(name="systemTags")
|
167
|
+
def system_tags(self) -> Mapping[str, Any]:
|
168
|
+
"""
|
169
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
170
|
+
"""
|
171
|
+
return pulumi.get(self, "system_tags")
|
172
|
+
|
173
|
+
@property
|
174
|
+
@pulumi.getter(name="timeCreated")
|
175
|
+
def time_created(self) -> str:
|
176
|
+
"""
|
177
|
+
The date and time that the endpoint was created in the format of an RFC3339 datetime string.
|
178
|
+
"""
|
179
|
+
return pulumi.get(self, "time_created")
|
180
|
+
|
181
|
+
@property
|
182
|
+
@pulumi.getter(name="timeUpdated")
|
183
|
+
def time_updated(self) -> str:
|
184
|
+
"""
|
185
|
+
The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
|
186
|
+
"""
|
187
|
+
return pulumi.get(self, "time_updated")
|
188
|
+
|
189
|
+
|
190
|
+
class AwaitableGetEndpointResult(GetEndpointResult):
|
191
|
+
# pylint: disable=using-constant-test
|
192
|
+
def __await__(self):
|
193
|
+
if False:
|
194
|
+
yield self
|
195
|
+
return GetEndpointResult(
|
196
|
+
compartment_id=self.compartment_id,
|
197
|
+
content_moderation_configs=self.content_moderation_configs,
|
198
|
+
dedicated_ai_cluster_id=self.dedicated_ai_cluster_id,
|
199
|
+
defined_tags=self.defined_tags,
|
200
|
+
description=self.description,
|
201
|
+
display_name=self.display_name,
|
202
|
+
endpoint_id=self.endpoint_id,
|
203
|
+
freeform_tags=self.freeform_tags,
|
204
|
+
id=self.id,
|
205
|
+
lifecycle_details=self.lifecycle_details,
|
206
|
+
model_id=self.model_id,
|
207
|
+
state=self.state,
|
208
|
+
system_tags=self.system_tags,
|
209
|
+
time_created=self.time_created,
|
210
|
+
time_updated=self.time_updated)
|
211
|
+
|
212
|
+
|
213
|
+
def get_endpoint(endpoint_id: Optional[str] = None,
|
214
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEndpointResult:
|
215
|
+
"""
|
216
|
+
This data source provides details about a specific Endpoint resource in Oracle Cloud Infrastructure Generative Ai service.
|
217
|
+
|
218
|
+
Gets information about an endpoint.
|
219
|
+
|
220
|
+
## Example Usage
|
221
|
+
|
222
|
+
```python
|
223
|
+
import pulumi
|
224
|
+
import pulumi_oci as oci
|
225
|
+
|
226
|
+
test_endpoint = oci.GenerativeAi.get_endpoint(endpoint_id=oci_generative_ai_endpoint["test_endpoint"]["id"])
|
227
|
+
```
|
228
|
+
|
229
|
+
|
230
|
+
:param str endpoint_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
231
|
+
"""
|
232
|
+
__args__ = dict()
|
233
|
+
__args__['endpointId'] = endpoint_id
|
234
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
235
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getEndpoint:getEndpoint', __args__, opts=opts, typ=GetEndpointResult).value
|
236
|
+
|
237
|
+
return AwaitableGetEndpointResult(
|
238
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
239
|
+
content_moderation_configs=pulumi.get(__ret__, 'content_moderation_configs'),
|
240
|
+
dedicated_ai_cluster_id=pulumi.get(__ret__, 'dedicated_ai_cluster_id'),
|
241
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
242
|
+
description=pulumi.get(__ret__, 'description'),
|
243
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
244
|
+
endpoint_id=pulumi.get(__ret__, 'endpoint_id'),
|
245
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
246
|
+
id=pulumi.get(__ret__, 'id'),
|
247
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
248
|
+
model_id=pulumi.get(__ret__, 'model_id'),
|
249
|
+
state=pulumi.get(__ret__, 'state'),
|
250
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
251
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
252
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
253
|
+
|
254
|
+
|
255
|
+
@_utilities.lift_output_func(get_endpoint)
|
256
|
+
def get_endpoint_output(endpoint_id: Optional[pulumi.Input[str]] = None,
|
257
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEndpointResult]:
|
258
|
+
"""
|
259
|
+
This data source provides details about a specific Endpoint resource in Oracle Cloud Infrastructure Generative Ai service.
|
260
|
+
|
261
|
+
Gets information about an endpoint.
|
262
|
+
|
263
|
+
## Example Usage
|
264
|
+
|
265
|
+
```python
|
266
|
+
import pulumi
|
267
|
+
import pulumi_oci as oci
|
268
|
+
|
269
|
+
test_endpoint = oci.GenerativeAi.get_endpoint(endpoint_id=oci_generative_ai_endpoint["test_endpoint"]["id"])
|
270
|
+
```
|
271
|
+
|
272
|
+
|
273
|
+
:param str endpoint_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
274
|
+
"""
|
275
|
+
...
|
@@ -0,0 +1,183 @@
|
|
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 pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = [
|
15
|
+
'GetEndpointsResult',
|
16
|
+
'AwaitableGetEndpointsResult',
|
17
|
+
'get_endpoints',
|
18
|
+
'get_endpoints_output',
|
19
|
+
]
|
20
|
+
|
21
|
+
@pulumi.output_type
|
22
|
+
class GetEndpointsResult:
|
23
|
+
"""
|
24
|
+
A collection of values returned by getEndpoints.
|
25
|
+
"""
|
26
|
+
def __init__(__self__, compartment_id=None, display_name=None, endpoint_collections=None, filters=None, id=None, state=None):
|
27
|
+
if compartment_id and not isinstance(compartment_id, str):
|
28
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
29
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
30
|
+
if display_name and not isinstance(display_name, str):
|
31
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
32
|
+
pulumi.set(__self__, "display_name", display_name)
|
33
|
+
if endpoint_collections and not isinstance(endpoint_collections, list):
|
34
|
+
raise TypeError("Expected argument 'endpoint_collections' to be a list")
|
35
|
+
pulumi.set(__self__, "endpoint_collections", endpoint_collections)
|
36
|
+
if filters and not isinstance(filters, list):
|
37
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
38
|
+
pulumi.set(__self__, "filters", filters)
|
39
|
+
if id and not isinstance(id, str):
|
40
|
+
raise TypeError("Expected argument 'id' to be a str")
|
41
|
+
pulumi.set(__self__, "id", id)
|
42
|
+
if state and not isinstance(state, str):
|
43
|
+
raise TypeError("Expected argument 'state' to be a str")
|
44
|
+
pulumi.set(__self__, "state", state)
|
45
|
+
|
46
|
+
@property
|
47
|
+
@pulumi.getter(name="compartmentId")
|
48
|
+
def compartment_id(self) -> str:
|
49
|
+
"""
|
50
|
+
The compartment OCID to create the endpoint in.
|
51
|
+
"""
|
52
|
+
return pulumi.get(self, "compartment_id")
|
53
|
+
|
54
|
+
@property
|
55
|
+
@pulumi.getter(name="displayName")
|
56
|
+
def display_name(self) -> Optional[str]:
|
57
|
+
"""
|
58
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
59
|
+
"""
|
60
|
+
return pulumi.get(self, "display_name")
|
61
|
+
|
62
|
+
@property
|
63
|
+
@pulumi.getter(name="endpointCollections")
|
64
|
+
def endpoint_collections(self) -> Sequence['outputs.GetEndpointsEndpointCollectionResult']:
|
65
|
+
"""
|
66
|
+
The list of endpoint_collection.
|
67
|
+
"""
|
68
|
+
return pulumi.get(self, "endpoint_collections")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter
|
72
|
+
def filters(self) -> Optional[Sequence['outputs.GetEndpointsFilterResult']]:
|
73
|
+
return pulumi.get(self, "filters")
|
74
|
+
|
75
|
+
@property
|
76
|
+
@pulumi.getter
|
77
|
+
def id(self) -> Optional[str]:
|
78
|
+
"""
|
79
|
+
An OCID that uniquely identifies this endpoint resource.
|
80
|
+
"""
|
81
|
+
return pulumi.get(self, "id")
|
82
|
+
|
83
|
+
@property
|
84
|
+
@pulumi.getter
|
85
|
+
def state(self) -> Optional[str]:
|
86
|
+
"""
|
87
|
+
The current state of the endpoint.
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "state")
|
90
|
+
|
91
|
+
|
92
|
+
class AwaitableGetEndpointsResult(GetEndpointsResult):
|
93
|
+
# pylint: disable=using-constant-test
|
94
|
+
def __await__(self):
|
95
|
+
if False:
|
96
|
+
yield self
|
97
|
+
return GetEndpointsResult(
|
98
|
+
compartment_id=self.compartment_id,
|
99
|
+
display_name=self.display_name,
|
100
|
+
endpoint_collections=self.endpoint_collections,
|
101
|
+
filters=self.filters,
|
102
|
+
id=self.id,
|
103
|
+
state=self.state)
|
104
|
+
|
105
|
+
|
106
|
+
def get_endpoints(compartment_id: Optional[str] = None,
|
107
|
+
display_name: Optional[str] = None,
|
108
|
+
filters: Optional[Sequence[pulumi.InputType['GetEndpointsFilterArgs']]] = None,
|
109
|
+
id: Optional[str] = None,
|
110
|
+
state: Optional[str] = None,
|
111
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEndpointsResult:
|
112
|
+
"""
|
113
|
+
This data source provides the list of Endpoints in Oracle Cloud Infrastructure Generative Ai service.
|
114
|
+
|
115
|
+
Lists the endpoints of a specific compartment.
|
116
|
+
|
117
|
+
## Example Usage
|
118
|
+
|
119
|
+
```python
|
120
|
+
import pulumi
|
121
|
+
import pulumi_oci as oci
|
122
|
+
|
123
|
+
test_endpoints = oci.GenerativeAi.get_endpoints(compartment_id=var["compartment_id"],
|
124
|
+
display_name=var["endpoint_display_name"],
|
125
|
+
id=var["endpoint_id"],
|
126
|
+
state=var["endpoint_state"])
|
127
|
+
```
|
128
|
+
|
129
|
+
|
130
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
131
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
132
|
+
:param str id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
133
|
+
:param str state: A filter to return only resources that their lifecycle state matches the given lifecycle state.
|
134
|
+
"""
|
135
|
+
__args__ = dict()
|
136
|
+
__args__['compartmentId'] = compartment_id
|
137
|
+
__args__['displayName'] = display_name
|
138
|
+
__args__['filters'] = filters
|
139
|
+
__args__['id'] = id
|
140
|
+
__args__['state'] = state
|
141
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
142
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getEndpoints:getEndpoints', __args__, opts=opts, typ=GetEndpointsResult).value
|
143
|
+
|
144
|
+
return AwaitableGetEndpointsResult(
|
145
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
146
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
147
|
+
endpoint_collections=pulumi.get(__ret__, 'endpoint_collections'),
|
148
|
+
filters=pulumi.get(__ret__, 'filters'),
|
149
|
+
id=pulumi.get(__ret__, 'id'),
|
150
|
+
state=pulumi.get(__ret__, 'state'))
|
151
|
+
|
152
|
+
|
153
|
+
@_utilities.lift_output_func(get_endpoints)
|
154
|
+
def get_endpoints_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
155
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
156
|
+
filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetEndpointsFilterArgs']]]]] = None,
|
157
|
+
id: Optional[pulumi.Input[Optional[str]]] = None,
|
158
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
159
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEndpointsResult]:
|
160
|
+
"""
|
161
|
+
This data source provides the list of Endpoints in Oracle Cloud Infrastructure Generative Ai service.
|
162
|
+
|
163
|
+
Lists the endpoints of a specific compartment.
|
164
|
+
|
165
|
+
## Example Usage
|
166
|
+
|
167
|
+
```python
|
168
|
+
import pulumi
|
169
|
+
import pulumi_oci as oci
|
170
|
+
|
171
|
+
test_endpoints = oci.GenerativeAi.get_endpoints(compartment_id=var["compartment_id"],
|
172
|
+
display_name=var["endpoint_display_name"],
|
173
|
+
id=var["endpoint_id"],
|
174
|
+
state=var["endpoint_state"])
|
175
|
+
```
|
176
|
+
|
177
|
+
|
178
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
179
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
180
|
+
:param str id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
181
|
+
:param str state: A filter to return only resources that their lifecycle state matches the given lifecycle state.
|
182
|
+
"""
|
183
|
+
...
|