1. Packages
  2. Ionoscloud
  3. API Docs
  4. compute
  5. getGroup
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

ionoscloud.compute.getGroup

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud

    The Group data source can be used to search for and return existing groups. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.

    Example Usage

    By ID

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.compute.getGroup({
        id: "group_id",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.get_group(id="group_id")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.LookupGroup(ctx, &compute.LookupGroupArgs{
    			Id: pulumi.StringRef("group_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Compute.GetGroup.Invoke(new()
        {
            Id = "group_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.ComputeFunctions;
    import com.pulumi.ionoscloud.compute.inputs.GetGroupArgs;
    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 example = ComputeFunctions.getGroup(GetGroupArgs.builder()
                .id("group_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:compute:getGroup
          arguments:
            id: group_id
    

    By Name

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.compute.getGroup({
        name: "Group Example",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.get_group(name="Group Example")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.LookupGroup(ctx, &compute.LookupGroupArgs{
    			Name: pulumi.StringRef("Group Example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Compute.GetGroup.Invoke(new()
        {
            Name = "Group Example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.ComputeFunctions;
    import com.pulumi.ionoscloud.compute.inputs.GetGroupArgs;
    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 example = ComputeFunctions.getGroup(GetGroupArgs.builder()
                .name("Group Example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:compute:getGroup
          arguments:
            name: Group Example
    

    Using getGroup

    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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
    function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>
    def get_group(id: Optional[str] = None,
                  name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGroupResult
    def get_group_output(id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
    func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
    func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput

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

    public static class GetGroup 
    {
        public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:compute/getGroup:getGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    Name string
    Name of an existing group that you want to search for.
    Id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    Name string
    Name of an existing group that you want to search for.
    id String

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    name String
    Name of an existing group that you want to search for.
    id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    name string
    Name of an existing group that you want to search for.
    id str

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    name str
    Name of an existing group that you want to search for.
    id String

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    name String
    Name of an existing group that you want to search for.

    getGroup Result

    The following output properties are available:

    AccessActivityLog bool
    The group will be allowed to access the activity log.
    AccessAndManageCertificates bool
    The group will be allowed to access and manage certificates.
    AccessAndManageMonitoring bool
    The group will be allowed to access and manage monitoring.
    CreateBackupUnit bool
    The group will be allowed to create backup unit privilege.
    CreateDatacenter bool
    The group will be allowed to create virtual data centers.
    CreateFlowLog bool
    The group will be allowed to create flow log.
    CreateInternetAccess bool
    The group will be allowed to create internet access privilege.
    CreateK8sCluster bool
    The group will be allowed to create kubernetes cluster privilege.
    CreatePcc bool
    The group will be allowed to create Cross Connects privilege.
    CreateSnapshot bool
    The group will be allowed to create snapshots.
    Id string
    The id of the group.
    ManageDbaas bool
    Privilege for a group to manage DBaaS related functionality.
    Name string
    A name for the group.
    ReserveIp bool
    The group will be allowed to reserve IP addresses.
    S3Privilege bool
    The group will have S3 privilege.
    Users List<Ionoscloud.GetGroupUser>
    List of users in group.
    AccessActivityLog bool
    The group will be allowed to access the activity log.
    AccessAndManageCertificates bool
    The group will be allowed to access and manage certificates.
    AccessAndManageMonitoring bool
    The group will be allowed to access and manage monitoring.
    CreateBackupUnit bool
    The group will be allowed to create backup unit privilege.
    CreateDatacenter bool
    The group will be allowed to create virtual data centers.
    CreateFlowLog bool
    The group will be allowed to create flow log.
    CreateInternetAccess bool
    The group will be allowed to create internet access privilege.
    CreateK8sCluster bool
    The group will be allowed to create kubernetes cluster privilege.
    CreatePcc bool
    The group will be allowed to create Cross Connects privilege.
    CreateSnapshot bool
    The group will be allowed to create snapshots.
    Id string
    The id of the group.
    ManageDbaas bool
    Privilege for a group to manage DBaaS related functionality.
    Name string
    A name for the group.
    ReserveIp bool
    The group will be allowed to reserve IP addresses.
    S3Privilege bool
    The group will have S3 privilege.
    Users []GetGroupUser
    List of users in group.
    accessActivityLog Boolean
    The group will be allowed to access the activity log.
    accessAndManageCertificates Boolean
    The group will be allowed to access and manage certificates.
    accessAndManageMonitoring Boolean
    The group will be allowed to access and manage monitoring.
    createBackupUnit Boolean
    The group will be allowed to create backup unit privilege.
    createDatacenter Boolean
    The group will be allowed to create virtual data centers.
    createFlowLog Boolean
    The group will be allowed to create flow log.
    createInternetAccess Boolean
    The group will be allowed to create internet access privilege.
    createK8sCluster Boolean
    The group will be allowed to create kubernetes cluster privilege.
    createPcc Boolean
    The group will be allowed to create Cross Connects privilege.
    createSnapshot Boolean
    The group will be allowed to create snapshots.
    id String
    The id of the group.
    manageDbaas Boolean
    Privilege for a group to manage DBaaS related functionality.
    name String
    A name for the group.
    reserveIp Boolean
    The group will be allowed to reserve IP addresses.
    s3Privilege Boolean
    The group will have S3 privilege.
    users List<GetGroupUser>
    List of users in group.
    accessActivityLog boolean
    The group will be allowed to access the activity log.
    accessAndManageCertificates boolean
    The group will be allowed to access and manage certificates.
    accessAndManageMonitoring boolean
    The group will be allowed to access and manage monitoring.
    createBackupUnit boolean
    The group will be allowed to create backup unit privilege.
    createDatacenter boolean
    The group will be allowed to create virtual data centers.
    createFlowLog boolean
    The group will be allowed to create flow log.
    createInternetAccess boolean
    The group will be allowed to create internet access privilege.
    createK8sCluster boolean
    The group will be allowed to create kubernetes cluster privilege.
    createPcc boolean
    The group will be allowed to create Cross Connects privilege.
    createSnapshot boolean
    The group will be allowed to create snapshots.
    id string
    The id of the group.
    manageDbaas boolean
    Privilege for a group to manage DBaaS related functionality.
    name string
    A name for the group.
    reserveIp boolean
    The group will be allowed to reserve IP addresses.
    s3Privilege boolean
    The group will have S3 privilege.
    users GetGroupUser[]
    List of users in group.
    access_activity_log bool
    The group will be allowed to access the activity log.
    access_and_manage_certificates bool
    The group will be allowed to access and manage certificates.
    access_and_manage_monitoring bool
    The group will be allowed to access and manage monitoring.
    create_backup_unit bool
    The group will be allowed to create backup unit privilege.
    create_datacenter bool
    The group will be allowed to create virtual data centers.
    create_flow_log bool
    The group will be allowed to create flow log.
    create_internet_access bool
    The group will be allowed to create internet access privilege.
    create_k8s_cluster bool
    The group will be allowed to create kubernetes cluster privilege.
    create_pcc bool
    The group will be allowed to create Cross Connects privilege.
    create_snapshot bool
    The group will be allowed to create snapshots.
    id str
    The id of the group.
    manage_dbaas bool
    Privilege for a group to manage DBaaS related functionality.
    name str
    A name for the group.
    reserve_ip bool
    The group will be allowed to reserve IP addresses.
    s3_privilege bool
    The group will have S3 privilege.
    users Sequence[GetGroupUser]
    List of users in group.
    accessActivityLog Boolean
    The group will be allowed to access the activity log.
    accessAndManageCertificates Boolean
    The group will be allowed to access and manage certificates.
    accessAndManageMonitoring Boolean
    The group will be allowed to access and manage monitoring.
    createBackupUnit Boolean
    The group will be allowed to create backup unit privilege.
    createDatacenter Boolean
    The group will be allowed to create virtual data centers.
    createFlowLog Boolean
    The group will be allowed to create flow log.
    createInternetAccess Boolean
    The group will be allowed to create internet access privilege.
    createK8sCluster Boolean
    The group will be allowed to create kubernetes cluster privilege.
    createPcc Boolean
    The group will be allowed to create Cross Connects privilege.
    createSnapshot Boolean
    The group will be allowed to create snapshots.
    id String
    The id of the group.
    manageDbaas Boolean
    Privilege for a group to manage DBaaS related functionality.
    name String
    A name for the group.
    reserveIp Boolean
    The group will be allowed to reserve IP addresses.
    s3Privilege Boolean
    The group will have S3 privilege.
    users List<Property Map>
    List of users in group.

    Supporting Types

    GetGroupUser

    Administrator bool
    Email string
    FirstName string
    ForceSecAuth bool
    Id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    LastName string
    Administrator bool
    Email string
    FirstName string
    ForceSecAuth bool
    Id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    LastName string
    administrator Boolean
    email String
    firstName String
    forceSecAuth Boolean
    id String

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    lastName String
    administrator boolean
    email string
    firstName string
    forceSecAuth boolean
    id string

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    lastName string
    administrator bool
    email str
    first_name str
    force_sec_auth bool
    id str

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    last_name str
    administrator Boolean
    email String
    firstName String
    forceSecAuth Boolean
    id String

    ID of the group you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    lastName String

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud