1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Oda
  5. getOdaPrivateEndpointAttachments
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Oda.getOdaPrivateEndpointAttachments

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testOdaPrivateEndpointAttachments:
    fn::invoke:
      function: oci:Oda:getOdaPrivateEndpointAttachments
      arguments:
        compartmentId: ${compartmentId}
        odaPrivateEndpointId: ${testOdaPrivateEndpoint.id}
        state: ${odaPrivateEndpointAttachmentState}
Copy

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>
Copy
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]
Copy
func GetOdaPrivateEndpointAttachments(ctx *Context, args *GetOdaPrivateEndpointAttachmentsArgs, opts ...InvokeOption) (*GetOdaPrivateEndpointAttachmentsResult, error)
func GetOdaPrivateEndpointAttachmentsOutput(ctx *Context, args *GetOdaPrivateEndpointAttachmentsOutputArgs, opts ...InvokeOption) GetOdaPrivateEndpointAttachmentsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOdaPrivateEndpointAttachmentsResult> getOdaPrivateEndpointAttachments(GetOdaPrivateEndpointAttachmentsArgs args, InvokeOptions options)
public static Output<GetOdaPrivateEndpointAttachmentsResult> getOdaPrivateEndpointAttachments(GetOdaPrivateEndpointAttachmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Oda/getOdaPrivateEndpointAttachments:getOdaPrivateEndpointAttachments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
OdaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
Filters Changes to this property will trigger replacement. List<GetOdaPrivateEndpointAttachmentsFilter>
State string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
CompartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
OdaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
Filters Changes to this property will trigger replacement. []GetOdaPrivateEndpointAttachmentsFilter
State string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
compartmentId This property is required. String
List the ODA Private Endpoint Attachments that belong to this compartment.
odaPrivateEndpointId This property is required. String
The OCID of ODA Private Endpoint.
filters Changes to this property will trigger replacement. List<GetPrivateEndpointAttachmentsFilter>
state String
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
compartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
odaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
filters Changes to this property will trigger replacement. GetOdaPrivateEndpointAttachmentsFilter[]
state string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
compartment_id This property is required. str
List the ODA Private Endpoint Attachments that belong to this compartment.
oda_private_endpoint_id This property is required. str
The OCID of ODA Private Endpoint.
filters Changes to this property will trigger replacement. Sequence[oda.GetOdaPrivateEndpointAttachmentsFilter]
state str
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
compartmentId This property is required. String
List the ODA Private Endpoint Attachments that belong to this compartment.
odaPrivateEndpointId This property is required. String
The OCID of ODA Private Endpoint.
filters Changes to this property will trigger replacement. 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 This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollection

items This property is required. List<Property Map>

GetOdaPrivateEndpointAttachmentsOdaPrivateEndpointAttachmentCollectionItem

CompartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
Id This property is required. string
The OCID of the ODA Private Endpoint Attachment.
OdaInstanceId This property is required. string
The OCID of the attached ODA Instance.
OdaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
State This property is required. string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
TimeCreated This property is required. string
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
TimeUpdated This property is required. string
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
CompartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
Id This property is required. string
The OCID of the ODA Private Endpoint Attachment.
OdaInstanceId This property is required. string
The OCID of the attached ODA Instance.
OdaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
State This property is required. string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
TimeCreated This property is required. string
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
TimeUpdated This property is required. string
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
compartmentId This property is required. String
List the ODA Private Endpoint Attachments that belong to this compartment.
id This property is required. String
The OCID of the ODA Private Endpoint Attachment.
odaInstanceId This property is required. String
The OCID of the attached ODA Instance.
odaPrivateEndpointId This property is required. String
The OCID of ODA Private Endpoint.
state This property is required. String
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
timeCreated This property is required. String
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
timeUpdated This property is required. String
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
compartmentId This property is required. string
List the ODA Private Endpoint Attachments that belong to this compartment.
id This property is required. string
The OCID of the ODA Private Endpoint Attachment.
odaInstanceId This property is required. string
The OCID of the attached ODA Instance.
odaPrivateEndpointId This property is required. string
The OCID of ODA Private Endpoint.
state This property is required. string
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
timeCreated This property is required. string
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
timeUpdated This property is required. string
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
compartment_id This property is required. str
List the ODA Private Endpoint Attachments that belong to this compartment.
id This property is required. str
The OCID of the ODA Private Endpoint Attachment.
oda_instance_id This property is required. str
The OCID of the attached ODA Instance.
oda_private_endpoint_id This property is required. str
The OCID of ODA Private Endpoint.
state This property is required. str
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
time_created This property is required. str
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
time_updated This property is required. str
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
compartmentId This property is required. String
List the ODA Private Endpoint Attachments that belong to this compartment.
id This property is required. String
The OCID of the ODA Private Endpoint Attachment.
odaInstanceId This property is required. String
The OCID of the attached ODA Instance.
odaPrivateEndpointId This property is required. String
The OCID of ODA Private Endpoint.
state This property is required. String
List only the ODA Private Endpoint Attachments that are in this lifecycle state.
timeCreated This property is required. String
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
timeUpdated This property is required. 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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi