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[_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:
- Compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- Oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- Filters
List<Get
Oda Private Endpoint Attachments Filter> - State string
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- Compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- Oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- Filters
[]Get
Oda Private Endpoint Attachments Filter - State string
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- compartment
Id String - List the ODA Private Endpoint Attachments that belong to this compartment.
- oda
Private StringEndpoint Id - The OCID of ODA Private Endpoint.
- filters
List<Get
Private Endpoint Attachments Filter> - state String
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- filters
Get
Oda 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[oda.
Get Oda Private Endpoint Attachments Filter] - state str
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- compartment
Id String - List the ODA Private Endpoint Attachments that belong to this compartment.
- oda
Private 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:
- Compartment
Id 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.
- Oda
Private List<GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection> - The list of oda_private_endpoint_attachment_collection.
- Oda
Private stringEndpoint Id - The OCID of the ODA Private Endpoint.
- Filters
List<Get
Oda Private Endpoint Attachments Filter> - State string
- The current state of the ODA Private Endpoint attachment.
- Compartment
Id 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.
- Oda
Private []GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection - The list of oda_private_endpoint_attachment_collection.
- Oda
Private stringEndpoint Id - The OCID of the ODA Private Endpoint.
- Filters
[]Get
Oda Private Endpoint Attachments Filter - State string
- The current state of the ODA Private Endpoint attachment.
- compartment
Id 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.
- oda
Private List<GetEndpoint Attachment Collections Private Endpoint Attachments Private Endpoint Attachment Collection> - The list of oda_private_endpoint_attachment_collection.
- oda
Private StringEndpoint Id - The OCID of the ODA Private Endpoint.
- filters
List<Get
Private Endpoint Attachments Filter> - state String
- The current state of the ODA Private Endpoint attachment.
- compartment
Id 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.
- oda
Private GetEndpoint Attachment Collections Oda Private Endpoint Attachments Oda Private Endpoint Attachment Collection[] - The list of oda_private_endpoint_attachment_collection.
- oda
Private stringEndpoint Id - The OCID of the ODA Private Endpoint.
- filters
Get
Oda 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[oda.endpoint_ attachment_ collections Get 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[oda.
Get Oda Private Endpoint Attachments Filter] - state str
- The current state of the ODA Private Endpoint attachment.
- compartment
Id 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.
- oda
Private List<Property Map>Endpoint Attachment Collections - The list of oda_private_endpoint_attachment_collection.
- oda
Private 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
- Compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- Id string
- The OCID of the ODA Private Endpoint Attachment.
- Oda
Instance stringId - The OCID of the attached ODA Instance.
- Oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- State string
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- Time
Created string - When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- Time
Updated string - When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- Compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- Id string
- The OCID of the ODA Private Endpoint Attachment.
- Oda
Instance stringId - The OCID of the attached ODA Instance.
- Oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- State string
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- Time
Created string - When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- Time
Updated string - When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartment
Id String - List the ODA Private Endpoint Attachments that belong to this compartment.
- id String
- The OCID of the ODA Private Endpoint Attachment.
- oda
Instance StringId - The OCID of the attached ODA Instance.
- oda
Private StringEndpoint Id - The OCID of ODA Private Endpoint.
- state String
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- time
Created String - When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- time
Updated String - When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
- compartment
Id string - List the ODA Private Endpoint Attachments that belong to this compartment.
- id string
- The OCID of the ODA Private Endpoint Attachment.
- oda
Instance stringId - The OCID of the attached ODA Instance.
- oda
Private stringEndpoint Id - The OCID of ODA Private Endpoint.
- state string
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- time
Created string - When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- time
Updated 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.
- compartment
Id String - List the ODA Private Endpoint Attachments that belong to this compartment.
- id String
- The OCID of the ODA Private Endpoint Attachment.
- oda
Instance StringId - The OCID of the attached ODA Instance.
- oda
Private StringEndpoint Id - The OCID of ODA Private Endpoint.
- state String
- List only the ODA Private Endpoint Attachments that are in this lifecycle state.
- time
Created String - When the resource was created. A date-time string as described in RFC 3339, section 14.29.
- time
Updated 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.