1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. getGroup
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.getGroup

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 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.getGroup({
        id: "group_id",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.get_group(id="group_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ionoscloud.LookupGroup(ctx, &ionoscloud.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.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.IonoscloudFunctions;
    import com.pulumi.ionoscloud.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 = IonoscloudFunctions.getGroup(GetGroupArgs.builder()
                .id("group_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:getGroup
          arguments:
            id: group_id
    

    By Name

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.getGroup({
        name: "Group Example",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.get_group(name="Group Example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ionoscloud.LookupGroup(ctx, &ionoscloud.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.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.IonoscloudFunctions;
    import com.pulumi.ionoscloud.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 = IonoscloudFunctions.getGroup(GetGroupArgs.builder()
                .name("Group Example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud: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,
                  timeouts: Optional[GetGroupTimeouts] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGroupResult
    def get_group_output(id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  timeouts: Optional[pulumi.Input[GetGroupTimeoutsArgs]] = 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:index/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.
    Timeouts GetGroupTimeouts
    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.
    Timeouts GetGroupTimeouts
    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.
    timeouts GetGroupTimeouts
    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.
    timeouts GetGroupTimeouts
    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.
    timeouts GetGroupTimeouts
    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.
    timeouts Property Map

    getGroup Result

    The following output properties are available:

    AccessActivityLog bool
    The group will be allowed to access the activity log.
    AccessAndManageAiModelHub bool
    The group will be allowed to access and manage ai model hub.
    AccessAndManageApiGateway bool
    The group will be allowed to access and manage api gateway.
    AccessAndManageCdn bool
    The group will be allowed to access and manage cdn.
    AccessAndManageCertificates bool
    The group will be allowed to access and manage certificates.
    AccessAndManageDns bool
    The group will be allowed to access and manage dns records.
    AccessAndManageIamResources bool
    The group will be allowed to access and manage iam resources.
    AccessAndManageKaas bool
    The group will be allowed to access and manage kaas.
    AccessAndManageLogging bool
    The group will be allowed to access and manage logging.
    AccessAndManageMonitoring bool
    The group will be allowed to access and manage monitoring.
    AccessAndManageNetworkFileStorage bool
    The group will be allowed to access and manage network file storage.
    AccessAndManageVpn bool
    The group will be allowed to access and manage vpn.
    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.
    CreateNetworkSecurityGroups bool
    The group will be allowed to create network security groups.
    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.
    ManageDataplatform bool
    The group will be allowed to access and manage the Data Platform.
    ManageDbaas bool
    Privilege for a group to manage DBaaS related functionality.
    ManageRegistry bool
    The group will be allowed to access container registry 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<GetGroupUser>
    List of users in group.
    Timeouts GetGroupTimeouts
    AccessActivityLog bool
    The group will be allowed to access the activity log.
    AccessAndManageAiModelHub bool
    The group will be allowed to access and manage ai model hub.
    AccessAndManageApiGateway bool
    The group will be allowed to access and manage api gateway.
    AccessAndManageCdn bool
    The group will be allowed to access and manage cdn.
    AccessAndManageCertificates bool
    The group will be allowed to access and manage certificates.
    AccessAndManageDns bool
    The group will be allowed to access and manage dns records.
    AccessAndManageIamResources bool
    The group will be allowed to access and manage iam resources.
    AccessAndManageKaas bool
    The group will be allowed to access and manage kaas.
    AccessAndManageLogging bool
    The group will be allowed to access and manage logging.
    AccessAndManageMonitoring bool
    The group will be allowed to access and manage monitoring.
    AccessAndManageNetworkFileStorage bool
    The group will be allowed to access and manage network file storage.
    AccessAndManageVpn bool
    The group will be allowed to access and manage vpn.
    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.
    CreateNetworkSecurityGroups bool
    The group will be allowed to create network security groups.
    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.
    ManageDataplatform bool
    The group will be allowed to access and manage the Data Platform.
    ManageDbaas bool
    Privilege for a group to manage DBaaS related functionality.
    ManageRegistry bool
    The group will be allowed to access container registry 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.
    Timeouts GetGroupTimeouts
    accessActivityLog Boolean
    The group will be allowed to access the activity log.
    accessAndManageAiModelHub Boolean
    The group will be allowed to access and manage ai model hub.
    accessAndManageApiGateway Boolean
    The group will be allowed to access and manage api gateway.
    accessAndManageCdn Boolean
    The group will be allowed to access and manage cdn.
    accessAndManageCertificates Boolean
    The group will be allowed to access and manage certificates.
    accessAndManageDns Boolean
    The group will be allowed to access and manage dns records.
    accessAndManageIamResources Boolean
    The group will be allowed to access and manage iam resources.
    accessAndManageKaas Boolean
    The group will be allowed to access and manage kaas.
    accessAndManageLogging Boolean
    The group will be allowed to access and manage logging.
    accessAndManageMonitoring Boolean
    The group will be allowed to access and manage monitoring.
    accessAndManageNetworkFileStorage Boolean
    The group will be allowed to access and manage network file storage.
    accessAndManageVpn Boolean
    The group will be allowed to access and manage vpn.
    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.
    createNetworkSecurityGroups Boolean
    The group will be allowed to create network security groups.
    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.
    manageDataplatform Boolean
    The group will be allowed to access and manage the Data Platform.
    manageDbaas Boolean
    Privilege for a group to manage DBaaS related functionality.
    manageRegistry Boolean
    The group will be allowed to access container registry 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.
    timeouts GetGroupTimeouts
    accessActivityLog boolean
    The group will be allowed to access the activity log.
    accessAndManageAiModelHub boolean
    The group will be allowed to access and manage ai model hub.
    accessAndManageApiGateway boolean
    The group will be allowed to access and manage api gateway.
    accessAndManageCdn boolean
    The group will be allowed to access and manage cdn.
    accessAndManageCertificates boolean
    The group will be allowed to access and manage certificates.
    accessAndManageDns boolean
    The group will be allowed to access and manage dns records.
    accessAndManageIamResources boolean
    The group will be allowed to access and manage iam resources.
    accessAndManageKaas boolean
    The group will be allowed to access and manage kaas.
    accessAndManageLogging boolean
    The group will be allowed to access and manage logging.
    accessAndManageMonitoring boolean
    The group will be allowed to access and manage monitoring.
    accessAndManageNetworkFileStorage boolean
    The group will be allowed to access and manage network file storage.
    accessAndManageVpn boolean
    The group will be allowed to access and manage vpn.
    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.
    createNetworkSecurityGroups boolean
    The group will be allowed to create network security groups.
    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.
    manageDataplatform boolean
    The group will be allowed to access and manage the Data Platform.
    manageDbaas boolean
    Privilege for a group to manage DBaaS related functionality.
    manageRegistry boolean
    The group will be allowed to access container registry 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.
    timeouts GetGroupTimeouts
    access_activity_log bool
    The group will be allowed to access the activity log.
    access_and_manage_ai_model_hub bool
    The group will be allowed to access and manage ai model hub.
    access_and_manage_api_gateway bool
    The group will be allowed to access and manage api gateway.
    access_and_manage_cdn bool
    The group will be allowed to access and manage cdn.
    access_and_manage_certificates bool
    The group will be allowed to access and manage certificates.
    access_and_manage_dns bool
    The group will be allowed to access and manage dns records.
    access_and_manage_iam_resources bool
    The group will be allowed to access and manage iam resources.
    access_and_manage_kaas bool
    The group will be allowed to access and manage kaas.
    access_and_manage_logging bool
    The group will be allowed to access and manage logging.
    access_and_manage_monitoring bool
    The group will be allowed to access and manage monitoring.
    access_and_manage_network_file_storage bool
    The group will be allowed to access and manage network file storage.
    access_and_manage_vpn bool
    The group will be allowed to access and manage vpn.
    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_network_security_groups bool
    The group will be allowed to create network security groups.
    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_dataplatform bool
    The group will be allowed to access and manage the Data Platform.
    manage_dbaas bool
    Privilege for a group to manage DBaaS related functionality.
    manage_registry bool
    The group will be allowed to access container registry 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.
    timeouts GetGroupTimeouts
    accessActivityLog Boolean
    The group will be allowed to access the activity log.
    accessAndManageAiModelHub Boolean
    The group will be allowed to access and manage ai model hub.
    accessAndManageApiGateway Boolean
    The group will be allowed to access and manage api gateway.
    accessAndManageCdn Boolean
    The group will be allowed to access and manage cdn.
    accessAndManageCertificates Boolean
    The group will be allowed to access and manage certificates.
    accessAndManageDns Boolean
    The group will be allowed to access and manage dns records.
    accessAndManageIamResources Boolean
    The group will be allowed to access and manage iam resources.
    accessAndManageKaas Boolean
    The group will be allowed to access and manage kaas.
    accessAndManageLogging Boolean
    The group will be allowed to access and manage logging.
    accessAndManageMonitoring Boolean
    The group will be allowed to access and manage monitoring.
    accessAndManageNetworkFileStorage Boolean
    The group will be allowed to access and manage network file storage.
    accessAndManageVpn Boolean
    The group will be allowed to access and manage vpn.
    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.
    createNetworkSecurityGroups Boolean
    The group will be allowed to create network security groups.
    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.
    manageDataplatform Boolean
    The group will be allowed to access and manage the Data Platform.
    manageDbaas Boolean
    Privilege for a group to manage DBaaS related functionality.
    manageRegistry Boolean
    The group will be allowed to access container registry 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.
    timeouts Property Map

    Supporting Types

    GetGroupTimeouts

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    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/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud