1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectProtectedTag
GitLab v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

gitlab.getProjectProtectedTag

Explore with Pulumi AI

gitlab logo
GitLab v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

    The gitlab.getProjectProtectedTag data source allows details of a protected tag to be retrieved by its name and the project it belongs to.

    Upstream API: GitLab REST API docs

    Using getProjectProtectedTag

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectProtectedTag(args: GetProjectProtectedTagArgs, opts?: InvokeOptions): Promise<GetProjectProtectedTagResult>
    function getProjectProtectedTagOutput(args: GetProjectProtectedTagOutputArgs, opts?: InvokeOptions): Output<GetProjectProtectedTagResult>
    def get_project_protected_tag(project: Optional[str] = None,
                                  tag: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetProjectProtectedTagResult
    def get_project_protected_tag_output(project: Optional[pulumi.Input[str]] = None,
                                  tag: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetProjectProtectedTagResult]
    func GetProjectProtectedTag(ctx *Context, args *GetProjectProtectedTagArgs, opts ...InvokeOption) (*GetProjectProtectedTagResult, error)
    func GetProjectProtectedTagOutput(ctx *Context, args *GetProjectProtectedTagOutputArgs, opts ...InvokeOption) GetProjectProtectedTagResultOutput

    > Note: This function is named GetProjectProtectedTag in the Go SDK.

    public static class GetProjectProtectedTag 
    {
        public static Task<GetProjectProtectedTagResult> InvokeAsync(GetProjectProtectedTagArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectProtectedTagResult> Invoke(GetProjectProtectedTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectProtectedTagResult> getProjectProtectedTag(GetProjectProtectedTagArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gitlab:index/getProjectProtectedTag:getProjectProtectedTag
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Project string
    The integer or path with namespace that uniquely identifies the project.
    Tag string
    The name of the protected tag.
    Project string
    The integer or path with namespace that uniquely identifies the project.
    Tag string
    The name of the protected tag.
    project String
    The integer or path with namespace that uniquely identifies the project.
    tag String
    The name of the protected tag.
    project string
    The integer or path with namespace that uniquely identifies the project.
    tag string
    The name of the protected tag.
    project str
    The integer or path with namespace that uniquely identifies the project.
    tag str
    The name of the protected tag.
    project String
    The integer or path with namespace that uniquely identifies the project.
    tag String
    The name of the protected tag.

    getProjectProtectedTag Result

    The following output properties are available:

    CreateAccessLevels List<Pulumi.GitLab.Outputs.GetProjectProtectedTagCreateAccessLevel>
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    Id string
    The ID of this resource. In the format of <tag>.
    Project string
    The integer or path with namespace that uniquely identifies the project.
    Tag string
    The name of the protected tag.
    CreateAccessLevels []GetProjectProtectedTagCreateAccessLevel
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    Id string
    The ID of this resource. In the format of <tag>.
    Project string
    The integer or path with namespace that uniquely identifies the project.
    Tag string
    The name of the protected tag.
    createAccessLevels List<GetProjectProtectedTagCreateAccessLevel>
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    id String
    The ID of this resource. In the format of <tag>.
    project String
    The integer or path with namespace that uniquely identifies the project.
    tag String
    The name of the protected tag.
    createAccessLevels GetProjectProtectedTagCreateAccessLevel[]
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    id string
    The ID of this resource. In the format of <tag>.
    project string
    The integer or path with namespace that uniquely identifies the project.
    tag string
    The name of the protected tag.
    create_access_levels Sequence[GetProjectProtectedTagCreateAccessLevel]
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    id str
    The ID of this resource. In the format of <tag>.
    project str
    The integer or path with namespace that uniquely identifies the project.
    tag str
    The name of the protected tag.
    createAccessLevels List<Property Map>
    Array of access levels/user(s)/group(s) allowed to create protected tags.
    id String
    The ID of this resource. In the format of <tag>.
    project String
    The integer or path with namespace that uniquely identifies the project.
    tag String
    The name of the protected tag.

    Supporting Types

    GetProjectProtectedTagCreateAccessLevel

    AccessLevel string
    Access level allowed to create protected tags.
    AccessLevelDescription string
    Readable description of access level.
    Id int
    The ID of the create access level.
    GroupId int
    The ID of a GitLab group allowed to perform the relevant action.
    UserId int
    The ID of a GitLab user allowed to perform the relevant action.
    AccessLevel string
    Access level allowed to create protected tags.
    AccessLevelDescription string
    Readable description of access level.
    Id int
    The ID of the create access level.
    GroupId int
    The ID of a GitLab group allowed to perform the relevant action.
    UserId int
    The ID of a GitLab user allowed to perform the relevant action.
    accessLevel String
    Access level allowed to create protected tags.
    accessLevelDescription String
    Readable description of access level.
    id Integer
    The ID of the create access level.
    groupId Integer
    The ID of a GitLab group allowed to perform the relevant action.
    userId Integer
    The ID of a GitLab user allowed to perform the relevant action.
    accessLevel string
    Access level allowed to create protected tags.
    accessLevelDescription string
    Readable description of access level.
    id number
    The ID of the create access level.
    groupId number
    The ID of a GitLab group allowed to perform the relevant action.
    userId number
    The ID of a GitLab user allowed to perform the relevant action.
    access_level str
    Access level allowed to create protected tags.
    access_level_description str
    Readable description of access level.
    id int
    The ID of the create access level.
    group_id int
    The ID of a GitLab group allowed to perform the relevant action.
    user_id int
    The ID of a GitLab user allowed to perform the relevant action.
    accessLevel String
    Access level allowed to create protected tags.
    accessLevelDescription String
    Readable description of access level.
    id Number
    The ID of the create access level.
    groupId Number
    The ID of a GitLab group allowed to perform the relevant action.
    userId Number
    The ID of a GitLab user allowed to perform the relevant action.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi