ionoscloud.getGroup
Explore with Pulumi AI
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
orid
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
Get
Group Timeouts
- Id string
ID of the group you want to search for.
Either
name
orid
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
Get
Group Timeouts
- id String
ID of the group you want to search for.
Either
name
orid
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
Get
Group Timeouts
- id string
ID of the group you want to search for.
Either
name
orid
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
Get
Group Timeouts
- id str
ID of the group you want to search for.
Either
name
orid
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
Get
Group Timeouts
- id String
ID of the group you want to search for.
Either
name
orid
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:
- Access
Activity boolLog - The group will be allowed to access the activity log.
- Access
And boolManage Ai Model Hub - The group will be allowed to access and manage ai model hub.
- Access
And boolManage Api Gateway - The group will be allowed to access and manage api gateway.
- Access
And boolManage Cdn - The group will be allowed to access and manage cdn.
- Access
And boolManage Certificates - The group will be allowed to access and manage certificates.
- Access
And boolManage Dns - The group will be allowed to access and manage dns records.
- Access
And boolManage Iam Resources - The group will be allowed to access and manage iam resources.
- Access
And boolManage Kaas - The group will be allowed to access and manage kaas.
- Access
And boolManage Logging - The group will be allowed to access and manage logging.
- Access
And boolManage Monitoring - The group will be allowed to access and manage monitoring.
- Access
And boolManage Network File Storage - The group will be allowed to access and manage network file storage.
- Access
And boolManage Vpn - The group will be allowed to access and manage vpn.
- Create
Backup boolUnit - 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 boolLog - The group will be allowed to create flow log.
- Create
Internet boolAccess - The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - The group will be allowed to create kubernetes cluster privilege.
- Create
Network boolSecurity Groups - 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 string
- 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 string
- A name for the group.
- Reserve
Ip bool - The group will be allowed to reserve IP addresses.
- S3Privilege bool
- The group will have S3 privilege.
- Users
List<Get
Group User> - List of users in group.
- Timeouts
Get
Group Timeouts
- Access
Activity boolLog - The group will be allowed to access the activity log.
- Access
And boolManage Ai Model Hub - The group will be allowed to access and manage ai model hub.
- Access
And boolManage Api Gateway - The group will be allowed to access and manage api gateway.
- Access
And boolManage Cdn - The group will be allowed to access and manage cdn.
- Access
And boolManage Certificates - The group will be allowed to access and manage certificates.
- Access
And boolManage Dns - The group will be allowed to access and manage dns records.
- Access
And boolManage Iam Resources - The group will be allowed to access and manage iam resources.
- Access
And boolManage Kaas - The group will be allowed to access and manage kaas.
- Access
And boolManage Logging - The group will be allowed to access and manage logging.
- Access
And boolManage Monitoring - The group will be allowed to access and manage monitoring.
- Access
And boolManage Network File Storage - The group will be allowed to access and manage network file storage.
- Access
And boolManage Vpn - The group will be allowed to access and manage vpn.
- Create
Backup boolUnit - 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 boolLog - The group will be allowed to create flow log.
- Create
Internet boolAccess - The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - The group will be allowed to create kubernetes cluster privilege.
- Create
Network boolSecurity Groups - 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 string
- 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 string
- A name for the group.
- Reserve
Ip bool - The group will be allowed to reserve IP addresses.
- S3Privilege bool
- The group will have S3 privilege.
- Users
[]Get
Group User - List of users in group.
- Timeouts
Get
Group Timeouts
- access
Activity BooleanLog - The group will be allowed to access the activity log.
- access
And BooleanManage Ai Model Hub - The group will be allowed to access and manage ai model hub.
- access
And BooleanManage Api Gateway - The group will be allowed to access and manage api gateway.
- access
And BooleanManage Cdn - The group will be allowed to access and manage cdn.
- access
And BooleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And BooleanManage Dns - The group will be allowed to access and manage dns records.
- access
And BooleanManage Iam Resources - The group will be allowed to access and manage iam resources.
- access
And BooleanManage Kaas - The group will be allowed to access and manage kaas.
- access
And BooleanManage Logging - The group will be allowed to access and manage logging.
- access
And BooleanManage Monitoring - The group will be allowed to access and manage monitoring.
- access
And BooleanManage Network File Storage - The group will be allowed to access and manage network file storage.
- access
And BooleanManage Vpn - The group will be allowed to access and manage vpn.
- create
Backup BooleanUnit - The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - The group will be allowed to create flow log.
- create
Internet BooleanAccess - The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - The group will be allowed to create kubernetes cluster privilege.
- create
Network BooleanSecurity Groups - The group will be allowed to create network security groups.
- create
Pcc Boolean - The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - The group will be allowed to create snapshots.
- id String
- The id of the group.
- manage
Dataplatform Boolean - The group will be allowed to access and manage the Data Platform.
- manage
Dbaas Boolean - Privilege for a group to manage DBaaS related functionality.
- manage
Registry Boolean - The group will be allowed to access container registry related functionality.
- name String
- A name for the group.
- reserve
Ip Boolean - The group will be allowed to reserve IP addresses.
- s3Privilege Boolean
- The group will have S3 privilege.
- users
List<Get
Group User> - List of users in group.
- timeouts
Get
Group Timeouts
- access
Activity booleanLog - The group will be allowed to access the activity log.
- access
And booleanManage Ai Model Hub - The group will be allowed to access and manage ai model hub.
- access
And booleanManage Api Gateway - The group will be allowed to access and manage api gateway.
- access
And booleanManage Cdn - The group will be allowed to access and manage cdn.
- access
And booleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And booleanManage Dns - The group will be allowed to access and manage dns records.
- access
And booleanManage Iam Resources - The group will be allowed to access and manage iam resources.
- access
And booleanManage Kaas - The group will be allowed to access and manage kaas.
- access
And booleanManage Logging - The group will be allowed to access and manage logging.
- access
And booleanManage Monitoring - The group will be allowed to access and manage monitoring.
- access
And booleanManage Network File Storage - The group will be allowed to access and manage network file storage.
- access
And booleanManage Vpn - The group will be allowed to access and manage vpn.
- create
Backup booleanUnit - The group will be allowed to create backup unit privilege.
- create
Datacenter boolean - The group will be allowed to create virtual data centers.
- create
Flow booleanLog - The group will be allowed to create flow log.
- create
Internet booleanAccess - The group will be allowed to create internet access privilege.
- create
K8s booleanCluster - The group will be allowed to create kubernetes cluster privilege.
- create
Network booleanSecurity Groups - The group will be allowed to create network security groups.
- create
Pcc boolean - The group will be allowed to create Cross Connects privilege.
- create
Snapshot boolean - The group will be allowed to create snapshots.
- id string
- The id of the group.
- manage
Dataplatform boolean - The group will be allowed to access and manage the Data Platform.
- manage
Dbaas boolean - Privilege for a group to manage DBaaS related functionality.
- manage
Registry boolean - The group will be allowed to access container registry related functionality.
- name string
- A name for the group.
- reserve
Ip boolean - The group will be allowed to reserve IP addresses.
- s3Privilege boolean
- The group will have S3 privilege.
- users
Get
Group User[] - List of users in group.
- timeouts
Get
Group Timeouts
- access_
activity_ boollog - The group will be allowed to access the activity log.
- access_
and_ boolmanage_ ai_ model_ hub - The group will be allowed to access and manage ai model hub.
- access_
and_ boolmanage_ api_ gateway - The group will be allowed to access and manage api gateway.
- access_
and_ boolmanage_ cdn - The group will be allowed to access and manage cdn.
- access_
and_ boolmanage_ certificates - The group will be allowed to access and manage certificates.
- access_
and_ boolmanage_ dns - The group will be allowed to access and manage dns records.
- access_
and_ boolmanage_ iam_ resources - The group will be allowed to access and manage iam resources.
- access_
and_ boolmanage_ kaas - The group will be allowed to access and manage kaas.
- access_
and_ boolmanage_ logging - The group will be allowed to access and manage logging.
- access_
and_ boolmanage_ monitoring - The group will be allowed to access and manage monitoring.
- access_
and_ boolmanage_ network_ file_ storage - The group will be allowed to access and manage network file storage.
- access_
and_ boolmanage_ vpn - The group will be allowed to access and manage vpn.
- create_
backup_ boolunit - 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_ boollog - The group will be allowed to create flow log.
- create_
internet_ boolaccess - The group will be allowed to create internet access privilege.
- create_
k8s_ boolcluster - The group will be allowed to create kubernetes cluster privilege.
- create_
network_ boolsecurity_ groups - 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[Get
Group User] - List of users in group.
- timeouts
Get
Group Timeouts
- access
Activity BooleanLog - The group will be allowed to access the activity log.
- access
And BooleanManage Ai Model Hub - The group will be allowed to access and manage ai model hub.
- access
And BooleanManage Api Gateway - The group will be allowed to access and manage api gateway.
- access
And BooleanManage Cdn - The group will be allowed to access and manage cdn.
- access
And BooleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And BooleanManage Dns - The group will be allowed to access and manage dns records.
- access
And BooleanManage Iam Resources - The group will be allowed to access and manage iam resources.
- access
And BooleanManage Kaas - The group will be allowed to access and manage kaas.
- access
And BooleanManage Logging - The group will be allowed to access and manage logging.
- access
And BooleanManage Monitoring - The group will be allowed to access and manage monitoring.
- access
And BooleanManage Network File Storage - The group will be allowed to access and manage network file storage.
- access
And BooleanManage Vpn - The group will be allowed to access and manage vpn.
- create
Backup BooleanUnit - The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - The group will be allowed to create flow log.
- create
Internet BooleanAccess - The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - The group will be allowed to create kubernetes cluster privilege.
- create
Network BooleanSecurity Groups - The group will be allowed to create network security groups.
- create
Pcc Boolean - The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - The group will be allowed to create snapshots.
- id String
- The id of the group.
- manage
Dataplatform Boolean - The group will be allowed to access and manage the Data Platform.
- manage
Dbaas Boolean - Privilege for a group to manage DBaaS related functionality.
- manage
Registry Boolean - The group will be allowed to access container registry related functionality.
- name String
- A name for the group.
- reserve
Ip 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
GetGroupUser
- Administrator bool
- Email string
- First
Name string - Force
Sec boolAuth - Id string
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- Last
Name string
- Administrator bool
- Email string
- First
Name string - Force
Sec boolAuth - Id string
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- Last
Name string
- administrator Boolean
- email String
- first
Name String - force
Sec BooleanAuth - id String
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- last
Name String
- administrator boolean
- email string
- first
Name string - force
Sec booleanAuth - id string
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- last
Name string
- administrator bool
- email str
- first_
name str - force_
sec_ boolauth - id str
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- last_
name str
- administrator Boolean
- email String
- first
Name String - force
Sec BooleanAuth - id String
ID of the group you want to search for.
Either
name
orid
must be provided. If none, or both are provided, the datasource will return an error.- last
Name String
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.