1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Oda
  5. getOdaPrivateEndpointAttachment
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Oda.getOdaPrivateEndpointAttachment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    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

    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 = oci_oda_oda_private_endpoint_attachment.Test_oda_private_endpoint_attachment.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_oda_oda_private_endpoint_attachment.Test_oda_private_endpoint_attachment.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(oci_oda_oda_private_endpoint_attachment.test_oda_private_endpoint_attachment().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_oda_private_endpoint_attachment = oci.Oda.get_oda_private_endpoint_attachment(oda_private_endpoint_attachment_id=oci_oda_oda_private_endpoint_attachment["test_oda_private_endpoint_attachment"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOdaPrivateEndpointAttachment = oci.Oda.getOdaPrivateEndpointAttachment({
        odaPrivateEndpointAttachmentId: oci_oda_oda_private_endpoint_attachment.test_oda_private_endpoint_attachment.id,
    });
    
    variables:
      testOdaPrivateEndpointAttachment:
        fn::invoke:
          Function: oci:Oda:getOdaPrivateEndpointAttachment
          Arguments:
            odaPrivateEndpointAttachmentId: ${oci_oda_oda_private_endpoint_attachment.test_oda_private_endpoint_attachment.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 GetOdaPrivateEndpointAttachment(ctx *Context, args *GetOdaPrivateEndpointAttachmentArgs, opts ...InvokeOption) (*GetOdaPrivateEndpointAttachmentResult, error)
    func GetOdaPrivateEndpointAttachmentOutput(ctx *Context, args *GetOdaPrivateEndpointAttachmentOutputArgs, opts ...InvokeOption) GetOdaPrivateEndpointAttachmentResultOutput

    > Note: This function is named GetOdaPrivateEndpointAttachment 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Oda/getOdaPrivateEndpointAttachment:getOdaPrivateEndpointAttachment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OdaPrivateEndpointAttachmentId string
    The OCID of ODA Private Endpoint Attachment.
    OdaPrivateEndpointAttachmentId string
    The OCID of ODA Private Endpoint Attachment.
    odaPrivateEndpointAttachmentId String
    The OCID of ODA Private Endpoint Attachment.
    odaPrivateEndpointAttachmentId string
    The OCID of ODA Private Endpoint Attachment.
    oda_private_endpoint_attachment_id str
    The OCID of ODA Private Endpoint Attachment.
    odaPrivateEndpointAttachmentId String
    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.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointAttachmentId string
    OdaPrivateEndpointId string
    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.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointAttachmentId string
    OdaPrivateEndpointId string
    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.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointAttachmentId String
    odaPrivateEndpointId String
    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.
    odaInstanceId string
    The OCID of the attached ODA Instance.
    odaPrivateEndpointAttachmentId string
    odaPrivateEndpointId string
    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_id str
    The OCID of the attached ODA Instance.
    oda_private_endpoint_attachment_id str
    oda_private_endpoint_id str
    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.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointAttachmentId String
    odaPrivateEndpointId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi