artifactory.Group
Explore with Pulumi AI
Import
$ pulumi import artifactory:index/group:Group terraform-group mygroup
~> users_names
can’t be imported due to API limitations.
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,
admin_privileges: Optional[bool] = None,
auto_join: Optional[bool] = None,
description: Optional[str] = None,
detach_all_users: Optional[bool] = None,
external_id: Optional[str] = None,
name: Optional[str] = None,
policy_manager: Optional[bool] = None,
realm: Optional[str] = None,
realm_attributes: Optional[str] = None,
reports_manager: Optional[bool] = None,
users_names: Optional[Sequence[str]] = None,
watch_manager: Optional[bool] = None)
func NewGroup(ctx *Context, name string, args *GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs? args = null, CustomResourceOptions? opts = null)
type: artifactory: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 groupResource = new Artifactory.Group("groupResource", new()
{
AdminPrivileges = false,
AutoJoin = false,
Description = "string",
DetachAllUsers = false,
ExternalId = "string",
Name = "string",
PolicyManager = false,
Realm = "string",
RealmAttributes = "string",
ReportsManager = false,
UsersNames = new[]
{
"string",
},
WatchManager = false,
});
example, err := artifactory.NewGroup(ctx, "groupResource", &artifactory.GroupArgs{
AdminPrivileges: pulumi.Bool(false),
AutoJoin: pulumi.Bool(false),
Description: pulumi.String("string"),
DetachAllUsers: pulumi.Bool(false),
ExternalId: pulumi.String("string"),
Name: pulumi.String("string"),
PolicyManager: pulumi.Bool(false),
Realm: pulumi.String("string"),
RealmAttributes: pulumi.String("string"),
ReportsManager: pulumi.Bool(false),
UsersNames: pulumi.StringArray{
pulumi.String("string"),
},
WatchManager: pulumi.Bool(false),
})
var groupResource = new Group("groupResource", GroupArgs.builder()
.adminPrivileges(false)
.autoJoin(false)
.description("string")
.detachAllUsers(false)
.externalId("string")
.name("string")
.policyManager(false)
.realm("string")
.realmAttributes("string")
.reportsManager(false)
.usersNames("string")
.watchManager(false)
.build());
group_resource = artifactory.Group("groupResource",
admin_privileges=False,
auto_join=False,
description="string",
detach_all_users=False,
external_id="string",
name="string",
policy_manager=False,
realm="string",
realm_attributes="string",
reports_manager=False,
users_names=["string"],
watch_manager=False)
const groupResource = new artifactory.Group("groupResource", {
adminPrivileges: false,
autoJoin: false,
description: "string",
detachAllUsers: false,
externalId: "string",
name: "string",
policyManager: false,
realm: "string",
realmAttributes: "string",
reportsManager: false,
usersNames: ["string"],
watchManager: false,
});
type: artifactory:Group
properties:
adminPrivileges: false
autoJoin: false
description: string
detachAllUsers: false
externalId: string
name: string
policyManager: false
realm: string
realmAttributes: string
reportsManager: false
usersNames:
- string
watchManager: false
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:
- Admin
Privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- Auto
Join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- Description string
- A description for the group.
- Detach
All boolUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - External
Id string - New external group ID used to configure the corresponding group in Azure AD.
- Name string
- Name of the group.
- Policy
Manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - Realm string
- The realm for the group.
- Realm
Attributes string - The realm attributes for the group.
- Reports
Manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - Users
Names List<string> - Watch
Manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- Admin
Privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- Auto
Join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- Description string
- A description for the group.
- Detach
All boolUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - External
Id string - New external group ID used to configure the corresponding group in Azure AD.
- Name string
- Name of the group.
- Policy
Manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - Realm string
- The realm for the group.
- Realm
Attributes string - The realm attributes for the group.
- Reports
Manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - Users
Names []string - Watch
Manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges Boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join Boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description String
- A description for the group.
- detach
All BooleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id String - New external group ID used to configure the corresponding group in Azure AD.
- name String
- Name of the group.
- policy
Manager Boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm String
- The realm for the group.
- realm
Attributes String - The realm attributes for the group.
- reports
Manager Boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names List<String> - watch
Manager Boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description string
- A description for the group.
- detach
All booleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id string - New external group ID used to configure the corresponding group in Azure AD.
- name string
- Name of the group.
- policy
Manager boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm string
- The realm for the group.
- realm
Attributes string - The realm attributes for the group.
- reports
Manager boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names string[] - watch
Manager boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin_
privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto_
join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description str
- A description for the group.
- detach_
all_ boolusers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external_
id str - New external group ID used to configure the corresponding group in Azure AD.
- name str
- Name of the group.
- policy_
manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm str
- The realm for the group.
- realm_
attributes str - The realm attributes for the group.
- reports_
manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users_
names Sequence[str] - watch_
manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges Boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join Boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description String
- A description for the group.
- detach
All BooleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id String - New external group ID used to configure the corresponding group in Azure AD.
- name String
- Name of the group.
- policy
Manager Boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm String
- The realm for the group.
- realm
Attributes String - The realm attributes for the group.
- reports
Manager Boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names List<String> - watch
Manager Boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
admin_privileges: Optional[bool] = None,
auto_join: Optional[bool] = None,
description: Optional[str] = None,
detach_all_users: Optional[bool] = None,
external_id: Optional[str] = None,
name: Optional[str] = None,
policy_manager: Optional[bool] = None,
realm: Optional[str] = None,
realm_attributes: Optional[str] = None,
reports_manager: Optional[bool] = None,
users_names: Optional[Sequence[str]] = None,
watch_manager: Optional[bool] = 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)
Resource lookup is not supported in YAML
- 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.
- Admin
Privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- Auto
Join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- Description string
- A description for the group.
- Detach
All boolUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - External
Id string - New external group ID used to configure the corresponding group in Azure AD.
- Name string
- Name of the group.
- Policy
Manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - Realm string
- The realm for the group.
- Realm
Attributes string - The realm attributes for the group.
- Reports
Manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - Users
Names List<string> - Watch
Manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- Admin
Privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- Auto
Join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- Description string
- A description for the group.
- Detach
All boolUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - External
Id string - New external group ID used to configure the corresponding group in Azure AD.
- Name string
- Name of the group.
- Policy
Manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - Realm string
- The realm for the group.
- Realm
Attributes string - The realm attributes for the group.
- Reports
Manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - Users
Names []string - Watch
Manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges Boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join Boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description String
- A description for the group.
- detach
All BooleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id String - New external group ID used to configure the corresponding group in Azure AD.
- name String
- Name of the group.
- policy
Manager Boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm String
- The realm for the group.
- realm
Attributes String - The realm attributes for the group.
- reports
Manager Boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names List<String> - watch
Manager Boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description string
- A description for the group.
- detach
All booleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id string - New external group ID used to configure the corresponding group in Azure AD.
- name string
- Name of the group.
- policy
Manager boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm string
- The realm for the group.
- realm
Attributes string - The realm attributes for the group.
- reports
Manager boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names string[] - watch
Manager boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin_
privileges bool - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto_
join bool - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description str
- A description for the group.
- detach_
all_ boolusers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external_
id str - New external group ID used to configure the corresponding group in Azure AD.
- name str
- Name of the group.
- policy_
manager bool - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm str
- The realm for the group.
- realm_
attributes str - The realm attributes for the group.
- reports_
manager bool - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users_
names Sequence[str] - watch_
manager bool - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
- admin
Privileges Boolean - Any users added to this group will automatically be assigned with admin privileges in the system.
- auto
Join Boolean - When this parameter is set, any new users defined in the system are automatically assigned to this group.
- description String
- A description for the group.
- detach
All BooleanUsers - When this is set to
true
, an empty or missing usernames array will detach all users from the group. - external
Id String - New external group ID used to configure the corresponding group in Azure AD.
- name String
- Name of the group.
- policy
Manager Boolean - When this override is set, User in the group can set Xray security and compliance policies. Default value is
false
. - realm String
- The realm for the group.
- realm
Attributes String - The realm attributes for the group.
- reports
Manager Boolean - When this override is set, User in the group can manage Xray Reports on any resource type. Default value is
false
. - users
Names List<String> - watch
Manager Boolean - When this override is set, User in the group can manage Xray Watches on any resource type. Default value is
false
.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.