Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.cloudidentity/v1.getMembership
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Retrieves a Membership.
Using getMembership
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 getMembership(args: GetMembershipArgs, opts?: InvokeOptions): Promise<GetMembershipResult>
function getMembershipOutput(args: GetMembershipOutputArgs, opts?: InvokeOptions): Output<GetMembershipResult>def get_membership(group_id: Optional[str] = None,
                   membership_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetMembershipResult
def get_membership_output(group_id: Optional[pulumi.Input[str]] = None,
                   membership_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetMembershipResult]func LookupMembership(ctx *Context, args *LookupMembershipArgs, opts ...InvokeOption) (*LookupMembershipResult, error)
func LookupMembershipOutput(ctx *Context, args *LookupMembershipOutputArgs, opts ...InvokeOption) LookupMembershipResultOutput> Note: This function is named LookupMembership in the Go SDK.
public static class GetMembership 
{
    public static Task<GetMembershipResult> InvokeAsync(GetMembershipArgs args, InvokeOptions? opts = null)
    public static Output<GetMembershipResult> Invoke(GetMembershipInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMembershipResult> getMembership(GetMembershipArgs args, InvokeOptions options)
public static Output<GetMembershipResult> getMembership(GetMembershipArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:cloudidentity/v1:getMembership
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Group
Id string - Membership
Id string 
- Group
Id string - Membership
Id string 
- group
Id String - membership
Id String 
- group
Id string - membership
Id string 
- group_
id str - membership_
id str 
- group
Id String - membership
Id String 
getMembership Result
The following output properties are available:
- Create
Time string - The time when the 
Membershipwas created. - Delivery
Setting string - Delivery setting associated with the membership.
 - Name string
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - Preferred
Member Pulumi.Key Google Native. Cloud Identity. V1. Outputs. Entity Key Response  - Immutable. The 
EntityKeyof the member. - Roles
List<Pulumi.
Google Native. Cloud Identity. V1. Outputs. Membership Role Response>  - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - Type string
 - The type of the membership.
 - Update
Time string - The time when the 
Membershipwas last updated. 
- Create
Time string - The time when the 
Membershipwas created. - Delivery
Setting string - Delivery setting associated with the membership.
 - Name string
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - Preferred
Member EntityKey Key Response  - Immutable. The 
EntityKeyof the member. - Roles
[]Membership
Role Response  - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - Type string
 - The type of the membership.
 - Update
Time string - The time when the 
Membershipwas last updated. 
- create
Time String - The time when the 
Membershipwas created. - delivery
Setting String - Delivery setting associated with the membership.
 - name String
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - preferred
Member EntityKey Key Response  - Immutable. The 
EntityKeyof the member. - roles
List<Membership
Role Response>  - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - type String
 - The type of the membership.
 - update
Time String - The time when the 
Membershipwas last updated. 
- create
Time string - The time when the 
Membershipwas created. - delivery
Setting string - Delivery setting associated with the membership.
 - name string
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - preferred
Member EntityKey Key Response  - Immutable. The 
EntityKeyof the member. - roles
Membership
Role Response[]  - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - type string
 - The type of the membership.
 - update
Time string - The time when the 
Membershipwas last updated. 
- create_
time str - The time when the 
Membershipwas created. - delivery_
setting str - Delivery setting associated with the membership.
 - name str
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - preferred_
member_ Entitykey Key Response  - Immutable. The 
EntityKeyof the member. - roles
Sequence[Membership
Role Response]  - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - type str
 - The type of the membership.
 - update_
time str - The time when the 
Membershipwas last updated. 
- create
Time String - The time when the 
Membershipwas created. - delivery
Setting String - Delivery setting associated with the membership.
 - name String
 - The resource name of the 
Membership. Shall be of the formgroups/{group}/memberships/{membership}. - preferred
Member Property MapKey  - Immutable. The 
EntityKeyof the member. - roles List<Property Map>
 - The 
MembershipRoles that apply to theMembership. If unspecified, defaults to a singleMembershipRolewithnameMEMBER. Must not contain duplicateMembershipRoles with the samename. - type String
 - The type of the membership.
 - update
Time String - The time when the 
Membershipwas last updated. 
Supporting Types
EntityKeyResponse  
- Namespace string
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
- Namespace string
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
- namespace String
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
- namespace string
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
- namespace str
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
- namespace String
 - The namespace in which the entity exists. If not specified, the 
EntityKeyrepresents a Google-managed entity such as a Google user or a Google Group. If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source}. 
ExpiryDetailResponse  
- Expire
Time string - The time at which the 
MembershipRolewill expire. 
- Expire
Time string - The time at which the 
MembershipRolewill expire. 
- expire
Time String - The time at which the 
MembershipRolewill expire. 
- expire
Time string - The time at which the 
MembershipRolewill expire. 
- expire_
time str - The time at which the 
MembershipRolewill expire. 
- expire
Time String - The time at which the 
MembershipRolewill expire. 
MembershipRoleResponse  
- Expiry
Detail Pulumi.Google Native. Cloud Identity. V1. Inputs. Expiry Detail Response  - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - Name string
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - Restriction
Evaluations Pulumi.Google Native. Cloud Identity. V1. Inputs. Restriction Evaluations Response  - Evaluations of restrictions applied to parent group on this membership.
 
- Expiry
Detail ExpiryDetail Response  - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - Name string
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - Restriction
Evaluations RestrictionEvaluations Response  - Evaluations of restrictions applied to parent group on this membership.
 
- expiry
Detail ExpiryDetail Response  - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - name String
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - restriction
Evaluations RestrictionEvaluations Response  - Evaluations of restrictions applied to parent group on this membership.
 
- expiry
Detail ExpiryDetail Response  - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - name string
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - restriction
Evaluations RestrictionEvaluations Response  - Evaluations of restrictions applied to parent group on this membership.
 
- expiry_
detail ExpiryDetail Response  - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - name str
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - restriction_
evaluations RestrictionEvaluations Response  - Evaluations of restrictions applied to parent group on this membership.
 
- expiry
Detail Property Map - The expiry details of the 
MembershipRole. Expiry details are only supported forMEMBERMembershipRoles. May be set ifnameisMEMBER. Must not be set ifnameis any other value. - name String
 - The name of the 
MembershipRole. Must be one ofOWNER,MANAGER,MEMBER. - restriction
Evaluations Property Map - Evaluations of restrictions applied to parent group on this membership.
 
MembershipRoleRestrictionEvaluationResponse    
- State string
 - The current state of the restriction
 
- State string
 - The current state of the restriction
 
- state String
 - The current state of the restriction
 
- state string
 - The current state of the restriction
 
- state str
 - The current state of the restriction
 
- state String
 - The current state of the restriction
 
RestrictionEvaluationsResponse  
- Member
Restriction Pulumi.Evaluation Google Native. Cloud Identity. V1. Inputs. Membership Role Restriction Evaluation Response  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
- Member
Restriction MembershipEvaluation Role Restriction Evaluation Response  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
- member
Restriction MembershipEvaluation Role Restriction Evaluation Response  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
- member
Restriction MembershipEvaluation Role Restriction Evaluation Response  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
- member_
restriction_ Membershipevaluation Role Restriction Evaluation Response  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
- member
Restriction Property MapEvaluation  - Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.
 
Package Details
- Repository
 - Google Cloud Native pulumi/pulumi-google-native
 - License
 - Apache-2.0
 
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi