harbor.ProjectMemberGroup
Explore with Pulumi AI
Example Usage
resource "harbor_project" "main" {
name = "main"
}
resource "harbor_project_member_group" "main" {
project_id = harbor_project.main.id
group_name = "testing1"
role = "projectadmin"
type = "oidc"
}
Create ProjectMemberGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectMemberGroup(name: string, args: ProjectMemberGroupArgs, opts?: CustomResourceOptions);
@overload
def ProjectMemberGroup(resource_name: str,
args: ProjectMemberGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectMemberGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
role: Optional[str] = None,
type: Optional[str] = None,
group_id: Optional[int] = None,
group_name: Optional[str] = None,
ldap_group_dn: Optional[str] = None)
func NewProjectMemberGroup(ctx *Context, name string, args ProjectMemberGroupArgs, opts ...ResourceOption) (*ProjectMemberGroup, error)
public ProjectMemberGroup(string name, ProjectMemberGroupArgs args, CustomResourceOptions? opts = null)
public ProjectMemberGroup(String name, ProjectMemberGroupArgs args)
public ProjectMemberGroup(String name, ProjectMemberGroupArgs args, CustomResourceOptions options)
type: harbor:ProjectMemberGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ProjectMemberGroupArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ProjectMemberGroupArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ProjectMemberGroupArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ProjectMemberGroupArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ProjectMemberGroupArgs - 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 projectMemberGroupResource = new Harbor.ProjectMemberGroup("projectMemberGroupResource", new()
{
ProjectId = "string",
Role = "string",
Type = "string",
GroupId = 0,
GroupName = "string",
LdapGroupDn = "string",
});
example, err := harbor.NewProjectMemberGroup(ctx, "projectMemberGroupResource", &harbor.ProjectMemberGroupArgs{
ProjectId: pulumi.String("string"),
Role: pulumi.String("string"),
Type: pulumi.String("string"),
GroupId: pulumi.Int(0),
GroupName: pulumi.String("string"),
LdapGroupDn: pulumi.String("string"),
})
var projectMemberGroupResource = new ProjectMemberGroup("projectMemberGroupResource", ProjectMemberGroupArgs.builder()
.projectId("string")
.role("string")
.type("string")
.groupId(0)
.groupName("string")
.ldapGroupDn("string")
.build());
project_member_group_resource = harbor.ProjectMemberGroup("projectMemberGroupResource",
project_id="string",
role="string",
type="string",
group_id=0,
group_name="string",
ldap_group_dn="string")
const projectMemberGroupResource = new harbor.ProjectMemberGroup("projectMemberGroupResource", {
projectId: "string",
role: "string",
type: "string",
groupId: 0,
groupName: "string",
ldapGroupDn: "string",
});
type: harbor:ProjectMemberGroup
properties:
groupId: 0
groupName: string
ldapGroupDn: string
projectId: string
role: string
type: string
ProjectMemberGroup 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 ProjectMemberGroup resource accepts the following input properties:
- Project
Id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- Role
This property is required. string - The permissions that the entity will be granted.
- Type
This property is required. string - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - Group
Id Changes to this property will trigger replacement.
- Group
Name Changes to this property will trigger replacement.
- Ldap
Group stringDn
- Project
Id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- Role
This property is required. string - The permissions that the entity will be granted.
- Type
This property is required. string - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - Group
Id Changes to this property will trigger replacement.
- Group
Name Changes to this property will trigger replacement.
- Ldap
Group stringDn
- project
Id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role
This property is required. String - The permissions that the entity will be granted.
- type
This property is required. String - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group StringDn
- project
Id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role
This property is required. string - The permissions that the entity will be granted.
- type
This property is required. string - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group stringDn
- project_
id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role
This property is required. str - The permissions that the entity will be granted.
- type
This property is required. str - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - group_
id Changes to this property will trigger replacement.
- group_
name Changes to this property will trigger replacement.
- ldap_
group_ strdn
- project
Id This property is required. Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role
This property is required. String - The permissions that the entity will be granted.
- type
This property is required. String - The group type. Can be set to
"ldap"
,"internal"
or"oidc"
. - group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group StringDn
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectMemberGroup resource produces the following output properties:
Look up Existing ProjectMemberGroup Resource
Get an existing ProjectMemberGroup 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?: ProjectMemberGroupState, opts?: CustomResourceOptions): ProjectMemberGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[int] = None,
group_name: Optional[str] = None,
ldap_group_dn: Optional[str] = None,
member_id: Optional[int] = None,
project_id: Optional[str] = None,
role: Optional[str] = None,
type: Optional[str] = None) -> ProjectMemberGroup
func GetProjectMemberGroup(ctx *Context, name string, id IDInput, state *ProjectMemberGroupState, opts ...ResourceOption) (*ProjectMemberGroup, error)
public static ProjectMemberGroup Get(string name, Input<string> id, ProjectMemberGroupState? state, CustomResourceOptions? opts = null)
public static ProjectMemberGroup get(String name, Output<String> id, ProjectMemberGroupState state, CustomResourceOptions options)
resources: _: type: harbor:ProjectMemberGroup get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Group
Id Changes to this property will trigger replacement.
- Group
Name Changes to this property will trigger replacement.
- Ldap
Group stringDn - Member
Id int - Project
Id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- Role string
- The permissions that the entity will be granted.
- Type string
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
- Group
Id Changes to this property will trigger replacement.
- Group
Name Changes to this property will trigger replacement.
- Ldap
Group stringDn - Member
Id int - Project
Id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- Role string
- The permissions that the entity will be granted.
- Type string
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
- group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group StringDn - member
Id Integer - project
Id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role String
- The permissions that the entity will be granted.
- type String
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
- group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group stringDn - member
Id number - project
Id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role string
- The permissions that the entity will be granted.
- type string
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
- group_
id Changes to this property will trigger replacement.
- group_
name Changes to this property will trigger replacement.
- ldap_
group_ strdn - member_
id int - project_
id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role str
- The permissions that the entity will be granted.
- type str
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
- group
Id Changes to this property will trigger replacement.
- group
Name Changes to this property will trigger replacement.
- ldap
Group StringDn - member
Id Number - project
Id Changes to this property will trigger replacement.
- The project id of the project that the entity will have access to.
- role String
- The permissions that the entity will be granted.
- type String
- The group type. Can be set to
"ldap"
,"internal"
or"oidc"
.
Import
$ pulumi import harbor:index/projectMemberGroup:ProjectMemberGroup main /projects/10/members/200
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harbor pulumiverse/pulumi-harbor
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harbor
Terraform Provider.