Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.GenerativeAi.getEndpoint
Explore with Pulumi AI
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/v2/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 GetEndpoint(ctx *Context, args *GetEndpointArgs, opts ...InvokeOption) (*GetEndpointResult, error)
func GetEndpointOutput(ctx *Context, args *GetEndpointOutputArgs, opts ...InvokeOption) GetEndpointResultOutput
> Note: This function is named GetEndpoint
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GenerativeAi/getEndpoint:getEndpoint
arguments:
# arguments dictionary
The 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> - Dedicated
Ai stringCluster Id - Dictionary<string, string>
- Description string
- An optional description of the endpoint.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Endpoint
Id string - Dictionary<string, string>
- Id string
- Lifecycle
Details string - Model
Id string - The OCID of the model that's used to create this endpoint.
- State string
- The current state of the endpoint.
- Dictionary<string, string>
- Time
Created string - Time
Updated string - The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- Compartment
Id string - Content
Moderation []GetConfigs Endpoint Content Moderation Config - Dedicated
Ai stringCluster Id - map[string]string
- Description string
- An optional description of the endpoint.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Endpoint
Id string - map[string]string
- Id string
- Lifecycle
Details string - Model
Id string - The OCID of the model that's used to create this endpoint.
- State string
- The current state of the endpoint.
- map[string]string
- Time
Created string - Time
Updated string - The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartment
Id String - content
Moderation List<GetConfigs Endpoint Content Moderation Config> - dedicated
Ai StringCluster Id - Map<String,String>
- description String
- An optional description of the endpoint.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- endpoint
Id String - Map<String,String>
- id String
- lifecycle
Details String - model
Id String - The OCID of the model that's used to create this endpoint.
- state String
- The current state of the endpoint.
- Map<String,String>
- time
Created String - time
Updated String - The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartment
Id string - content
Moderation GetConfigs Endpoint Content Moderation Config[] - dedicated
Ai stringCluster Id - {[key: string]: string}
- description string
- An optional description of the endpoint.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- endpoint
Id string - {[key: string]: string}
- id string
- lifecycle
Details string - model
Id string - The OCID of the model that's used to create this endpoint.
- state string
- The current state of the endpoint.
- {[key: string]: string}
- time
Created string - time
Updated string - The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
- compartment_
id str - content_
moderation_ Sequence[generativeai.configs Get Endpoint Content Moderation Config] - dedicated_
ai_ strcluster_ id - Mapping[str, str]
- description str
- An optional description of the endpoint.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable.
- endpoint_
id str - Mapping[str, str]
- id str
- lifecycle_
details str - model_
id str - The OCID of the model that's used to create this endpoint.
- state str
- The current state of the endpoint.
- 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.
- compartment
Id String - content
Moderation List<Property Map>Configs - dedicated
Ai StringCluster Id - Map<String>
- description String
- An optional description of the endpoint.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- endpoint
Id String - Map<String>
- id String
- lifecycle
Details String - model
Id String - The OCID of the model that's used to create this endpoint.
- state String
- The current state of the endpoint.
- Map<String>
- time
Created String - time
Updated String - The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
Supporting Types
GetEndpointContentModerationConfig
- Is
Enabled bool
- Is
Enabled bool
- is
Enabled Boolean
- is
Enabled boolean
- is_
enabled bool
- is
Enabled Boolean
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.