ionoscloud.compute.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.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:
getGroup Result
The following output properties are available:
- Access
Activity boolLog - The group will be allowed to access the activity log.
- Access
And boolManage Certificates - The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - The group will be allowed to access and manage monitoring.
- 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
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
Dbaas bool - Privilege for a group to manage DBaaS 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<Ionoscloud.
Get Group User> - List of users in group.
- Access
Activity boolLog - The group will be allowed to access the activity log.
- Access
And boolManage Certificates - The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - The group will be allowed to access and manage monitoring.
- 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
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
Dbaas bool - Privilege for a group to manage DBaaS 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.
- access
Activity BooleanLog - The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - The group will be allowed to access and manage monitoring.
- 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
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
Dbaas Boolean - Privilege for a group to manage DBaaS 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.
- access
Activity booleanLog - The group will be allowed to access the activity log.
- access
And booleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And booleanManage Monitoring - The group will be allowed to access and manage monitoring.
- 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
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
Dbaas boolean - Privilege for a group to manage DBaaS 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.
- access_
activity_ boollog - The group will be allowed to access the activity log.
- access_
and_ boolmanage_ certificates - The group will be allowed to access and manage certificates.
- access_
and_ boolmanage_ monitoring - The group will be allowed to access and manage monitoring.
- 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_
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[Get
Group User] - List of users in group.
- access
Activity BooleanLog - The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - The group will be allowed to access and manage monitoring.
- 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
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
Dbaas Boolean - Privilege for a group to manage DBaaS 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.
Supporting Types
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/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.