Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.GenerativeAi.getEndpoint
Start a Neo task
Explain and create an oci.GenerativeAi.getEndpoint resource
This data source provides details about a specific Endpoint resource in Oracle Cloud Infrastructure Generative AI service.
Gets information about an endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testEndpoint = oci.GenerativeAi.getEndpoint({
endpointId: testEndpointOciGenerativeAiEndpoint.id,
});
import pulumi
import pulumi_oci as oci
test_endpoint = oci.GenerativeAi.get_endpoint(endpoint_id=test_endpoint_oci_generative_ai_endpoint["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/generativeai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := generativeai.GetEndpoint(ctx, &generativeai.GetEndpointArgs{
EndpointId: testEndpointOciGenerativeAiEndpoint.Id,
}, 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 testEndpoint = Oci.GenerativeAi.GetEndpoint.Invoke(new()
{
EndpointId = testEndpointOciGenerativeAiEndpoint.Id,
});
});
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.GetEndpointArgs;
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 testEndpoint = GenerativeAiFunctions.getEndpoint(GetEndpointArgs.builder()
.endpointId(testEndpointOciGenerativeAiEndpoint.id())
.build());
}
}
variables:
testEndpoint:
fn::invoke:
function: oci:GenerativeAi:getEndpoint
arguments:
endpointId: ${testEndpointOciGenerativeAiEndpoint.id}
Using getEndpoint
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 getEndpoint(args: GetEndpointArgs, opts?: InvokeOptions): Promise<GetEndpointResult>
function getEndpointOutput(args: GetEndpointOutputArgs, opts?: InvokeOptions): Output<GetEndpointResult>def get_endpoint(endpoint_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEndpointResult
def get_endpoint_output(endpoint_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEndpointResult]func LookupEndpoint(ctx *Context, args *LookupEndpointArgs, opts ...InvokeOption) (*LookupEndpointResult, error)
func LookupEndpointOutput(ctx *Context, args *LookupEndpointOutputArgs, opts ...InvokeOption) LookupEndpointResultOutput> Note: This function is named LookupEndpoint in the Go SDK.
public static class GetEndpoint
{
public static Task<GetEndpointResult> InvokeAsync(GetEndpointArgs args, InvokeOptions? opts = null)
public static Output<GetEndpointResult> Invoke(GetEndpointInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEndpointResult> getEndpoint(GetEndpointArgs args, InvokeOptions options)
public static Output<GetEndpointResult> getEndpoint(GetEndpointArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getEndpoint:getEndpoint
arguments:
# arguments dictionaryThe following arguments are supported:
- Endpoint
Id string - The OCID of the endpoint.
- Endpoint
Id string - The OCID of the endpoint.
- endpoint
Id String - The OCID of the endpoint.
- endpoint
Id string - The OCID of the endpoint.
- endpoint_
id str - The OCID of the endpoint.
- endpoint
Id String - The OCID of the endpoint.
getEndpoint Result
The following output properties are available:
- Compartment
Id string - Content
Moderation List<GetConfigs Endpoint Content Moderation Config> - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- Dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- Display
Name string - Endpoint
Id string - Dictionary<string, string>
- Generative
Ai stringPrivate Endpoint Id - Id string
- Lifecycle
Details string - A message describing the current state of the endpoint in more detail that can provide actionable information.
- Model
Id string - The OCID of the model used for the feature.
- State string
- The current state of the endpoint.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Updated string
- Compartment
Id string - Content
Moderation []GetConfigs Endpoint Content Moderation Config - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- Dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- Display
Name string - Endpoint
Id string - map[string]string
- Generative
Ai stringPrivate Endpoint Id - Id string
- Lifecycle
Details string - A message describing the current state of the endpoint in more detail that can provide actionable information.
- Model
Id string - The OCID of the model used for the feature.
- State string
- The current state of the endpoint.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Updated string
- compartment
Id String - content
Moderation List<GetConfigs Endpoint Content Moderation Config> - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- dedicated
Ai StringCluster Id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- display
Name String - endpoint
Id String - Map<String,String>
- generative
Ai StringPrivate Endpoint Id - id String
- lifecycle
Details String - A message describing the current state of the endpoint in more detail that can provide actionable information.
- model
Id String - The OCID of the model used for the feature.
- state String
- The current state of the endpoint.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Updated String
- compartment
Id string - content
Moderation GetConfigs Endpoint Content Moderation Config[] - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- display
Name string - endpoint
Id string - {[key: string]: string}
- generative
Ai stringPrivate Endpoint Id - id string
- lifecycle
Details string - A message describing the current state of the endpoint in more detail that can provide actionable information.
- model
Id string - The OCID of the model used for the feature.
- state string
- The current state of the endpoint.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - time
Updated string
- compartment_
id str - content_
moderation_ Sequence[Getconfigs Endpoint Content Moderation Config] - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- dedicated_
ai_ strcluster_ id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- display_
name str - endpoint_
id str - Mapping[str, str]
- generative_
ai_ strprivate_ endpoint_ id - id str
- lifecycle_
details str - A message describing the current state of the endpoint in more detail that can provide actionable information.
- model_
id str - The OCID of the model used for the feature.
- state str
- The current state of the endpoint.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - time_
updated str
- compartment
Id String - content
Moderation List<Property Map>Configs - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
- dedicated
Ai StringCluster Id - The OCID of the dedicated AI cluster on which the model will be deployed to.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- display
Name String - endpoint
Id String - Map<String>
- generative
Ai StringPrivate Endpoint Id - id String
- lifecycle
Details String - A message describing the current state of the endpoint in more detail that can provide actionable information.
- model
Id String - The OCID of the model used for the feature.
- state String
- The current state of the endpoint.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Updated String
Supporting Types
GetEndpointContentModerationConfig
- is_
enabled bool - Whether to enable the content moderation feature.
- mode str
- Enum for the modes of operation for inference protection.
- model_
id str - The OCID of the model used for the feature.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
