Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.AiLanguage.getEndpoints
Explore with Pulumi AI
This data source provides the list of Endpoints in Oracle Cloud Infrastructure Ai Language service.
Returns a list of Endpoints.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AiLanguage.AiLanguageFunctions;
import com.pulumi.oci.AiLanguage.inputs.GetEndpointsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testEndpoints = AiLanguageFunctions.getEndpoints(GetEndpointsArgs.builder()
.compartmentId(compartmentId)
.displayName(endpointDisplayName)
.endpointId(testEndpoint.id())
.modelId(testModel.id())
.projectId(testProject.id())
.state(endpointState)
.build());
}
}
variables:
testEndpoints:
fn::invoke:
Function: oci:AiLanguage:getEndpoints
Arguments:
compartmentId: ${compartmentId}
displayName: ${endpointDisplayName}
endpointId: ${testEndpoint.id}
modelId: ${testModel.id}
projectId: ${testProject.id}
state: ${endpointState}
Using getEndpoints
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEndpoints(args: GetEndpointsArgs, opts?: InvokeOptions): Promise<GetEndpointsResult>
function getEndpointsOutput(args: GetEndpointsOutputArgs, opts?: InvokeOptions): Output<GetEndpointsResult>
def get_endpoints(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_ailanguage.GetEndpointsFilter]] = None,
id: Optional[str] = None,
model_id: Optional[str] = None,
project_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEndpointsResult
def get_endpoints_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_ailanguage.GetEndpointsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
model_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEndpointsResult]
func GetEndpoints(ctx *Context, args *GetEndpointsArgs, opts ...InvokeOption) (*GetEndpointsResult, error)
func GetEndpointsOutput(ctx *Context, args *GetEndpointsOutputArgs, opts ...InvokeOption) GetEndpointsResultOutput
> Note: This function is named GetEndpoints
in the Go SDK.
public static class GetEndpoints
{
public static Task<GetEndpointsResult> InvokeAsync(GetEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetEndpointsResult> Invoke(GetEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEndpointsResult> getEndpoints(GetEndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:AiLanguage/getEndpoints:getEndpoints
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Endpoints Filter> - Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Model
Id string - The ID of the trained model for which to list the endpoints.
- Project
Id string - The ID of the project for which to list the objects.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Endpoints Filter - Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Model
Id string - The ID of the trained model for which to list the endpoints.
- Project
Id string - The ID of the project for which to list the objects.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Endpoints Filter> - id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id String - The ID of the trained model for which to list the endpoints.
- project
Id String - The ID of the project for which to list the objects.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Endpoints Filter[] - id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id string - The ID of the trained model for which to list the endpoints.
- project
Id string - The ID of the project for which to list the objects.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[ailanguage.
Get Endpoints Filter] - id str
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model_
id str - The ID of the trained model for which to list the endpoints.
- project_
id str - The ID of the project for which to list the objects.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id String - The ID of the trained model for which to list the endpoints.
- project
Id String - The ID of the project for which to list the objects.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
getEndpoints Result
The following output properties are available:
- Compartment
Id string - The OCID for the endpoint compartment.
- Endpoint
Collections List<GetEndpoints Endpoint Collection> - The list of endpoint_collection.
- Display
Name string - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- Filters
List<Get
Endpoints Filter> - Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Model
Id string - The OCID of the model to associate with the endpoint.
- Project
Id string - The OCID of the project to associate with the Endpoint.
- State string
- The state of the endpoint.
- Compartment
Id string - The OCID for the endpoint compartment.
- Endpoint
Collections []GetEndpoints Endpoint Collection - The list of endpoint_collection.
- Display
Name string - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- Filters
[]Get
Endpoints Filter - Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Model
Id string - The OCID of the model to associate with the endpoint.
- Project
Id string - The OCID of the project to associate with the Endpoint.
- State string
- The state of the endpoint.
- compartment
Id String - The OCID for the endpoint compartment.
- endpoint
Collections List<GetEndpoints Endpoint Collection> - The list of endpoint_collection.
- display
Name String - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- filters
List<Get
Endpoints Filter> - id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id String - The OCID of the model to associate with the endpoint.
- project
Id String - The OCID of the project to associate with the Endpoint.
- state String
- The state of the endpoint.
- compartment
Id string - The OCID for the endpoint compartment.
- endpoint
Collections GetEndpoints Endpoint Collection[] - The list of endpoint_collection.
- display
Name string - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- filters
Get
Endpoints Filter[] - id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id string - The OCID of the model to associate with the endpoint.
- project
Id string - The OCID of the project to associate with the Endpoint.
- state string
- The state of the endpoint.
- compartment_
id str - The OCID for the endpoint compartment.
- endpoint_
collections Sequence[ailanguage.Get Endpoints Endpoint Collection] - The list of endpoint_collection.
- display_
name str - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- filters
Sequence[ailanguage.
Get Endpoints Filter] - id str
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model_
id str - The OCID of the model to associate with the endpoint.
- project_
id str - The OCID of the project to associate with the Endpoint.
- state str
- The state of the endpoint.
- compartment
Id String - The OCID for the endpoint compartment.
- endpoint
Collections List<Property Map> - The list of endpoint_collection.
- display
Name String - A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
- filters List<Property Map>
- id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- model
Id String - The OCID of the model to associate with the endpoint.
- project
Id String - The OCID of the project to associate with the Endpoint.
- state String
- The state of the endpoint.
Supporting Types
GetEndpointsEndpointCollection
GetEndpointsEndpointCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- A short description of the endpoint.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Inference
Units int - Number of replicas required for this endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- Model
Id string - The ID of the trained model for which to list the endpoints.
- Project
Id string - The ID of the project for which to list the objects.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the endpoint was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the endpoint was updated. An RFC3339 formatted datetime string.
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- A short description of the endpoint.
- Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- Inference
Units int - Number of replicas required for this endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- Model
Id string - The ID of the trained model for which to list the endpoints.
- Project
Id string - The ID of the project for which to list the objects.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the endpoint was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the endpoint was updated. An RFC3339 formatted datetime string.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- A short description of the endpoint.
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- inference
Units Integer - Number of replicas required for this endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- model
Id String - The ID of the trained model for which to list the endpoints.
- project
Id String - The ID of the project for which to list the objects.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the endpoint was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the endpoint was updated. An RFC3339 formatted datetime string.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- A short description of the endpoint.
- display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- inference
Units number - Number of replicas required for this endpoint.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- model
Id string - The ID of the trained model for which to list the endpoints.
- project
Id string - The ID of the project for which to list the objects.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the the endpoint was created. An RFC3339 formatted datetime string.
- time
Updated string - The time the endpoint was updated. An RFC3339 formatted datetime string.
- compartment_
id str - The ID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- A short description of the endpoint.
- display_
name str - A filter to return only resources that match the entire display name given.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- inference_
units int - Number of replicas required for this endpoint.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- model_
id str - The ID of the trained model for which to list the endpoints.
- project_
id str - The ID of the project for which to list the objects.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the the endpoint was created. An RFC3339 formatted datetime string.
- time_
updated str - The time the endpoint was updated. An RFC3339 formatted datetime string.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- A short description of the endpoint.
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- Unique identifier endpoint OCID of an endpoint that is immutable on creation.
- inference
Units Number - Number of replicas required for this endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in failed state.
- model
Id String - The ID of the trained model for which to list the endpoints.
- project
Id String - The ID of the project for which to list the objects.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the endpoint was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the endpoint was updated. An RFC3339 formatted datetime string.
GetEndpointsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.