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

ovh.Iam.getPermissionsGroups

Explore with Pulumi AI

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

    Use this data source to retrieve an IAM permissions group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const website = ovh.Iam.getPermissionsGroup({
        urn: "urn:v1:eu:permissionsGroup:ovh:controlPanelAccess",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    website = ovh.Iam.get_permissions_group(urn="urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Iam.GetPermissionsGroup(ctx, &iam.GetPermissionsGroupArgs{
    			Urn: "urn:v1:eu:permissionsGroup:ovh:controlPanelAccess",
    		}, 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 website = Ovh.Iam.GetPermissionsGroup.Invoke(new()
        {
            Urn = "urn:v1:eu:permissionsGroup:ovh:controlPanelAccess",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Iam.IamFunctions;
    import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
    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 website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
                .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
                .build());
    
        }
    }
    
    variables:
      website:
        fn::invoke:
          Function: ovh:Iam:getPermissionsGroup
          Arguments:
            urn: urn:v1:eu:permissionsGroup:ovh:controlPanelAccess
    

    Using getPermissionsGroups

    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 getPermissionsGroups(opts?: InvokeOptions): Promise<GetPermissionsGroupsResult>
    function getPermissionsGroupsOutput(opts?: InvokeOptions): Output<GetPermissionsGroupsResult>
    def get_permissions_groups(opts: Optional[InvokeOptions] = None) -> GetPermissionsGroupsResult
    def get_permissions_groups_output(opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsGroupsResult]
    func GetPermissionsGroups(ctx *Context, opts ...InvokeOption) (*GetPermissionsGroupsResult, error)
    func GetPermissionsGroupsOutput(ctx *Context, opts ...InvokeOption) GetPermissionsGroupsResultOutput

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

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

    getPermissionsGroups Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Urns List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Urns []string
    id String
    The provider-assigned unique ID for this managed resource.
    urns List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    urns string[]
    id str
    The provider-assigned unique ID for this managed resource.
    urns Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    urns List<String>

    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