ionoscloud.compute.Group
Explore with Pulumi AI
Manages Groups and Group Privileges on IonosCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
import * as random from "@pulumi/random";
const user1Password = new random.index.Password("user1_password", {
length: 16,
special: true,
overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
});
const example1 = new ionoscloud.compute.User("example1", {
firstName: "user1",
lastName: "user1",
email: "unique_email.com",
password: user1Password.result,
administrator: false,
forceSecAuth: false,
});
const user2Password = new random.index.Password("user2_password", {
length: 16,
special: true,
overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
});
const example2 = new ionoscloud.compute.User("example2", {
firstName: "user2",
lastName: "user2",
email: "unique_email.com",
password: user2Password.result,
administrator: false,
forceSecAuth: false,
});
const example = new ionoscloud.compute.Group("example", {
name: "Group Example",
createDatacenter: true,
createSnapshot: true,
reserveIp: true,
accessActivityLog: true,
createPcc: true,
s3Privilege: true,
createBackupUnit: true,
createInternetAccess: true,
createK8sCluster: true,
createFlowLog: true,
accessAndManageMonitoring: true,
accessAndManageCertificates: true,
manageDbaas: true,
userIds: [
example1.id,
example2.id,
],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
import pulumi_random as random
user1_password = random.index.Password("user1_password",
length=16,
special=True,
override_special=!#$%&*()-_=+[]{}<>:?)
example1 = ionoscloud.compute.User("example1",
first_name="user1",
last_name="user1",
email="unique_email.com",
password=user1_password["result"],
administrator=False,
force_sec_auth=False)
user2_password = random.index.Password("user2_password",
length=16,
special=True,
override_special=!#$%&*()-_=+[]{}<>:?)
example2 = ionoscloud.compute.User("example2",
first_name="user2",
last_name="user2",
email="unique_email.com",
password=user2_password["result"],
administrator=False,
force_sec_auth=False)
example = ionoscloud.compute.Group("example",
name="Group Example",
create_datacenter=True,
create_snapshot=True,
reserve_ip=True,
access_activity_log=True,
create_pcc=True,
s3_privilege=True,
create_backup_unit=True,
create_internet_access=True,
create_k8s_cluster=True,
create_flow_log=True,
access_and_manage_monitoring=True,
access_and_manage_certificates=True,
manage_dbaas=True,
user_ids=[
example1.id,
example2.id,
])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi-random/sdk/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
user1Password, err := random.NewPassword(ctx, "user1_password", &random.PasswordArgs{
Length: 16,
Special: true,
OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
})
if err != nil {
return err
}
example1, err := compute.NewUser(ctx, "example1", &compute.UserArgs{
FirstName: pulumi.String("user1"),
LastName: pulumi.String("user1"),
Email: pulumi.String("unique_email.com"),
Password: user1Password.Result,
Administrator: pulumi.Bool(false),
ForceSecAuth: pulumi.Bool(false),
})
if err != nil {
return err
}
user2Password, err := random.NewPassword(ctx, "user2_password", &random.PasswordArgs{
Length: 16,
Special: true,
OverrideSpecial: "!#$%&*()-_=+[]{}<>:?",
})
if err != nil {
return err
}
example2, err := compute.NewUser(ctx, "example2", &compute.UserArgs{
FirstName: pulumi.String("user2"),
LastName: pulumi.String("user2"),
Email: pulumi.String("unique_email.com"),
Password: user2Password.Result,
Administrator: pulumi.Bool(false),
ForceSecAuth: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = compute.NewGroup(ctx, "example", &compute.GroupArgs{
Name: pulumi.String("Group Example"),
CreateDatacenter: pulumi.Bool(true),
CreateSnapshot: pulumi.Bool(true),
ReserveIp: pulumi.Bool(true),
AccessActivityLog: pulumi.Bool(true),
CreatePcc: pulumi.Bool(true),
S3Privilege: pulumi.Bool(true),
CreateBackupUnit: pulumi.Bool(true),
CreateInternetAccess: pulumi.Bool(true),
CreateK8sCluster: pulumi.Bool(true),
CreateFlowLog: pulumi.Bool(true),
AccessAndManageMonitoring: pulumi.Bool(true),
AccessAndManageCertificates: pulumi.Bool(true),
ManageDbaas: pulumi.Bool(true),
UserIds: pulumi.StringArray{
example1.ID(),
example2.ID(),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var user1Password = new Random.Index.Password("user1_password", new()
{
Length = 16,
Special = true,
OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
});
var example1 = new Ionoscloud.Compute.User("example1", new()
{
FirstName = "user1",
LastName = "user1",
Email = "unique_email.com",
Password = user1Password.Result,
Administrator = false,
ForceSecAuth = false,
});
var user2Password = new Random.Index.Password("user2_password", new()
{
Length = 16,
Special = true,
OverrideSpecial = "!#$%&*()-_=+[]{}<>:?",
});
var example2 = new Ionoscloud.Compute.User("example2", new()
{
FirstName = "user2",
LastName = "user2",
Email = "unique_email.com",
Password = user2Password.Result,
Administrator = false,
ForceSecAuth = false,
});
var example = new Ionoscloud.Compute.Group("example", new()
{
Name = "Group Example",
CreateDatacenter = true,
CreateSnapshot = true,
ReserveIp = true,
AccessActivityLog = true,
CreatePcc = true,
S3Privilege = true,
CreateBackupUnit = true,
CreateInternetAccess = true,
CreateK8sCluster = true,
CreateFlowLog = true,
AccessAndManageMonitoring = true,
AccessAndManageCertificates = true,
ManageDbaas = true,
UserIds = new[]
{
example1.Id,
example2.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.password;
import com.pulumi.random.PasswordArgs;
import com.pulumi.ionoscloud.compute.User;
import com.pulumi.ionoscloud.compute.UserArgs;
import com.pulumi.ionoscloud.compute.Group;
import com.pulumi.ionoscloud.compute.GroupArgs;
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) {
var user1Password = new Password("user1Password", PasswordArgs.builder()
.length(16)
.special(true)
.overrideSpecial("!#$%&*()-_=+[]{}<>:?")
.build());
var example1 = new User("example1", UserArgs.builder()
.firstName("user1")
.lastName("user1")
.email("unique_email.com")
.password(user1Password.result())
.administrator(false)
.forceSecAuth(false)
.build());
var user2Password = new Password("user2Password", PasswordArgs.builder()
.length(16)
.special(true)
.overrideSpecial("!#$%&*()-_=+[]{}<>:?")
.build());
var example2 = new User("example2", UserArgs.builder()
.firstName("user2")
.lastName("user2")
.email("unique_email.com")
.password(user2Password.result())
.administrator(false)
.forceSecAuth(false)
.build());
var example = new Group("example", GroupArgs.builder()
.name("Group Example")
.createDatacenter(true)
.createSnapshot(true)
.reserveIp(true)
.accessActivityLog(true)
.createPcc(true)
.s3Privilege(true)
.createBackupUnit(true)
.createInternetAccess(true)
.createK8sCluster(true)
.createFlowLog(true)
.accessAndManageMonitoring(true)
.accessAndManageCertificates(true)
.manageDbaas(true)
.userIds(
example1.id(),
example2.id())
.build());
}
}
resources:
example1:
type: ionoscloud:compute:User
properties:
firstName: user1
lastName: user1
email: unique_email.com
password: ${user1Password.result}
administrator: false
forceSecAuth: false
example2:
type: ionoscloud:compute:User
properties:
firstName: user2
lastName: user2
email: unique_email.com
password: ${user2Password.result}
administrator: false
forceSecAuth: false
example:
type: ionoscloud:compute:Group
properties:
name: Group Example
createDatacenter: true
createSnapshot: true
reserveIp: true
accessActivityLog: true
createPcc: true
s3Privilege: true
createBackupUnit: true
createInternetAccess: true
createK8sCluster: true
createFlowLog: true
accessAndManageMonitoring: true
accessAndManageCertificates: true
manageDbaas: true
userIds:
- ${example1.id}
- ${example2.id}
user1Password:
type: random:password
name: user1_password
properties:
length: 16
special: true
overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
user2Password:
type: random:password
name: user2_password
properties:
length: 16
special: true
overrideSpecial: '!#$%&*()-_=+[]{}<>:?'
Create Group Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Group(name: string, args?: GroupArgs, opts?: CustomResourceOptions);
@overload
def Group(resource_name: str,
args: Optional[GroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Group(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_activity_log: Optional[bool] = None,
access_and_manage_certificates: Optional[bool] = None,
access_and_manage_monitoring: Optional[bool] = None,
create_backup_unit: Optional[bool] = None,
create_datacenter: Optional[bool] = None,
create_flow_log: Optional[bool] = None,
create_internet_access: Optional[bool] = None,
create_k8s_cluster: Optional[bool] = None,
create_pcc: Optional[bool] = None,
create_snapshot: Optional[bool] = None,
manage_dbaas: Optional[bool] = None,
name: Optional[str] = None,
reserve_ip: Optional[bool] = None,
s3_privilege: Optional[bool] = None,
user_id: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None)
func NewGroup(ctx *Context, name string, args *GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs? args = null, CustomResourceOptions? opts = null)
type: ionoscloud:compute:Group
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ionoscloudGroupResource = new Ionoscloud.Compute.Group("ionoscloudGroupResource", new()
{
AccessActivityLog = false,
AccessAndManageCertificates = false,
AccessAndManageMonitoring = false,
CreateBackupUnit = false,
CreateDatacenter = false,
CreateFlowLog = false,
CreateInternetAccess = false,
CreateK8sCluster = false,
CreatePcc = false,
CreateSnapshot = false,
ManageDbaas = false,
Name = "string",
ReserveIp = false,
S3Privilege = false,
UserIds = new[]
{
"string",
},
});
example, err := compute.NewGroup(ctx, "ionoscloudGroupResource", &compute.GroupArgs{
AccessActivityLog: pulumi.Bool(false),
AccessAndManageCertificates: pulumi.Bool(false),
AccessAndManageMonitoring: pulumi.Bool(false),
CreateBackupUnit: pulumi.Bool(false),
CreateDatacenter: pulumi.Bool(false),
CreateFlowLog: pulumi.Bool(false),
CreateInternetAccess: pulumi.Bool(false),
CreateK8sCluster: pulumi.Bool(false),
CreatePcc: pulumi.Bool(false),
CreateSnapshot: pulumi.Bool(false),
ManageDbaas: pulumi.Bool(false),
Name: pulumi.String("string"),
ReserveIp: pulumi.Bool(false),
S3Privilege: pulumi.Bool(false),
UserIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var ionoscloudGroupResource = new com.ionoscloud.pulumi.ionoscloud.compute.Group("ionoscloudGroupResource", com.ionoscloud.pulumi.ionoscloud.compute.GroupArgs.builder()
.accessActivityLog(false)
.accessAndManageCertificates(false)
.accessAndManageMonitoring(false)
.createBackupUnit(false)
.createDatacenter(false)
.createFlowLog(false)
.createInternetAccess(false)
.createK8sCluster(false)
.createPcc(false)
.createSnapshot(false)
.manageDbaas(false)
.name("string")
.reserveIp(false)
.s3Privilege(false)
.userIds("string")
.build());
ionoscloud_group_resource = ionoscloud.compute.Group("ionoscloudGroupResource",
access_activity_log=False,
access_and_manage_certificates=False,
access_and_manage_monitoring=False,
create_backup_unit=False,
create_datacenter=False,
create_flow_log=False,
create_internet_access=False,
create_k8s_cluster=False,
create_pcc=False,
create_snapshot=False,
manage_dbaas=False,
name="string",
reserve_ip=False,
s3_privilege=False,
user_ids=["string"])
const ionoscloudGroupResource = new ionoscloud.compute.Group("ionoscloudGroupResource", {
accessActivityLog: false,
accessAndManageCertificates: false,
accessAndManageMonitoring: false,
createBackupUnit: false,
createDatacenter: false,
createFlowLog: false,
createInternetAccess: false,
createK8sCluster: false,
createPcc: false,
createSnapshot: false,
manageDbaas: false,
name: "string",
reserveIp: false,
s3Privilege: false,
userIds: ["string"],
});
type: ionoscloud:compute:Group
properties:
accessActivityLog: false
accessAndManageCertificates: false
accessAndManageMonitoring: false
createBackupUnit: false
createDatacenter: false
createFlowLog: false
createInternetAccess: false
createK8sCluster: false
createPcc: false
createSnapshot: false
manageDbaas: false
name: string
reserveIp: false
s3Privilege: false
userIds:
- string
Group Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Group resource accepts the following input properties:
- Access
Activity boolLog - [Boolean] The group will be allowed to access the activity log.
- Access
And boolManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- Create
Backup boolUnit - [Boolean] The group will be allowed to create backup unit privilege.
- Create
Datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- Create
Flow boolLog - [Boolean] The group will be allowed to create flow log.
- Create
Internet boolAccess - [Boolean] The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- Create
Pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- Create
Snapshot bool - [Boolean] The group will be allowed to create snapshots.
- Manage
Dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- Name string
- [string] A name for the group.
- Reserve
Ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- S3Privilege bool
- [Boolean] The group will have S3 privilege.
- User
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- User
Ids List<string> - [list] A list of users to add to the group.
- Access
Activity boolLog - [Boolean] The group will be allowed to access the activity log.
- Access
And boolManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- Create
Backup boolUnit - [Boolean] The group will be allowed to create backup unit privilege.
- Create
Datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- Create
Flow boolLog - [Boolean] The group will be allowed to create flow log.
- Create
Internet boolAccess - [Boolean] The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- Create
Pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- Create
Snapshot bool - [Boolean] The group will be allowed to create snapshots.
- Manage
Dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- Name string
- [string] A name for the group.
- Reserve
Ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- S3Privilege bool
- [Boolean] The group will have S3 privilege.
- User
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- User
Ids []string - [list] A list of users to add to the group.
- access
Activity BooleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup BooleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet BooleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc Boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas Boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name String
- [string] A name for the group.
- reserve
Ip Boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege Boolean
- [Boolean] The group will have S3 privilege.
- user
Id String - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids List<String> - [list] A list of users to add to the group.
- access
Activity booleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And booleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And booleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup booleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow booleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet booleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s booleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name string
- [string] A name for the group.
- reserve
Ip boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege boolean
- [Boolean] The group will have S3 privilege.
- user
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids string[] - [list] A list of users to add to the group.
- access_
activity_ boollog - [Boolean] The group will be allowed to access the activity log.
- access_
and_ boolmanage_ certificates - [Boolean] The group will be allowed to access and manage certificates.
- access_
and_ boolmanage_ monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create_
backup_ boolunit - [Boolean] The group will be allowed to create backup unit privilege.
- create_
datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- create_
flow_ boollog - [Boolean] The group will be allowed to create flow log.
- create_
internet_ boolaccess - [Boolean] The group will be allowed to create internet access privilege.
- create_
k8s_ boolcluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create_
pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- create_
snapshot bool - [Boolean] The group will be allowed to create snapshots.
- manage_
dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name str
- [string] A name for the group.
- reserve_
ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- s3_
privilege bool - [Boolean] The group will have S3 privilege.
- user_
id str - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user_
ids Sequence[str] - [list] A list of users to add to the group.
- access
Activity BooleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup BooleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet BooleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc Boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas Boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name String
- [string] A name for the group.
- reserve
Ip Boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege Boolean
- [Boolean] The group will have S3 privilege.
- user
Id String - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids List<String> - [list] A list of users to add to the group.
Outputs
All input properties are implicitly available as output properties. Additionally, the Group resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Ionoscloud.
Group User> List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Group
User List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Group
User> List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- id string
- The provider-assigned unique ID for this managed resource.
- users
Group
User[] List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Group
User] List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
Look up Existing Group Resource
Get an existing Group resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_activity_log: Optional[bool] = None,
access_and_manage_certificates: Optional[bool] = None,
access_and_manage_monitoring: Optional[bool] = None,
create_backup_unit: Optional[bool] = None,
create_datacenter: Optional[bool] = None,
create_flow_log: Optional[bool] = None,
create_internet_access: Optional[bool] = None,
create_k8s_cluster: Optional[bool] = None,
create_pcc: Optional[bool] = None,
create_snapshot: Optional[bool] = None,
manage_dbaas: Optional[bool] = None,
name: Optional[str] = None,
reserve_ip: Optional[bool] = None,
s3_privilege: Optional[bool] = None,
user_id: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None,
users: Optional[Sequence[GroupUserArgs]] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)
resources: _: type: ionoscloud:compute:Group get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Activity boolLog - [Boolean] The group will be allowed to access the activity log.
- Access
And boolManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- Create
Backup boolUnit - [Boolean] The group will be allowed to create backup unit privilege.
- Create
Datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- Create
Flow boolLog - [Boolean] The group will be allowed to create flow log.
- Create
Internet boolAccess - [Boolean] The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- Create
Pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- Create
Snapshot bool - [Boolean] The group will be allowed to create snapshots.
- Manage
Dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- Name string
- [string] A name for the group.
- Reserve
Ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- S3Privilege bool
- [Boolean] The group will have S3 privilege.
- User
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- User
Ids List<string> - [list] A list of users to add to the group.
- Users
List<Ionoscloud.
Group User> List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- Access
Activity boolLog - [Boolean] The group will be allowed to access the activity log.
- Access
And boolManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- Access
And boolManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- Create
Backup boolUnit - [Boolean] The group will be allowed to create backup unit privilege.
- Create
Datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- Create
Flow boolLog - [Boolean] The group will be allowed to create flow log.
- Create
Internet boolAccess - [Boolean] The group will be allowed to create internet access privilege.
- Create
K8s boolCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- Create
Pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- Create
Snapshot bool - [Boolean] The group will be allowed to create snapshots.
- Manage
Dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- Name string
- [string] A name for the group.
- Reserve
Ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- S3Privilege bool
- [Boolean] The group will have S3 privilege.
- User
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- User
Ids []string - [list] A list of users to add to the group.
- Users
[]Group
User Args List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- access
Activity BooleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup BooleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet BooleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc Boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas Boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name String
- [string] A name for the group.
- reserve
Ip Boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege Boolean
- [Boolean] The group will have S3 privilege.
- user
Id String - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids List<String> - [list] A list of users to add to the group.
- users
List<Group
User> List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- access
Activity booleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And booleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And booleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup booleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow booleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet booleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s booleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name string
- [string] A name for the group.
- reserve
Ip boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege boolean
- [Boolean] The group will have S3 privilege.
- user
Id string - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids string[] - [list] A list of users to add to the group.
- users
Group
User[] List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- access_
activity_ boollog - [Boolean] The group will be allowed to access the activity log.
- access_
and_ boolmanage_ certificates - [Boolean] The group will be allowed to access and manage certificates.
- access_
and_ boolmanage_ monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create_
backup_ boolunit - [Boolean] The group will be allowed to create backup unit privilege.
- create_
datacenter bool - [Boolean] The group will be allowed to create virtual data centers.
- create_
flow_ boollog - [Boolean] The group will be allowed to create flow log.
- create_
internet_ boolaccess - [Boolean] The group will be allowed to create internet access privilege.
- create_
k8s_ boolcluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create_
pcc bool - [Boolean] The group will be allowed to create Cross Connects privilege.
- create_
snapshot bool - [Boolean] The group will be allowed to create snapshots.
- manage_
dbaas bool - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name str
- [string] A name for the group.
- reserve_
ip bool - [Boolean] The group will be allowed to reserve IP addresses.
- s3_
privilege bool - [Boolean] The group will have S3 privilege.
- user_
id str - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user_
ids Sequence[str] - [list] A list of users to add to the group.
- users
Sequence[Group
User Args] List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
- access
Activity BooleanLog - [Boolean] The group will be allowed to access the activity log.
- access
And BooleanManage Certificates - [Boolean] The group will be allowed to access and manage certificates.
- access
And BooleanManage Monitoring - [Boolean] The group will be allowed to access and manage monitoring.
- create
Backup BooleanUnit - [Boolean] The group will be allowed to create backup unit privilege.
- create
Datacenter Boolean - [Boolean] The group will be allowed to create virtual data centers.
- create
Flow BooleanLog - [Boolean] The group will be allowed to create flow log.
- create
Internet BooleanAccess - [Boolean] The group will be allowed to create internet access privilege.
- create
K8s BooleanCluster - [Boolean] The group will be allowed to create kubernetes cluster privilege.
- create
Pcc Boolean - [Boolean] The group will be allowed to create Cross Connects privilege.
- create
Snapshot Boolean - [Boolean] The group will be allowed to create snapshots.
- manage
Dbaas Boolean - [Boolean] Privilege for a group to manage DBaaS related functionality.
- name String
- [string] A name for the group.
- reserve
Ip Boolean - [Boolean] The group will be allowed to reserve IP addresses.
- s3Privilege Boolean
- [Boolean] The group will have S3 privilege.
- user
Id String - [string] The ID of the specific user to add to the group. Please use user_ids argument since this is DEPRECATED
- user
Ids List<String> - [list] A list of users to add to the group.
- users List<Property Map>
List of users - See the User section
NOTE: user_id/user_ids field cannot be used at the same time with group_ids field in user resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
Supporting Types
GroupUser, GroupUserArgs
- Administrator bool
- Email string
- First
Name string - Force
Sec boolAuth - Id string
- Last
Name string - Password string
- Administrator bool
- Email string
- First
Name string - Force
Sec boolAuth - Id string
- Last
Name string - Password string
- administrator Boolean
- email String
- first
Name String - force
Sec BooleanAuth - id String
- last
Name String - password String
- administrator boolean
- email string
- first
Name string - force
Sec booleanAuth - id string
- last
Name string - password string
- administrator bool
- email str
- first_
name str - force_
sec_ boolauth - id str
- last_
name str - password str
- administrator Boolean
- email String
- first
Name String - force
Sec BooleanAuth - id String
- last
Name String - password String
Import
Resource Group can be imported using the resource id
, e.g.
$ pulumi import ionoscloud:compute/group:Group mygroup group uuid
:warning: If you are upgrading to v6.2.0: You have to modify you plan for user_ids to match the new structure, by renaming the field old field, user_id, to user_ids and put the old value into an array. This is not backwards compatible.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.