powerscale.UserGroup
Explore with Pulumi AI
This resource is used to manage the User Group entity of PowerScale Array. We can Create, Update and Delete the User Group using this resource. We can also import an existing User Group from PowerScale array. PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
// PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
const testUserGroup = new powerscale.UserGroup("testUserGroup", {});
import pulumi
import pulumi_powerscale as powerscale
# PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
test_user_group = powerscale.UserGroup("testUserGroup")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
_, err := powerscale.NewUserGroup(ctx, "testUserGroup", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
// PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
var testUserGroup = new Powerscale.UserGroup("testUserGroup");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.UserGroup;
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) {
// PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
var testUserGroup = new UserGroup("testUserGroup");
}
}
resources:
# PowerScale User Group allows you to do operations on a set of users, groups and well-knowns.
testUserGroup:
type: powerscale:UserGroup
Create UserGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserGroup(name: string, args?: UserGroupArgs, opts?: CustomResourceOptions);
@overload
def UserGroup(resource_name: str,
args: Optional[UserGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def UserGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
gid: Optional[float] = None,
groups: Optional[Sequence[str]] = None,
name: Optional[str] = None,
query_force: Optional[bool] = None,
query_provider: Optional[str] = None,
query_zone: Optional[str] = None,
roles: Optional[Sequence[str]] = None,
sid: Optional[str] = None,
users: Optional[Sequence[str]] = None,
well_knowns: Optional[Sequence[str]] = None)
func NewUserGroup(ctx *Context, name string, args *UserGroupArgs, opts ...ResourceOption) (*UserGroup, error)
public UserGroup(string name, UserGroupArgs? args = null, CustomResourceOptions? opts = null)
public UserGroup(String name, UserGroupArgs args)
public UserGroup(String name, UserGroupArgs args, CustomResourceOptions options)
type: powerscale:UserGroup
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 UserGroupArgs
- 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 UserGroupArgs
- 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 UserGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserGroupArgs
- 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 userGroupResource = new Powerscale.UserGroup("userGroupResource", new()
{
Domain = "string",
Gid = 0,
Groups = new[]
{
"string",
},
Name = "string",
QueryForce = false,
QueryProvider = "string",
QueryZone = "string",
Roles = new[]
{
"string",
},
Sid = "string",
Users = new[]
{
"string",
},
WellKnowns = new[]
{
"string",
},
});
example, err := powerscale.NewUserGroup(ctx, "userGroupResource", &powerscale.UserGroupArgs{
Domain: pulumi.String("string"),
Gid: pulumi.Float64(0),
Groups: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
QueryForce: pulumi.Bool(false),
QueryProvider: pulumi.String("string"),
QueryZone: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Sid: pulumi.String("string"),
Users: pulumi.StringArray{
pulumi.String("string"),
},
WellKnowns: pulumi.StringArray{
pulumi.String("string"),
},
})
var userGroupResource = new UserGroup("userGroupResource", UserGroupArgs.builder()
.domain("string")
.gid(0)
.groups("string")
.name("string")
.queryForce(false)
.queryProvider("string")
.queryZone("string")
.roles("string")
.sid("string")
.users("string")
.wellKnowns("string")
.build());
user_group_resource = powerscale.UserGroup("userGroupResource",
domain="string",
gid=0,
groups=["string"],
name="string",
query_force=False,
query_provider="string",
query_zone="string",
roles=["string"],
sid="string",
users=["string"],
well_knowns=["string"])
const userGroupResource = new powerscale.UserGroup("userGroupResource", {
domain: "string",
gid: 0,
groups: ["string"],
name: "string",
queryForce: false,
queryProvider: "string",
queryZone: "string",
roles: ["string"],
sid: "string",
users: ["string"],
wellKnowns: ["string"],
});
type: powerscale:UserGroup
properties:
domain: string
gid: 0
groups:
- string
name: string
queryForce: false
queryProvider: string
queryZone: string
roles:
- string
sid: string
users:
- string
wellKnowns:
- string
UserGroup 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 UserGroup resource accepts the following input properties:
- Domain string
- Specifies the domain that the object is part of. Cannot be updated.
- Gid double
- Specifies a numeric user group identifier.
- Groups List<string>
- Specifies list members of group within the group.
- Name string
- Specifies a user group name. Cannot be updated.
- Query
Force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- Query
Provider string - Specifies the provider type. Cannot be updated.
- Query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- Roles List<string>
- List of roles, the user is assigned.
- Sid string
- Specifies a security identifier. Cannot be updated.
- Users List<string>
- Specifies list members of user within the group.
- Well
Knowns List<string> - Specifies list members of well_known within the group.
- Domain string
- Specifies the domain that the object is part of. Cannot be updated.
- Gid float64
- Specifies a numeric user group identifier.
- Groups []string
- Specifies list members of group within the group.
- Name string
- Specifies a user group name. Cannot be updated.
- Query
Force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- Query
Provider string - Specifies the provider type. Cannot be updated.
- Query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- Roles []string
- List of roles, the user is assigned.
- Sid string
- Specifies a security identifier. Cannot be updated.
- Users []string
- Specifies list members of user within the group.
- Well
Knowns []string - Specifies list members of well_known within the group.
- domain String
- Specifies the domain that the object is part of. Cannot be updated.
- gid Double
- Specifies a numeric user group identifier.
- groups List<String>
- Specifies list members of group within the group.
- name String
- Specifies a user group name. Cannot be updated.
- query
Force Boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider String - Specifies the provider type. Cannot be updated.
- query
Zone String - Specifies the zone that the object belongs to. Cannot be updated.
- roles List<String>
- List of roles, the user is assigned.
- sid String
- Specifies a security identifier. Cannot be updated.
- users List<String>
- Specifies list members of user within the group.
- well
Knowns List<String> - Specifies list members of well_known within the group.
- domain string
- Specifies the domain that the object is part of. Cannot be updated.
- gid number
- Specifies a numeric user group identifier.
- groups string[]
- Specifies list members of group within the group.
- name string
- Specifies a user group name. Cannot be updated.
- query
Force boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider string - Specifies the provider type. Cannot be updated.
- query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- roles string[]
- List of roles, the user is assigned.
- sid string
- Specifies a security identifier. Cannot be updated.
- users string[]
- Specifies list members of user within the group.
- well
Knowns string[] - Specifies list members of well_known within the group.
- domain str
- Specifies the domain that the object is part of. Cannot be updated.
- gid float
- Specifies a numeric user group identifier.
- groups Sequence[str]
- Specifies list members of group within the group.
- name str
- Specifies a user group name. Cannot be updated.
- query_
force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query_
provider str - Specifies the provider type. Cannot be updated.
- query_
zone str - Specifies the zone that the object belongs to. Cannot be updated.
- roles Sequence[str]
- List of roles, the user is assigned.
- sid str
- Specifies a security identifier. Cannot be updated.
- users Sequence[str]
- Specifies list members of user within the group.
- well_
knowns Sequence[str] - Specifies list members of well_known within the group.
- domain String
- Specifies the domain that the object is part of. Cannot be updated.
- gid Number
- Specifies a numeric user group identifier.
- groups List<String>
- Specifies list members of group within the group.
- name String
- Specifies a user group name. Cannot be updated.
- query
Force Boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider String - Specifies the provider type. Cannot be updated.
- query
Zone String - Specifies the zone that the object belongs to. Cannot be updated.
- roles List<String>
- List of roles, the user is assigned.
- sid String
- Specifies a security identifier. Cannot be updated.
- users List<String>
- Specifies list members of user within the group.
- well
Knowns List<String> - Specifies list members of well_known within the group.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserGroup resource produces the following output properties:
- Dn string
- Specifies a principal name for the user group.
- Dns
Domain string - Specifies the DNS domain.
- Generated
Gid bool - If true, the GID was generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Name string - Specifies the authentication provider that the object belongs to.
- Sam
Account stringName - Specifies a user group name.
- Type string
- Specifies the object type.
- Dn string
- Specifies a principal name for the user group.
- Dns
Domain string - Specifies the DNS domain.
- Generated
Gid bool - If true, the GID was generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provider
Name string - Specifies the authentication provider that the object belongs to.
- Sam
Account stringName - Specifies a user group name.
- Type string
- Specifies the object type.
- dn String
- Specifies a principal name for the user group.
- dns
Domain String - Specifies the DNS domain.
- generated
Gid Boolean - If true, the GID was generated.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Name String - Specifies the authentication provider that the object belongs to.
- sam
Account StringName - Specifies a user group name.
- type String
- Specifies the object type.
- dn string
- Specifies a principal name for the user group.
- dns
Domain string - Specifies the DNS domain.
- generated
Gid boolean - If true, the GID was generated.
- id string
- The provider-assigned unique ID for this managed resource.
- provider
Name string - Specifies the authentication provider that the object belongs to.
- sam
Account stringName - Specifies a user group name.
- type string
- Specifies the object type.
- dn str
- Specifies a principal name for the user group.
- dns_
domain str - Specifies the DNS domain.
- generated_
gid bool - If true, the GID was generated.
- id str
- The provider-assigned unique ID for this managed resource.
- provider_
name str - Specifies the authentication provider that the object belongs to.
- sam_
account_ strname - Specifies a user group name.
- type str
- Specifies the object type.
- dn String
- Specifies a principal name for the user group.
- dns
Domain String - Specifies the DNS domain.
- generated
Gid Boolean - If true, the GID was generated.
- id String
- The provider-assigned unique ID for this managed resource.
- provider
Name String - Specifies the authentication provider that the object belongs to.
- sam
Account StringName - Specifies a user group name.
- type String
- Specifies the object type.
Look up Existing UserGroup Resource
Get an existing UserGroup 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?: UserGroupState, opts?: CustomResourceOptions): UserGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dn: Optional[str] = None,
dns_domain: Optional[str] = None,
domain: Optional[str] = None,
generated_gid: Optional[bool] = None,
gid: Optional[float] = None,
groups: Optional[Sequence[str]] = None,
name: Optional[str] = None,
provider_name: Optional[str] = None,
query_force: Optional[bool] = None,
query_provider: Optional[str] = None,
query_zone: Optional[str] = None,
roles: Optional[Sequence[str]] = None,
sam_account_name: Optional[str] = None,
sid: Optional[str] = None,
type: Optional[str] = None,
users: Optional[Sequence[str]] = None,
well_knowns: Optional[Sequence[str]] = None) -> UserGroup
func GetUserGroup(ctx *Context, name string, id IDInput, state *UserGroupState, opts ...ResourceOption) (*UserGroup, error)
public static UserGroup Get(string name, Input<string> id, UserGroupState? state, CustomResourceOptions? opts = null)
public static UserGroup get(String name, Output<String> id, UserGroupState state, CustomResourceOptions options)
resources: _: type: powerscale:UserGroup 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.
- Dn string
- Specifies a principal name for the user group.
- Dns
Domain string - Specifies the DNS domain.
- Domain string
- Specifies the domain that the object is part of. Cannot be updated.
- Generated
Gid bool - If true, the GID was generated.
- Gid double
- Specifies a numeric user group identifier.
- Groups List<string>
- Specifies list members of group within the group.
- Name string
- Specifies a user group name. Cannot be updated.
- Provider
Name string - Specifies the authentication provider that the object belongs to.
- Query
Force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- Query
Provider string - Specifies the provider type. Cannot be updated.
- Query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- Roles List<string>
- List of roles, the user is assigned.
- Sam
Account stringName - Specifies a user group name.
- Sid string
- Specifies a security identifier. Cannot be updated.
- Type string
- Specifies the object type.
- Users List<string>
- Specifies list members of user within the group.
- Well
Knowns List<string> - Specifies list members of well_known within the group.
- Dn string
- Specifies a principal name for the user group.
- Dns
Domain string - Specifies the DNS domain.
- Domain string
- Specifies the domain that the object is part of. Cannot be updated.
- Generated
Gid bool - If true, the GID was generated.
- Gid float64
- Specifies a numeric user group identifier.
- Groups []string
- Specifies list members of group within the group.
- Name string
- Specifies a user group name. Cannot be updated.
- Provider
Name string - Specifies the authentication provider that the object belongs to.
- Query
Force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- Query
Provider string - Specifies the provider type. Cannot be updated.
- Query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- Roles []string
- List of roles, the user is assigned.
- Sam
Account stringName - Specifies a user group name.
- Sid string
- Specifies a security identifier. Cannot be updated.
- Type string
- Specifies the object type.
- Users []string
- Specifies list members of user within the group.
- Well
Knowns []string - Specifies list members of well_known within the group.
- dn String
- Specifies a principal name for the user group.
- dns
Domain String - Specifies the DNS domain.
- domain String
- Specifies the domain that the object is part of. Cannot be updated.
- generated
Gid Boolean - If true, the GID was generated.
- gid Double
- Specifies a numeric user group identifier.
- groups List<String>
- Specifies list members of group within the group.
- name String
- Specifies a user group name. Cannot be updated.
- provider
Name String - Specifies the authentication provider that the object belongs to.
- query
Force Boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider String - Specifies the provider type. Cannot be updated.
- query
Zone String - Specifies the zone that the object belongs to. Cannot be updated.
- roles List<String>
- List of roles, the user is assigned.
- sam
Account StringName - Specifies a user group name.
- sid String
- Specifies a security identifier. Cannot be updated.
- type String
- Specifies the object type.
- users List<String>
- Specifies list members of user within the group.
- well
Knowns List<String> - Specifies list members of well_known within the group.
- dn string
- Specifies a principal name for the user group.
- dns
Domain string - Specifies the DNS domain.
- domain string
- Specifies the domain that the object is part of. Cannot be updated.
- generated
Gid boolean - If true, the GID was generated.
- gid number
- Specifies a numeric user group identifier.
- groups string[]
- Specifies list members of group within the group.
- name string
- Specifies a user group name. Cannot be updated.
- provider
Name string - Specifies the authentication provider that the object belongs to.
- query
Force boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider string - Specifies the provider type. Cannot be updated.
- query
Zone string - Specifies the zone that the object belongs to. Cannot be updated.
- roles string[]
- List of roles, the user is assigned.
- sam
Account stringName - Specifies a user group name.
- sid string
- Specifies a security identifier. Cannot be updated.
- type string
- Specifies the object type.
- users string[]
- Specifies list members of user within the group.
- well
Knowns string[] - Specifies list members of well_known within the group.
- dn str
- Specifies a principal name for the user group.
- dns_
domain str - Specifies the DNS domain.
- domain str
- Specifies the domain that the object is part of. Cannot be updated.
- generated_
gid bool - If true, the GID was generated.
- gid float
- Specifies a numeric user group identifier.
- groups Sequence[str]
- Specifies list members of group within the group.
- name str
- Specifies a user group name. Cannot be updated.
- provider_
name str - Specifies the authentication provider that the object belongs to.
- query_
force bool - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query_
provider str - Specifies the provider type. Cannot be updated.
- query_
zone str - Specifies the zone that the object belongs to. Cannot be updated.
- roles Sequence[str]
- List of roles, the user is assigned.
- sam_
account_ strname - Specifies a user group name.
- sid str
- Specifies a security identifier. Cannot be updated.
- type str
- Specifies the object type.
- users Sequence[str]
- Specifies list members of user within the group.
- well_
knowns Sequence[str] - Specifies list members of well_known within the group.
- dn String
- Specifies a principal name for the user group.
- dns
Domain String - Specifies the DNS domain.
- domain String
- Specifies the domain that the object is part of. Cannot be updated.
- generated
Gid Boolean - If true, the GID was generated.
- gid Number
- Specifies a numeric user group identifier.
- groups List<String>
- Specifies list members of group within the group.
- name String
- Specifies a user group name. Cannot be updated.
- provider
Name String - Specifies the authentication provider that the object belongs to.
- query
Force Boolean - If true, skip validation checks when creating user group. Need to be true, when changing group GID.
- query
Provider String - Specifies the provider type. Cannot be updated.
- query
Zone String - Specifies the zone that the object belongs to. Cannot be updated.
- roles List<String>
- List of roles, the user is assigned.
- sam
Account StringName - Specifies a user group name.
- sid String
- Specifies a security identifier. Cannot be updated.
- type String
- Specifies the object type.
- users List<String>
- Specifies list members of user within the group.
- well
Knowns List<String> - Specifies list members of well_known within the group.
Import
Copyright (c) 2023-2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The command is
$ pulumi import powerscale:index/userGroup:UserGroup testUserGroup [<zoneID>:]<userGroupName>
Example1,
$ pulumi import powerscale:index/userGroup:UserGroup testUserGroup userGroupName
Example2:
$ pulumi import powerscale:index/userGroup:UserGroup testUserGroup zoneID:userGroupName
after running this command, populate the name field and other required parameters in the config file to start managing this resource.
Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- powerscale dell/terraform-provider-powerscale
- License
- Notes
- This Pulumi package is based on the
powerscale
Terraform Provider.