Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.GenerativeAi.getEndpoints
Explore with Pulumi AI
This data source provides the list of Endpoints in Oracle Cloud Infrastructure Generative AI service.
Lists the endpoints of a specific compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testEndpoints = oci.GenerativeAi.getEndpoints({
    compartmentId: compartmentId,
    displayName: endpointDisplayName,
    id: endpointId,
    state: endpointState,
});
import pulumi
import pulumi_oci as oci
test_endpoints = oci.GenerativeAi.get_endpoints(compartment_id=compartment_id,
    display_name=endpoint_display_name,
    id=endpoint_id,
    state=endpoint_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/generativeai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := generativeai.GetEndpoints(ctx, &generativeai.GetEndpointsArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(endpointDisplayName),
			Id:            pulumi.StringRef(endpointId),
			State:         pulumi.StringRef(endpointState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testEndpoints = Oci.GenerativeAi.GetEndpoints.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = endpointDisplayName,
        Id = endpointId,
        State = endpointState,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
import com.pulumi.oci.GenerativeAi.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 = GenerativeAiFunctions.getEndpoints(GetEndpointsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(endpointDisplayName)
            .id(endpointId)
            .state(endpointState)
            .build());
    }
}
variables:
  testEndpoints:
    fn::invoke:
      function: oci:GenerativeAi:getEndpoints
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${endpointDisplayName}
        id: ${endpointId}
        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[GetEndpointsFilter]] = None,
                  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[GetEndpointsFilterArgs]]]] = None,
                  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)
public static Output<GetEndpointsResult> getEndpoints(GetEndpointsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:GenerativeAi/getEndpoints:getEndpoints
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetEndpoints Filter> 
- Id string
- The OCID of the endpoint.
- State string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetEndpoints Filter 
- Id string
- The OCID of the endpoint.
- State string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- compartmentId String
- The OCID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetEndpoints Filter> 
- id String
- The OCID of the endpoint.
- state String
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- compartmentId string
- The OCID of the compartment in which to list resources.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetEndpoints Filter[] 
- id string
- The OCID of the endpoint.
- state string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- compartment_id str
- The OCID of the compartment in which to list resources.
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetEndpoints Filter] 
- id str
- The OCID of the endpoint.
- state str
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- compartmentId String
- The OCID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- id String
- The OCID of the endpoint.
- state String
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
getEndpoints Result
The following output properties are available:
- CompartmentId string
- EndpointCollections List<GetEndpoints Endpoint Collection> 
- The list of endpoint_collection.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
List<GetEndpoints Filter> 
- Id string
- State string
- The current state of the endpoint.
- CompartmentId string
- EndpointCollections []GetEndpoints Endpoint Collection 
- The list of endpoint_collection.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
[]GetEndpoints Filter 
- Id string
- State string
- The current state of the endpoint.
- compartmentId String
- endpointCollections List<GetEndpoints Endpoint Collection> 
- The list of endpoint_collection.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable.
- filters
List<GetEndpoints Filter> 
- id String
- state String
- The current state of the endpoint.
- compartmentId string
- endpointCollections GetEndpoints Endpoint Collection[] 
- The list of endpoint_collection.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable.
- filters
GetEndpoints Filter[] 
- id string
- state string
- The current state of the endpoint.
- compartment_id str
- endpoint_collections Sequence[GetEndpoints Endpoint Collection] 
- The list of endpoint_collection.
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Sequence[GetEndpoints Filter] 
- id str
- state str
- The current state of the endpoint.
- compartmentId String
- endpointCollections List<Property Map>
- The list of endpoint_collection.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable.
- filters List<Property Map>
- id String
- state String
- The current state of the endpoint.
Supporting Types
GetEndpointsEndpointCollection   
GetEndpointsEndpointCollectionItem    
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ContentModeration List<GetConfigs Endpoints Endpoint Collection Item Content Moderation Config> 
- DedicatedAi stringCluster Id 
- Dictionary<string, string>
- Description string
- An optional description of the endpoint.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- Id string
- The OCID of the endpoint.
- LifecycleDetails string
- ModelId string
- The OCID of the model that's used to create this endpoint.
- State string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- Dictionary<string, string>
- TimeCreated string
- TimeUpdated string
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ContentModeration []GetConfigs Endpoints Endpoint Collection Item Content Moderation Config 
- DedicatedAi stringCluster Id 
- map[string]string
- Description string
- An optional description of the endpoint.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- map[string]string
- Id string
- The OCID of the endpoint.
- LifecycleDetails string
- ModelId string
- The OCID of the model that's used to create this endpoint.
- State string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- map[string]string
- TimeCreated string
- TimeUpdated string
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartmentId String
- The OCID of the compartment in which to list resources.
- contentModeration List<GetConfigs Endpoints Endpoint Collection Item Content Moderation Config> 
- dedicatedAi StringCluster Id 
- Map<String,String>
- description String
- An optional description of the endpoint.
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String,String>
- id String
- The OCID of the endpoint.
- lifecycleDetails String
- modelId String
- The OCID of the model that's used to create this endpoint.
- state String
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- Map<String,String>
- timeCreated String
- timeUpdated String
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartmentId string
- The OCID of the compartment in which to list resources.
- contentModeration GetConfigs Endpoints Endpoint Collection Item Content Moderation Config[] 
- dedicatedAi stringCluster Id 
- {[key: string]: string}
- description string
- An optional description of the endpoint.
- displayName string
- A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- id string
- The OCID of the endpoint.
- lifecycleDetails string
- modelId string
- The OCID of the model that's used to create this endpoint.
- state string
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- {[key: string]: string}
- timeCreated string
- timeUpdated string
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartment_id str
- The OCID of the compartment in which to list resources.
- content_moderation_ Sequence[Getconfigs Endpoints Endpoint Collection Item Content Moderation Config] 
- dedicated_ai_ strcluster_ id 
- Mapping[str, str]
- description str
- An optional description of the endpoint.
- display_name str
- A filter to return only resources that match the given display name exactly.
- Mapping[str, str]
- id str
- The OCID of the endpoint.
- lifecycle_details str
- model_id str
- The OCID of the model that's used to create this endpoint.
- state str
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- Mapping[str, str]
- time_created str
- time_updated str
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartmentId String
- The OCID of the compartment in which to list resources.
- contentModeration List<Property Map>Configs 
- dedicatedAi StringCluster Id 
- Map<String>
- description String
- An optional description of the endpoint.
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String>
- id String
- The OCID of the endpoint.
- lifecycleDetails String
- modelId String
- The OCID of the model that's used to create this endpoint.
- state String
- A filter to return only resources that their lifecycle state matches the given lifecycle state.
- Map<String>
- timeCreated String
- timeUpdated String
- The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
GetEndpointsEndpointCollectionItemContentModerationConfig       
- IsEnabled bool
- IsEnabled bool
- isEnabled Boolean
- isEnabled boolean
- is_enabled bool
- isEnabled Boolean
GetEndpointsFilter  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.