Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Oda.getOdaPrivateEndpointAttachment
Explore with Pulumi AI
This data source provides details about a specific Oda Private Endpoint Attachment resource in Oracle Cloud Infrastructure Digital Assistant service.
Gets the specified ODA Private Endpoint Attachment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOdaPrivateEndpointAttachment = oci.Oda.getOdaPrivateEndpointAttachment({
    odaPrivateEndpointAttachmentId: testOdaPrivateEndpointAttachmentOciOdaOdaPrivateEndpointAttachment.id,
});
import pulumi
import pulumi_oci as oci
test_oda_private_endpoint_attachment = oci.Oda.get_oda_private_endpoint_attachment(oda_private_endpoint_attachment_id=test_oda_private_endpoint_attachment_oci_oda_oda_private_endpoint_attachment["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/oda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := oda.GetOdaPrivateEndpointAttachment(ctx, &oda.GetOdaPrivateEndpointAttachmentArgs{
			OdaPrivateEndpointAttachmentId: testOdaPrivateEndpointAttachmentOciOdaOdaPrivateEndpointAttachment.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 testOdaPrivateEndpointAttachment = Oci.Oda.GetOdaPrivateEndpointAttachment.Invoke(new()
    {
        OdaPrivateEndpointAttachmentId = testOdaPrivateEndpointAttachmentOciOdaOdaPrivateEndpointAttachment.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Oda.OdaFunctions;
import com.pulumi.oci.Oda.inputs.GetOdaPrivateEndpointAttachmentArgs;
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 testOdaPrivateEndpointAttachment = OdaFunctions.getOdaPrivateEndpointAttachment(GetOdaPrivateEndpointAttachmentArgs.builder()
            .odaPrivateEndpointAttachmentId(testOdaPrivateEndpointAttachmentOciOdaOdaPrivateEndpointAttachment.id())
            .build());
    }
}
variables:
  testOdaPrivateEndpointAttachment:
    fn::invoke:
      function: oci:Oda:getOdaPrivateEndpointAttachment
      arguments:
        odaPrivateEndpointAttachmentId: ${testOdaPrivateEndpointAttachmentOciOdaOdaPrivateEndpointAttachment.id}
Using getOdaPrivateEndpointAttachment
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 getOdaPrivateEndpointAttachment(args: GetOdaPrivateEndpointAttachmentArgs, opts?: InvokeOptions): Promise<GetOdaPrivateEndpointAttachmentResult>
function getOdaPrivateEndpointAttachmentOutput(args: GetOdaPrivateEndpointAttachmentOutputArgs, opts?: InvokeOptions): Output<GetOdaPrivateEndpointAttachmentResult>def get_oda_private_endpoint_attachment(oda_private_endpoint_attachment_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetOdaPrivateEndpointAttachmentResult
def get_oda_private_endpoint_attachment_output(oda_private_endpoint_attachment_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetOdaPrivateEndpointAttachmentResult]func LookupOdaPrivateEndpointAttachment(ctx *Context, args *LookupOdaPrivateEndpointAttachmentArgs, opts ...InvokeOption) (*LookupOdaPrivateEndpointAttachmentResult, error)
func LookupOdaPrivateEndpointAttachmentOutput(ctx *Context, args *LookupOdaPrivateEndpointAttachmentOutputArgs, opts ...InvokeOption) LookupOdaPrivateEndpointAttachmentResultOutput> Note: This function is named LookupOdaPrivateEndpointAttachment in the Go SDK.
public static class GetOdaPrivateEndpointAttachment 
{
    public static Task<GetOdaPrivateEndpointAttachmentResult> InvokeAsync(GetOdaPrivateEndpointAttachmentArgs args, InvokeOptions? opts = null)
    public static Output<GetOdaPrivateEndpointAttachmentResult> Invoke(GetOdaPrivateEndpointAttachmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOdaPrivateEndpointAttachmentResult> getOdaPrivateEndpointAttachment(GetOdaPrivateEndpointAttachmentArgs args, InvokeOptions options)
public static Output<GetOdaPrivateEndpointAttachmentResult> getOdaPrivateEndpointAttachment(GetOdaPrivateEndpointAttachmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Oda/getOdaPrivateEndpointAttachment:getOdaPrivateEndpointAttachment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OdaPrivate stringEndpoint Attachment Id 
- The OCID of ODA Private Endpoint Attachment.
- OdaPrivate stringEndpoint Attachment Id 
- The OCID of ODA Private Endpoint Attachment.
- odaPrivate StringEndpoint Attachment Id 
- The OCID of ODA Private Endpoint Attachment.
- odaPrivate stringEndpoint Attachment Id 
- The OCID of ODA Private Endpoint Attachment.
- oda_private_ strendpoint_ attachment_ id 
- The OCID of ODA Private Endpoint Attachment.
- odaPrivate StringEndpoint Attachment Id 
- The OCID of ODA Private Endpoint Attachment.
getOdaPrivateEndpointAttachment Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- Id string
- The OCID of the ODA Private Endpoint Attachment.
- OdaInstance stringId 
- The OCID of the attached ODA Instance.
- OdaPrivate stringEndpoint Attachment Id 
- OdaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- State string
- The current state of the ODA Private Endpoint attachment.
- TimeCreated string
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- TimeUpdated string
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- CompartmentId string
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- Id string
- The OCID of the ODA Private Endpoint Attachment.
- OdaInstance stringId 
- The OCID of the attached ODA Instance.
- OdaPrivate stringEndpoint Attachment Id 
- OdaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- State string
- The current state of the ODA Private Endpoint attachment.
- TimeCreated string
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- TimeUpdated string
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartmentId String
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- id String
- The OCID of the ODA Private Endpoint Attachment.
- odaInstance StringId 
- The OCID of the attached ODA Instance.
- odaPrivate StringEndpoint Attachment Id 
- odaPrivate StringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- state String
- The current state of the ODA Private Endpoint attachment.
- timeCreated String
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- timeUpdated String
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartmentId string
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- id string
- The OCID of the ODA Private Endpoint Attachment.
- odaInstance stringId 
- The OCID of the attached ODA Instance.
- odaPrivate stringEndpoint Attachment Id 
- odaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- state string
- The current state of the ODA Private Endpoint attachment.
- timeCreated string
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- timeUpdated string
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartment_id str
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- id str
- The OCID of the ODA Private Endpoint Attachment.
- oda_instance_ strid 
- The OCID of the attached ODA Instance.
- oda_private_ strendpoint_ attachment_ id 
- oda_private_ strendpoint_ id 
- The OCID of the ODA Private Endpoint.
- state str
- The current state of the ODA Private Endpoint attachment.
- time_created str
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- time_updated str
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartmentId String
- The OCID of the compartment that the ODA private endpoint attachment belongs to.
- id String
- The OCID of the ODA Private Endpoint Attachment.
- odaInstance StringId 
- The OCID of the attached ODA Instance.
- odaPrivate StringEndpoint Attachment Id 
- odaPrivate StringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- state String
- The current state of the ODA Private Endpoint attachment.
- timeCreated String
- When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- timeUpdated String
- When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.