1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. getIdentityGroups
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Me.getIdentityGroups

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    Use this data source to retrieve the list of the account’s identity groups

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const groups = ovh.Me.getIdentityGroups({});
    
    import pulumi
    import pulumi_ovh as ovh
    
    groups = ovh.Me.get_identity_groups()
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Me.GetIdentityGroups(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var groups = Ovh.Me.GetIdentityGroups.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.MeFunctions;
    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 groups = MeFunctions.getIdentityGroups();
    
        }
    }
    
    variables:
      groups:
        fn::invoke:
          Function: ovh:Me:getIdentityGroups
          Arguments: {}
    

    Using getIdentityGroups

    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 getIdentityGroups(opts?: InvokeOptions): Promise<GetIdentityGroupsResult>
    function getIdentityGroupsOutput(opts?: InvokeOptions): Output<GetIdentityGroupsResult>
    def get_identity_groups(opts: Optional[InvokeOptions] = None) -> GetIdentityGroupsResult
    def get_identity_groups_output(opts: Optional[InvokeOptions] = None) -> Output[GetIdentityGroupsResult]
    func GetIdentityGroups(ctx *Context, opts ...InvokeOption) (*GetIdentityGroupsResult, error)
    func GetIdentityGroupsOutput(ctx *Context, opts ...InvokeOption) GetIdentityGroupsResultOutput

    > Note: This function is named GetIdentityGroups in the Go SDK.

    public static class GetIdentityGroups 
    {
        public static Task<GetIdentityGroupsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetIdentityGroupsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIdentityGroupsResult> getIdentityGroups(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Me/getIdentityGroups:getIdentityGroups
      arguments:
        # arguments dictionary

    getIdentityGroups Result

    The following output properties are available:

    Groups List<string>
    The list of the group names of all the identity groups.
    Id string
    The provider-assigned unique ID for this managed resource.
    Groups []string
    The list of the group names of all the identity groups.
    Id string
    The provider-assigned unique ID for this managed resource.
    groups List<String>
    The list of the group names of all the identity groups.
    id String
    The provider-assigned unique ID for this managed resource.
    groups string[]
    The list of the group names of all the identity groups.
    id string
    The provider-assigned unique ID for this managed resource.
    groups Sequence[str]
    The list of the group names of all the identity groups.
    id str
    The provider-assigned unique ID for this managed resource.
    groups List<String>
    The list of the group names of all the identity groups.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud