servercore_iam_group_v1
Creates and manages a user group for Servercore products using public API v1. Servercore products support Identity and Access Management (IAM). For more information about user groups, see the official Servercore documentation.
Example Usage
resource "servercore_iam_group_v1" "group_1" {
name = "My group"
description = "My test group"
role {
role_name = "member"
scope = "account"
}
}
Argument Reference
-
name
— (Required) Group name. -
description
— (Optional) Group description. -
role
— (Optional) Manages group roles. You can add multiple roles — each role in a separate block. For more information about roles, see the Roles section.-
role_name
— (Required) Role name. Available role names areiam_admin
,member
,reader
,billing
,object_storage:admin
andobject_storage_user
. -
scope
— (Required) Scope of the role. Available scopes areaccount
andproject
. Ifscope
isproject
theproject_id
argument is required. -
project_id
— (Optional) Unique identifier of the associated project. Ifscope
isproject
theproject_id
argument is required. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects.
-
Roles
To assign roles, use the following values for scope
and role_name
:
-
Account administrator —
scope
isaccount
,role_name
ismember
. -
Billing administrator —
scope
isaccount
,role_name
isbilling
. -
User administrator —
scope
isaccount
,role_name
isiam_admin
. -
Project administrator —
scope
isproject
,role_name
ismember
. -
Account viewer —
scope
isaccount
,role_name
isreader
. -
Project viewer —
scope
isproject
,role_name
isreader
. -
Object storage admin —
scope
isproject
,role_name
isobject_storage:admin
. -
Object storage user —
scope
isproject
,role_name
isobject_storage_user
.