Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getRecipientInvitations
Explore with Pulumi AI
This data source provides the list of Recipient Invitations in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Return a (paginated) list of recipient invitations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRecipientInvitations = oci.Tenantmanagercontrolplane.getRecipientInvitations({
    compartmentId: compartmentId,
    senderTenancyId: testTenancy.id,
    state: recipientInvitationState,
    status: recipientInvitationStatus,
});
import pulumi
import pulumi_oci as oci
test_recipient_invitations = oci.Tenantmanagercontrolplane.get_recipient_invitations(compartment_id=compartment_id,
    sender_tenancy_id=test_tenancy["id"],
    state=recipient_invitation_state,
    status=recipient_invitation_status)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/tenantmanagercontrolplane"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenantmanagercontrolplane.GetRecipientInvitations(ctx, &tenantmanagercontrolplane.GetRecipientInvitationsArgs{
			CompartmentId:   compartmentId,
			SenderTenancyId: pulumi.StringRef(testTenancy.Id),
			State:           pulumi.StringRef(recipientInvitationState),
			Status:          pulumi.StringRef(recipientInvitationStatus),
		}, 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 testRecipientInvitations = Oci.Tenantmanagercontrolplane.GetRecipientInvitations.Invoke(new()
    {
        CompartmentId = compartmentId,
        SenderTenancyId = testTenancy.Id,
        State = recipientInvitationState,
        Status = recipientInvitationStatus,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Tenantmanagercontrolplane.TenantmanagercontrolplaneFunctions;
import com.pulumi.oci.Tenantmanagercontrolplane.inputs.GetRecipientInvitationsArgs;
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 testRecipientInvitations = TenantmanagercontrolplaneFunctions.getRecipientInvitations(GetRecipientInvitationsArgs.builder()
            .compartmentId(compartmentId)
            .senderTenancyId(testTenancy.id())
            .state(recipientInvitationState)
            .status(recipientInvitationStatus)
            .build());
    }
}
variables:
  testRecipientInvitations:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getRecipientInvitations
      arguments:
        compartmentId: ${compartmentId}
        senderTenancyId: ${testTenancy.id}
        state: ${recipientInvitationState}
        status: ${recipientInvitationStatus}
Using getRecipientInvitations
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 getRecipientInvitations(args: GetRecipientInvitationsArgs, opts?: InvokeOptions): Promise<GetRecipientInvitationsResult>
function getRecipientInvitationsOutput(args: GetRecipientInvitationsOutputArgs, opts?: InvokeOptions): Output<GetRecipientInvitationsResult>def get_recipient_invitations(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[_tenantmanagercontrolplane.GetRecipientInvitationsFilter]] = None,
                              sender_tenancy_id: Optional[str] = None,
                              state: Optional[str] = None,
                              status: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetRecipientInvitationsResult
def get_recipient_invitations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_tenantmanagercontrolplane.GetRecipientInvitationsFilterArgs]]]] = None,
                              sender_tenancy_id: Optional[pulumi.Input[str]] = None,
                              state: Optional[pulumi.Input[str]] = None,
                              status: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetRecipientInvitationsResult]func GetRecipientInvitations(ctx *Context, args *GetRecipientInvitationsArgs, opts ...InvokeOption) (*GetRecipientInvitationsResult, error)
func GetRecipientInvitationsOutput(ctx *Context, args *GetRecipientInvitationsOutputArgs, opts ...InvokeOption) GetRecipientInvitationsResultOutput> Note: This function is named GetRecipientInvitations in the Go SDK.
public static class GetRecipientInvitations 
{
    public static Task<GetRecipientInvitationsResult> InvokeAsync(GetRecipientInvitationsArgs args, InvokeOptions? opts = null)
    public static Output<GetRecipientInvitationsResult> Invoke(GetRecipientInvitationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRecipientInvitationsResult> getRecipientInvitations(GetRecipientInvitationsArgs args, InvokeOptions options)
public static Output<GetRecipientInvitationsResult> getRecipientInvitations(GetRecipientInvitationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getRecipientInvitations:getRecipientInvitations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
 - Filters
List<Get
Recipient Invitations Filter>  - Sender
Tenancy stringId  - The tenancy that sent the invitation.
 - State string
 - The lifecycle state of the resource.
 - Status string
 - The status of the recipient invitation.
 
- Compartment
Id string - The ID of the compartment in which to list resources.
 - Filters
[]Get
Recipient Invitations Filter  - Sender
Tenancy stringId  - The tenancy that sent the invitation.
 - State string
 - The lifecycle state of the resource.
 - Status string
 - The status of the recipient invitation.
 
- compartment
Id String - The ID of the compartment in which to list resources.
 - filters
List<Get
Recipient Invitations Filter>  - sender
Tenancy StringId  - The tenancy that sent the invitation.
 - state String
 - The lifecycle state of the resource.
 - status String
 - The status of the recipient invitation.
 
- compartment
Id string - The ID of the compartment in which to list resources.
 - filters
Get
Recipient Invitations Filter[]  - sender
Tenancy stringId  - The tenancy that sent the invitation.
 - state string
 - The lifecycle state of the resource.
 - status string
 - The status of the recipient invitation.
 
- compartment_
id str - The ID of the compartment in which to list resources.
 - filters
Sequence[tenantmanagercontrolplane.
Get Recipient Invitations Filter]  - sender_
tenancy_ strid  - The tenancy that sent the invitation.
 - state str
 - The lifecycle state of the resource.
 - status str
 - The status of the recipient invitation.
 
- compartment
Id String - The ID of the compartment in which to list resources.
 - filters List<Property Map>
 - sender
Tenancy StringId  - The tenancy that sent the invitation.
 - state String
 - The lifecycle state of the resource.
 - status String
 - The status of the recipient invitation.
 
getRecipientInvitations Result
The following output properties are available:
- Compartment
Id string - OCID of the recipient tenancy.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Recipient
Invitation List<GetCollections Recipient Invitations Recipient Invitation Collection>  - The list of recipient_invitation_collection.
 - Filters
List<Get
Recipient Invitations Filter>  - Sender
Tenancy stringId  - OCID of the sender tenancy.
 - State string
 - Lifecycle state of the recipient invitation.
 - Status string
 - Status of the recipient invitation.
 
- Compartment
Id string - OCID of the recipient tenancy.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Recipient
Invitation []GetCollections Recipient Invitations Recipient Invitation Collection  - The list of recipient_invitation_collection.
 - Filters
[]Get
Recipient Invitations Filter  - Sender
Tenancy stringId  - OCID of the sender tenancy.
 - State string
 - Lifecycle state of the recipient invitation.
 - Status string
 - Status of the recipient invitation.
 
- compartment
Id String - OCID of the recipient tenancy.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - recipient
Invitation List<GetCollections Recipient Invitations Recipient Invitation Collection>  - The list of recipient_invitation_collection.
 - filters
List<Get
Recipient Invitations Filter>  - sender
Tenancy StringId  - OCID of the sender tenancy.
 - state String
 - Lifecycle state of the recipient invitation.
 - status String
 - Status of the recipient invitation.
 
- compartment
Id string - OCID of the recipient tenancy.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - recipient
Invitation GetCollections Recipient Invitations Recipient Invitation Collection[]  - The list of recipient_invitation_collection.
 - filters
Get
Recipient Invitations Filter[]  - sender
Tenancy stringId  - OCID of the sender tenancy.
 - state string
 - Lifecycle state of the recipient invitation.
 - status string
 - Status of the recipient invitation.
 
- compartment_
id str - OCID of the recipient tenancy.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - recipient_
invitation_ Sequence[tenantmanagercontrolplane.collections Get Recipient Invitations Recipient Invitation Collection]  - The list of recipient_invitation_collection.
 - filters
Sequence[tenantmanagercontrolplane.
Get Recipient Invitations Filter]  - sender_
tenancy_ strid  - OCID of the sender tenancy.
 - state str
 - Lifecycle state of the recipient invitation.
 - status str
 - Status of the recipient invitation.
 
- compartment
Id String - OCID of the recipient tenancy.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - recipient
Invitation List<Property Map>Collections  - The list of recipient_invitation_collection.
 - filters List<Property Map>
 - sender
Tenancy StringId  - OCID of the sender tenancy.
 - state String
 - Lifecycle state of the recipient invitation.
 - status String
 - Status of the recipient invitation.
 
Supporting Types
GetRecipientInvitationsFilter   
GetRecipientInvitationsRecipientInvitationCollection     
GetRecipientInvitationsRecipientInvitationCollectionItem      
- Compartment
Id string - The ID of the compartment in which to list resources.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-created name to describe the invitation. Avoid entering confidential information.
 - Dictionary<string, string>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - OCID of the recipient invitation.
 - Recipient
Email stringAddress  - Email address of the recipient.
 - Sender
Invitation stringId  - OCID of the corresponding sender invitation.
 - Sender
Tenancy stringId  - The tenancy that sent the invitation.
 - State string
 - The lifecycle state of the resource.
 - Status string
 - The status of the recipient invitation.
 - Subjects List<string>
 - The list of subjects the invitation contains.
 - Dictionary<string, string>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Date and time when the recipient invitation was created.
 - Time
Updated string - Date and time when the recipient invitation was last updated.
 
- Compartment
Id string - The ID of the compartment in which to list resources.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-created name to describe the invitation. Avoid entering confidential information.
 - map[string]string
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - OCID of the recipient invitation.
 - Recipient
Email stringAddress  - Email address of the recipient.
 - Sender
Invitation stringId  - OCID of the corresponding sender invitation.
 - Sender
Tenancy stringId  - The tenancy that sent the invitation.
 - State string
 - The lifecycle state of the resource.
 - Status string
 - The status of the recipient invitation.
 - Subjects []string
 - The list of subjects the invitation contains.
 - map[string]string
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Date and time when the recipient invitation was created.
 - Time
Updated string - Date and time when the recipient invitation was last updated.
 
- compartment
Id String - The ID of the compartment in which to list resources.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name String - A user-created name to describe the invitation. Avoid entering confidential information.
 - Map<String,String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - OCID of the recipient invitation.
 - recipient
Email StringAddress  - Email address of the recipient.
 - sender
Invitation StringId  - OCID of the corresponding sender invitation.
 - sender
Tenancy StringId  - The tenancy that sent the invitation.
 - state String
 - The lifecycle state of the resource.
 - status String
 - The status of the recipient invitation.
 - subjects List<String>
 - The list of subjects the invitation contains.
 - Map<String,String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Date and time when the recipient invitation was created.
 - time
Updated String - Date and time when the recipient invitation was last updated.
 
- compartment
Id string - The ID of the compartment in which to list resources.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name string - A user-created name to describe the invitation. Avoid entering confidential information.
 - {[key: string]: string}
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id string
 - OCID of the recipient invitation.
 - recipient
Email stringAddress  - Email address of the recipient.
 - sender
Invitation stringId  - OCID of the corresponding sender invitation.
 - sender
Tenancy stringId  - The tenancy that sent the invitation.
 - state string
 - The lifecycle state of the resource.
 - status string
 - The status of the recipient invitation.
 - subjects string[]
 - The list of subjects the invitation contains.
 - {[key: string]: string}
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - Date and time when the recipient invitation was created.
 - time
Updated string - Date and time when the recipient invitation was last updated.
 
- compartment_
id str - The ID of the compartment in which to list resources.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display_
name str - A user-created name to describe the invitation. Avoid entering confidential information.
 - Mapping[str, str]
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id str
 - OCID of the recipient invitation.
 - recipient_
email_ straddress  - Email address of the recipient.
 - sender_
invitation_ strid  - OCID of the corresponding sender invitation.
 - sender_
tenancy_ strid  - The tenancy that sent the invitation.
 - state str
 - The lifecycle state of the resource.
 - status str
 - The status of the recipient invitation.
 - subjects Sequence[str]
 - The list of subjects the invitation contains.
 - Mapping[str, str]
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - Date and time when the recipient invitation was created.
 - time_
updated str - Date and time when the recipient invitation was last updated.
 
- compartment
Id String - The ID of the compartment in which to list resources.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name String - A user-created name to describe the invitation. Avoid entering confidential information.
 - Map<String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - OCID of the recipient invitation.
 - recipient
Email StringAddress  - Email address of the recipient.
 - sender
Invitation StringId  - OCID of the corresponding sender invitation.
 - sender
Tenancy StringId  - The tenancy that sent the invitation.
 - state String
 - The lifecycle state of the resource.
 - status String
 - The status of the recipient invitation.
 - subjects List<String>
 - The list of subjects the invitation contains.
 - Map<String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Date and time when the recipient invitation was created.
 - time
Updated String - Date and time when the recipient invitation was last updated.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.