oci.Oda.getOdaPrivateEndpointAttachments
Explore with Pulumi AI
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[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[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)
public static Output<GetOdaPrivateEndpointAttachmentsResult> getOdaPrivateEndpointAttachments(GetOdaPrivateEndpointAttachmentsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Oda/getOdaPrivateEndpointAttachments:getOdaPrivateEndpointAttachments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- List the ODA Private Endpoint Attachments that belong to this compartment.
- OdaPrivate stringEndpoint Id 
- The OCID of ODA Private Endpoint.
- Filters
List<GetOda Private Endpoint Attachments Filter> 
- 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.
- OdaPrivate stringEndpoint Id 
- The OCID of ODA Private Endpoint.
- Filters
[]GetOda Private Endpoint Attachments Filter 
- 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.
- odaPrivate StringEndpoint Id 
- The OCID of ODA Private Endpoint.
- filters
List<GetPrivate Endpoint Attachments Filter> 
- 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.
- odaPrivate stringEndpoint Id 
- The OCID of ODA Private Endpoint.
- filters
GetOda Private Endpoint Attachments Filter[] 
- 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_ strendpoint_ id 
- The OCID of ODA Private Endpoint.
- filters
Sequence[GetOda Private Endpoint Attachments Filter] 
- 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.
- odaPrivate StringEndpoint Id 
- 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.
- OdaPrivate List<GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection> 
- The list of oda_private_endpoint_attachment_collection.
- OdaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- Filters
List<GetOda Private Endpoint Attachments Filter> 
- 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.
- OdaPrivate []GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection 
- The list of oda_private_endpoint_attachment_collection.
- OdaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- Filters
[]GetOda Private Endpoint Attachments Filter 
- 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.
- odaPrivate List<GetEndpoint Attachment Collections Private Endpoint Attachments Private Endpoint Attachment Collection> 
- The list of oda_private_endpoint_attachment_collection.
- odaPrivate StringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- filters
List<GetPrivate Endpoint Attachments Filter> 
- 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.
- odaPrivate GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection[] 
- The list of oda_private_endpoint_attachment_collection.
- odaPrivate stringEndpoint Id 
- The OCID of the ODA Private Endpoint.
- filters
GetOda Private Endpoint Attachments Filter[] 
- 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_ Sequence[Getendpoint_ attachment_ collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection] 
- The list of oda_private_endpoint_attachment_collection.
- oda_private_ strendpoint_ id 
- The OCID of the ODA Private Endpoint.
- filters
Sequence[GetOda Private Endpoint Attachments Filter] 
- 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.
- odaPrivate List<Property Map>Endpoint Attachment Collections 
- The list of oda_private_endpoint_attachment_collection.
- odaPrivate StringEndpoint Id 
- 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     
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.
- OdaInstance stringId 
- The OCID of the attached ODA Instance.
- OdaPrivate stringEndpoint Id 
- 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.
- OdaInstance stringId 
- The OCID of the attached ODA Instance.
- OdaPrivate stringEndpoint Id 
- 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.
- odaInstance StringId 
- The OCID of the attached ODA Instance.
- odaPrivate StringEndpoint Id 
- 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.
- odaInstance stringId 
- The OCID of the attached ODA Instance.
- odaPrivate stringEndpoint Id 
- 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_ strid 
- The OCID of the attached ODA Instance.
- oda_private_ strendpoint_ id 
- 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.
- odaInstance StringId 
- The OCID of the attached ODA Instance.
- odaPrivate StringEndpoint Id 
- 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 ociTerraform Provider.