1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Oda
  5. getOdaPrivateEndpointAttachments
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Oda.getOdaPrivateEndpointAttachments

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Oda Private Endpoint Attachments in Oracle Cloud Infrastructure Digital Assistant service.

    Returns a page of ODA Instances attached to this ODA Private Endpoint.

    If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header’s value as the page query parameter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOdaPrivateEndpointAttachments = oci.Oda.getOdaPrivateEndpointAttachments({
        compartmentId: compartmentId,
        odaPrivateEndpointId: testOdaPrivateEndpoint.id,
        state: odaPrivateEndpointAttachmentState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_oda_private_endpoint_attachments = oci.Oda.get_oda_private_endpoint_attachments(compartment_id=compartment_id,
        oda_private_endpoint_id=test_oda_private_endpoint["id"],
        state=oda_private_endpoint_attachment_state)
    
    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.GetOdaPrivateEndpointAttachments(ctx, &oda.GetOdaPrivateEndpointAttachmentsArgs{
    			CompartmentId:        compartmentId,
    			OdaPrivateEndpointId: testOdaPrivateEndpoint.Id,
    			State:                pulumi.StringRef(odaPrivateEndpointAttachmentState),
    		}, 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 testOdaPrivateEndpointAttachments = Oci.Oda.GetOdaPrivateEndpointAttachments.Invoke(new()
        {
            CompartmentId = compartmentId,
            OdaPrivateEndpointId = testOdaPrivateEndpoint.Id,
            State = odaPrivateEndpointAttachmentState,
        });
    
    });
    
    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.GetOdaPrivateEndpointAttachmentsArgs;
    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 testOdaPrivateEndpointAttachments = OdaFunctions.getOdaPrivateEndpointAttachments(GetOdaPrivateEndpointAttachmentsArgs.builder()
                .compartmentId(compartmentId)
                .odaPrivateEndpointId(testOdaPrivateEndpoint.id())
                .state(odaPrivateEndpointAttachmentState)
                .build());
    
        }
    }
    
    variables:
      testOdaPrivateEndpointAttachments:
        fn::invoke:
          Function: oci:Oda:getOdaPrivateEndpointAttachments
          Arguments:
            compartmentId: ${compartmentId}
            odaPrivateEndpointId: ${testOdaPrivateEndpoint.id}
            state: ${odaPrivateEndpointAttachmentState}
    

    Using getOdaPrivateEndpointAttachments

    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 getOdaPrivateEndpointAttachments(args: GetOdaPrivateEndpointAttachmentsArgs, opts?: InvokeOptions): Promise<GetOdaPrivateEndpointAttachmentsResult>
    function getOdaPrivateEndpointAttachmentsOutput(args: GetOdaPrivateEndpointAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetOdaPrivateEndpointAttachmentsResult>
    def get_oda_private_endpoint_attachments(compartment_id: Optional[str] = None,
                                             filters: Optional[Sequence[_oda.GetOdaPrivateEndpointAttachmentsFilter]] = None,
                                             oda_private_endpoint_id: Optional[str] = None,
                                             state: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetOdaPrivateEndpointAttachmentsResult
    def get_oda_private_endpoint_attachments_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_oda.GetOdaPrivateEndpointAttachmentsFilterArgs]]]] = None,
                                             oda_private_endpoint_id: Optional[pulumi.Input[str]] = None,
                                             state: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetOdaPrivateEndpointAttachmentsResult]
    func GetOdaPrivateEndpointAttachments(ctx *Context, args *GetOdaPrivateEndpointAttachmentsArgs, opts ...InvokeOption) (*GetOdaPrivateEndpointAttachmentsResult, error)
    func GetOdaPrivateEndpointAttachmentsOutput(ctx *Context, args *GetOdaPrivateEndpointAttachmentsOutputArgs, opts ...InvokeOption) GetOdaPrivateEndpointAttachmentsResultOutput

    > Note: This function is named GetOdaPrivateEndpointAttachments in the Go SDK.

    public static class GetOdaPrivateEndpointAttachments 
    {
        public static Task<GetOdaPrivateEndpointAttachmentsResult> InvokeAsync(GetOdaPrivateEndpointAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetOdaPrivateEndpointAttachmentsResult> Invoke(GetOdaPrivateEndpointAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOdaPrivateEndpointAttachmentsResult> getOdaPrivateEndpointAttachments(GetOdaPrivateEndpointAttachmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Oda/getOdaPrivateEndpointAttachments:getOdaPrivateEndpointAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    List the ODA Private Endpoint Attachments that belong to this compartment.
    OdaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    Filters List<GetOdaPrivateEndpointAttachmentsFilter>
    State string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    CompartmentId string
    List the ODA Private Endpoint Attachments that belong to this compartment.
    OdaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    Filters []GetOdaPrivateEndpointAttachmentsFilter
    State string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    compartmentId String
    List the ODA Private Endpoint Attachments that belong to this compartment.
    odaPrivateEndpointId String
    The OCID of ODA Private Endpoint.
    filters List<GetPrivateEndpointAttachmentsFilter>
    state String
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    compartmentId string
    List the ODA Private Endpoint Attachments that belong to this compartment.
    odaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    filters GetOdaPrivateEndpointAttachmentsFilter[]
    state string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    compartment_id str
    List the ODA Private Endpoint Attachments that belong to this compartment.
    oda_private_endpoint_id str
    The OCID of ODA Private Endpoint.
    filters Sequence[oda.GetOdaPrivateEndpointAttachmentsFilter]
    state str
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    compartmentId String
    List the ODA Private Endpoint Attachments that belong to this compartment.
    odaPrivateEndpointId String
    The OCID of ODA Private Endpoint.
    filters List<Property Map>
    state String
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.

    getOdaPrivateEndpointAttachments 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 provider-assigned unique ID for this managed resource.
    OdaPrivateEndpointAttachmentCollections List<GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection>
    The list of oda_private_endpoint_attachment_collection.
    OdaPrivateEndpointId string
    The OCID of the ODA Private Endpoint.
    Filters List<GetOdaPrivateEndpointAttachmentsFilter>
    State string
    The current state of the ODA Private Endpoint attachment.
    CompartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    OdaPrivateEndpointAttachmentCollections []GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection
    The list of oda_private_endpoint_attachment_collection.
    OdaPrivateEndpointId string
    The OCID of the ODA Private Endpoint.
    Filters []GetOdaPrivateEndpointAttachmentsFilter
    State string
    The current state of the ODA Private Endpoint attachment.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    odaPrivateEndpointAttachmentCollections List<GetPrivateEndpointAttachmentsPrivateEndpointAttachmentCollection>
    The list of oda_private_endpoint_attachment_collection.
    odaPrivateEndpointId String
    The OCID of the ODA Private Endpoint.
    filters List<GetPrivateEndpointAttachmentsFilter>
    state String
    The current state of the ODA Private Endpoint attachment.
    compartmentId string
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    odaPrivateEndpointAttachmentCollections GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection[]
    The list of oda_private_endpoint_attachment_collection.
    odaPrivateEndpointId string
    The OCID of the ODA Private Endpoint.
    filters GetOdaPrivateEndpointAttachmentsFilter[]
    state string
    The current state of the ODA Private Endpoint attachment.
    compartment_id str
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id str
    The provider-assigned unique ID for this managed resource.
    oda_private_endpoint_attachment_collections Sequence[oda.GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection]
    The list of oda_private_endpoint_attachment_collection.
    oda_private_endpoint_id str
    The OCID of the ODA Private Endpoint.
    filters Sequence[oda.GetOdaPrivateEndpointAttachmentsFilter]
    state str
    The current state of the ODA Private Endpoint attachment.
    compartmentId String
    The OCID of the compartment that the ODA private endpoint attachment belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    odaPrivateEndpointAttachmentCollections List<Property Map>
    The list of oda_private_endpoint_attachment_collection.
    odaPrivateEndpointId String
    The OCID of the ODA Private Endpoint.
    filters List<Property Map>
    state String
    The current state of the ODA Private Endpoint attachment.

    Supporting Types

    GetOdaPrivateEndpointAttachmentsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection

    GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollectionItem

    CompartmentId string
    List the ODA Private Endpoint Attachments that belong to this compartment.
    Id string
    The OCID of the ODA Private Endpoint Attachment.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    State string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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
    List the ODA Private Endpoint Attachments that belong to this compartment.
    Id string
    The OCID of the ODA Private Endpoint Attachment.
    OdaInstanceId string
    The OCID of the attached ODA Instance.
    OdaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    State string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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
    List the ODA Private Endpoint Attachments that belong to this compartment.
    id String
    The OCID of the ODA Private Endpoint Attachment.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String
    The OCID of ODA Private Endpoint.
    state String
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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
    List the ODA Private Endpoint Attachments that belong to this compartment.
    id string
    The OCID of the ODA Private Endpoint Attachment.
    odaInstanceId string
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId string
    The OCID of ODA Private Endpoint.
    state string
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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
    List the ODA Private Endpoint Attachments that belong to this compartment.
    id str
    The OCID of the ODA Private Endpoint Attachment.
    oda_instance_id str
    The OCID of the attached ODA Instance.
    oda_private_endpoint_id str
    The OCID of ODA Private Endpoint.
    state str
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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
    List the ODA Private Endpoint Attachments that belong to this compartment.
    id String
    The OCID of the ODA Private Endpoint Attachment.
    odaInstanceId String
    The OCID of the attached ODA Instance.
    odaPrivateEndpointId String
    The OCID of ODA Private Endpoint.
    state String
    List only the ODA Private Endpoint Attachments that are in this lifecycle state.
    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi