Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getSenderInvitations
Explore with Pulumi AI
This data source provides the list of Sender Invitations in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Return a (paginated) list of sender invitations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSenderInvitations = oci.Tenantmanagercontrolplane.getSenderInvitations({
    compartmentId: compartmentId,
    displayName: senderInvitationDisplayName,
    recipientTenancyId: testTenancy.id,
    state: senderInvitationState,
    status: senderInvitationStatus,
});
import pulumi
import pulumi_oci as oci
test_sender_invitations = oci.Tenantmanagercontrolplane.get_sender_invitations(compartment_id=compartment_id,
    display_name=sender_invitation_display_name,
    recipient_tenancy_id=test_tenancy["id"],
    state=sender_invitation_state,
    status=sender_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.GetSenderInvitations(ctx, &tenantmanagercontrolplane.GetSenderInvitationsArgs{
			CompartmentId:      compartmentId,
			DisplayName:        pulumi.StringRef(senderInvitationDisplayName),
			RecipientTenancyId: pulumi.StringRef(testTenancy.Id),
			State:              pulumi.StringRef(senderInvitationState),
			Status:             pulumi.StringRef(senderInvitationStatus),
		}, 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 testSenderInvitations = Oci.Tenantmanagercontrolplane.GetSenderInvitations.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = senderInvitationDisplayName,
        RecipientTenancyId = testTenancy.Id,
        State = senderInvitationState,
        Status = senderInvitationStatus,
    });
});
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.GetSenderInvitationsArgs;
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 testSenderInvitations = TenantmanagercontrolplaneFunctions.getSenderInvitations(GetSenderInvitationsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(senderInvitationDisplayName)
            .recipientTenancyId(testTenancy.id())
            .state(senderInvitationState)
            .status(senderInvitationStatus)
            .build());
    }
}
variables:
  testSenderInvitations:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getSenderInvitations
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${senderInvitationDisplayName}
        recipientTenancyId: ${testTenancy.id}
        state: ${senderInvitationState}
        status: ${senderInvitationStatus}
Using getSenderInvitations
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 getSenderInvitations(args: GetSenderInvitationsArgs, opts?: InvokeOptions): Promise<GetSenderInvitationsResult>
function getSenderInvitationsOutput(args: GetSenderInvitationsOutputArgs, opts?: InvokeOptions): Output<GetSenderInvitationsResult>def get_sender_invitations(compartment_id: Optional[str] = None,
                           display_name: Optional[str] = None,
                           filters: Optional[Sequence[GetSenderInvitationsFilter]] = None,
                           recipient_tenancy_id: Optional[str] = None,
                           state: Optional[str] = None,
                           status: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSenderInvitationsResult
def get_sender_invitations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                           display_name: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSenderInvitationsFilterArgs]]]] = None,
                           recipient_tenancy_id: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           status: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetSenderInvitationsResult]func GetSenderInvitations(ctx *Context, args *GetSenderInvitationsArgs, opts ...InvokeOption) (*GetSenderInvitationsResult, error)
