1. Packages
  2. Harbor
  3. API Docs
  4. ProjectMemberGroup
Harbor v3.10.9 published on Friday, Apr 19, 2024 by Pulumiverse

harbor.ProjectMemberGroup

Explore with Pulumi AI

harbor logo
Harbor v3.10.9 published on Friday, Apr 19, 2024 by Pulumiverse

    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 string
    The unique name of the resource.
    args ProjectMemberGroupArgs
    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 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 string
    The unique name of the resource.
    args ProjectMemberGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectMemberGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectMemberGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The ProjectMemberGroup resource accepts the following input properties:

    ProjectId 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 int
    GroupName string
    LdapGroupDn string
    ProjectId 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 int
    GroupName string
    LdapGroupDn string
    projectId 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 Integer
    groupName String
    ldapGroupDn String
    projectId 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 number
    groupName string
    ldapGroupDn string
    project_id 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".
    group_id int
    group_name str
    ldap_group_dn str
    projectId 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 Number
    groupName 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)
    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.
    The following state arguments are supported:
    GroupId int
    GroupName string
    LdapGroupDn string
    MemberId int
    ProjectId 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 int
    GroupName string
    LdapGroupDn string
    MemberId int
    ProjectId 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 Integer
    groupName String
    ldapGroupDn String
    memberId Integer
    projectId 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 number
    groupName string
    ldapGroupDn string
    memberId number
    projectId 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 int
    group_name str
    ldap_group_dn str
    member_id int
    project_id 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 Number
    groupName String
    ldapGroupDn String
    memberId Number
    projectId 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
    

    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.
    harbor logo
    Harbor v3.10.9 published on Friday, Apr 19, 2024 by Pulumiverse