1. Packages
  2. Harbor
  3. API Docs
  4. ProjectMemberGroup
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

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"
}
Copy

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",
});
Copy
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"),
})
Copy
var projectMemberGroupResource = new ProjectMemberGroup("projectMemberGroupResource", ProjectMemberGroupArgs.builder()
    .projectId("string")
    .role("string")
    .type("string")
    .groupId(0)
    .groupName("string")
    .ldapGroupDn("string")
    .build());
Copy
project_member_group_resource = harbor.ProjectMemberGroup("projectMemberGroupResource",
    project_id="string",
    role="string",
    type="string",
    group_id=0,
    group_name="string",
    ldap_group_dn="string")
Copy
const projectMemberGroupResource = new harbor.ProjectMemberGroup("projectMemberGroupResource", {
    projectId: "string",
    role: "string",
    type: "string",
    groupId: 0,
    groupName: "string",
    ldapGroupDn: "string",
});
Copy
type: harbor:ProjectMemberGroup
properties:
    groupId: 0
    groupName: string
    ldapGroupDn: string
    projectId: string
    role: string
    type: string
Copy

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:

ProjectId
This property is required.
Changes to this property will trigger replacement.
string
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".
GroupId Changes to this property will trigger replacement. int
GroupName Changes to this property will trigger replacement. string
LdapGroupDn string
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
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".
GroupId Changes to this property will trigger replacement. int
GroupName Changes to this property will trigger replacement. string
LdapGroupDn string
projectId
This property is required.
Changes to this property will trigger replacement.
String
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".
groupId Changes to this property will trigger replacement. Integer
groupName Changes to this property will trigger replacement. String
ldapGroupDn String
projectId
This property is required.
Changes to this property will trigger replacement.
string
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".
groupId Changes to this property will trigger replacement. number
groupName Changes to this property will trigger replacement. string
ldapGroupDn string
project_id
This property is required.
Changes to this property will trigger replacement.
str
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. int
group_name Changes to this property will trigger replacement. str
ldap_group_dn str
projectId
This property is required.
Changes to this property will trigger replacement.
String
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".
groupId Changes to this property will trigger replacement. Number
groupName Changes to this property will trigger replacement. String
ldapGroupDn String

Outputs

All input properties are implicitly available as output properties. Additionally, the ProjectMemberGroup resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
MemberId int
Id string
The provider-assigned unique ID for this managed resource.
MemberId int
id String
The provider-assigned unique ID for this managed resource.
memberId Integer
id string
The provider-assigned unique ID for this managed resource.
memberId number
id str
The provider-assigned unique ID for this managed resource.
member_id int
id String
The provider-assigned unique ID for this managed resource.
memberId Number

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.
The following state arguments are supported:
GroupId Changes to this property will trigger replacement. int
GroupName Changes to this property will trigger replacement. string
LdapGroupDn string
MemberId int
ProjectId Changes to this property will trigger replacement. string
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".
GroupId Changes to this property will trigger replacement. int
GroupName Changes to this property will trigger replacement. string
LdapGroupDn string
MemberId int
ProjectId Changes to this property will trigger replacement. string
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".
groupId Changes to this property will trigger replacement. Integer
groupName Changes to this property will trigger replacement. String
ldapGroupDn String
memberId Integer
projectId Changes to this property will trigger replacement. String
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".
groupId Changes to this property will trigger replacement. number
groupName Changes to this property will trigger replacement. string
ldapGroupDn string
memberId number
projectId Changes to this property will trigger replacement. string
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. int
group_name Changes to this property will trigger replacement. str
ldap_group_dn str
member_id int
project_id Changes to this property will trigger replacement. str
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".
groupId Changes to this property will trigger replacement. Number
groupName Changes to this property will trigger replacement. String
ldapGroupDn String
memberId Number
projectId Changes to this property will trigger replacement. String
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
Copy

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.