func GetSenderInvitationsOutput(ctx *Context, args *GetSenderInvitationsOutputArgs, opts ...InvokeOption) GetSenderInvitationsResultOutput> Note: This function is named GetSenderInvitations in the Go SDK.
public static class GetSenderInvitations 
{
    public static Task<GetSenderInvitationsResult> InvokeAsync(GetSenderInvitationsArgs args, InvokeOptions? opts = null)
    public static Output<GetSenderInvitationsResult> Invoke(GetSenderInvitationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSenderInvitationsResult> getSenderInvitations(GetSenderInvitationsArgs args, InvokeOptions options)
public static Output<GetSenderInvitationsResult> getSenderInvitations(GetSenderInvitationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getSenderInvitations:getSenderInvitations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetSender Invitations Filter> 
- RecipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the sender invitation.
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetSender Invitations Filter 
- RecipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the sender invitation.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetSender Invitations Filter> 
- recipientTenancy StringId 
- The tenancy that the invitation is addressed to.
- state String
- The lifecycle state of the resource.
- status String
- The status of the sender invitation.
- compartmentId string
- The ID of the compartment in which to list resources.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetSender Invitations Filter[] 
- recipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- state string
- The lifecycle state of the resource.
- status string
- The status of the sender invitation.
- compartment_id str
- The ID of the compartment in which to list resources.
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[GetSender Invitations Filter] 
- recipient_tenancy_ strid 
- The tenancy that the invitation is addressed to.
- state str
- The lifecycle state of the resource.
- status str
- The status of the sender invitation.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- recipientTenancy StringId 
- The tenancy that the invitation is addressed to.
- state String
- The lifecycle state of the resource.
- status String
- The status of the sender invitation.
getSenderInvitations Result
The following output properties are available:
- CompartmentId string
- OCID of the sender tenancy.
- Id string
- The provider-assigned unique ID for this managed resource.
- SenderInvitation List<GetCollections Sender Invitations Sender Invitation Collection> 
- The list of sender_invitation_collection.
- DisplayName string
- A user-created name to describe the invitation. Avoid entering confidential information.
- Filters
List<GetSender Invitations Filter> 
- RecipientTenancy stringId 
- OCID of the recipient tenancy.
- State string
- Lifecycle state of the sender invitation.
- Status string
- Status of the sender invitation.
- CompartmentId string
- OCID of the sender tenancy.
- Id string
- The provider-assigned unique ID for this managed resource.
- SenderInvitation []GetCollections Sender Invitations Sender Invitation Collection 
- The list of sender_invitation_collection.
- DisplayName string
- A user-created name to describe the invitation. Avoid entering confidential information.
- Filters
[]GetSender Invitations Filter 
- RecipientTenancy stringId 
- OCID of the recipient tenancy.
- State string
- Lifecycle state of the sender invitation.
- Status string
- Status of the sender invitation.
- compartmentId String
- OCID of the sender tenancy.
- id String
- The provider-assigned unique ID for this managed resource.
- senderInvitation List<GetCollections Sender Invitations Sender Invitation Collection> 
- The list of sender_invitation_collection.
- displayName String
- A user-created name to describe the invitation. Avoid entering confidential information.
- filters
List<GetSender Invitations Filter> 
- recipientTenancy StringId 
- OCID of the recipient tenancy.
- state String
- Lifecycle state of the sender invitation.
- status String
- Status of the sender invitation.
- compartmentId string
- OCID of the sender tenancy.
- id string
- The provider-assigned unique ID for this managed resource.
- senderInvitation GetCollections Sender Invitations Sender Invitation Collection[] 
- The list of sender_invitation_collection.
- displayName string
- A user-created name to describe the invitation. Avoid entering confidential information.
- filters
GetSender Invitations Filter[] 
- recipientTenancy stringId 
- OCID of the recipient tenancy.
- state string
- Lifecycle state of the sender invitation.
- status string
- Status of the sender invitation.
- compartment_id str
- OCID of the sender tenancy.
- id str
- The provider-assigned unique ID for this managed resource.
- sender_invitation_ Sequence[Getcollections Sender Invitations Sender Invitation Collection] 
- The list of sender_invitation_collection.
- display_name str
- A user-created name to describe the invitation. Avoid entering confidential information.
- filters
Sequence[GetSender Invitations Filter] 
- recipient_tenancy_ strid 
- OCID of the recipient tenancy.
- state str
- Lifecycle state of the sender invitation.
- status str
- Status of the sender invitation.
- compartmentId String
- OCID of the sender tenancy.
- id String
- The provider-assigned unique ID for this managed resource.
- senderInvitation List<Property Map>Collections 
- The list of sender_invitation_collection.
- displayName String
- A user-created name to describe the invitation. Avoid entering confidential information.
- filters List<Property Map>
- recipientTenancy StringId 
- OCID of the recipient tenancy.
- state String
- Lifecycle state of the sender invitation.
- status String
- Status of the sender invitation.
Supporting Types
GetSenderInvitationsFilter   
GetSenderInvitationsSenderInvitationCollection     
GetSenderInvitationsSenderInvitationCollectionItem      
- CompartmentId 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"}
- DisplayName string
- A filter to return only resources that match the entire display name given.
- 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 sender invitation.
- RecipientEmail stringAddress 
- Email address of the recipient.
- RecipientInvitation stringId 
- OCID of the corresponding recipient invitation.
- RecipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the sender 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"}
- TimeCreated string
- Date and time when the sender invitation was created.
- TimeUpdated string
- Date and time when the sender invitation was last updated.
- CompartmentId 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"}
- DisplayName string
- A filter to return only resources that match the entire display name given.
- 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 sender invitation.
- RecipientEmail stringAddress 
- Email address of the recipient.
- RecipientInvitation stringId 
- OCID of the corresponding recipient invitation.
- RecipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the sender 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"}
- TimeCreated string
- Date and time when the sender invitation was created.
- TimeUpdated string
- Date and time when the sender invitation was last updated.
- compartmentId 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"}
- displayName String
- A filter to return only resources that match the entire display name given.
- 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 sender invitation.
- recipientEmail StringAddress 
- Email address of the recipient.
- recipientInvitation StringId 
- OCID of the corresponding recipient invitation.
- recipientTenancy StringId 
- The tenancy that the invitation is addressed to.
- state String
- The lifecycle state of the resource.
- status String
- The status of the sender 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"}
- timeCreated String
- Date and time when the sender invitation was created.
- timeUpdated String
- Date and time when the sender invitation was last updated.
- compartmentId 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"}
- displayName string
- A filter to return only resources that match the entire display name given.
- {[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 sender invitation.
- recipientEmail stringAddress 
- Email address of the recipient.
- recipientInvitation stringId 
- OCID of the corresponding recipient invitation.
- recipientTenancy stringId 
- The tenancy that the invitation is addressed to.
- state string
- The lifecycle state of the resource.
- status string
- The status of the sender 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"}
- timeCreated string
- Date and time when the sender invitation was created.
- timeUpdated string
- Date and time when the sender 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 filter to return only resources that match the entire display name given.
- 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 sender invitation.
- recipient_email_ straddress 
- Email address of the recipient.
- recipient_invitation_ strid 
- OCID of the corresponding recipient invitation.
- recipient_tenancy_ strid 
- The tenancy that the invitation is addressed to.
- state str
- The lifecycle state of the resource.
- status str
- The status of the sender 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 sender invitation was created.
- time_updated str
- Date and time when the sender invitation was last updated.
- compartmentId 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"}
- displayName String
- A filter to return only resources that match the entire display name given.
- 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 sender invitation.
- recipientEmail StringAddress 
- Email address of the recipient.
- recipientInvitation StringId 
- OCID of the corresponding recipient invitation.
- recipientTenancy StringId 
- The tenancy that the invitation is addressed to.
- state String
- The lifecycle state of the resource.
- status String
- The status of the sender 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"}
- timeCreated String
- Date and time when the sender invitation was created.
- timeUpdated String
- Date and time when the sender 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.