1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectProtectedTag
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.getProjectProtectedTag

Explore with Pulumi AI

GitLab v8.10.0 published on Friday, Mar 21, 2025 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>
Copy
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]
Copy
func GetProjectProtectedTag(ctx *Context, args *GetProjectProtectedTagArgs, opts ...InvokeOption) (*GetProjectProtectedTagResult, error)
func GetProjectProtectedTagOutput(ctx *Context, args *GetProjectProtectedTagOutputArgs, opts ...InvokeOption) GetProjectProtectedTagResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProjectProtectedTagResult> getProjectProtectedTag(GetProjectProtectedTagArgs args, InvokeOptions options)
public static Output<GetProjectProtectedTagResult> getProjectProtectedTag(GetProjectProtectedTagArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gitlab:index/getProjectProtectedTag:getProjectProtectedTag
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Project This property is required. string
The integer or path with namespace that uniquely identifies the project.
Tag This property is required. string
The name of the protected tag.
Project This property is required. string
The integer or path with namespace that uniquely identifies the project.
Tag This property is required. string
The name of the protected tag.
project This property is required. String
The integer or path with namespace that uniquely identifies the project.
tag This property is required. String
The name of the protected tag.
project This property is required. string
The integer or path with namespace that uniquely identifies the project.
tag This property is required. string
The name of the protected tag.
project This property is required. str
The integer or path with namespace that uniquely identifies the project.
tag This property is required. str
The name of the protected tag.
project This property is required. String
The integer or path with namespace that uniquely identifies the project.
tag This property is required. 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 This property is required. string
Access level allowed to create protected tags.
AccessLevelDescription This property is required. string
Readable description of access level.
Id This property is required. 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 This property is required. string
Access level allowed to create protected tags.
AccessLevelDescription This property is required. string
Readable description of access level.
Id This property is required. 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 This property is required. String
Access level allowed to create protected tags.
accessLevelDescription This property is required. String
Readable description of access level.
id This property is required. 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 This property is required. string
Access level allowed to create protected tags.
accessLevelDescription This property is required. string
Readable description of access level.
id This property is required. 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 This property is required. str
Access level allowed to create protected tags.
access_level_description This property is required. str
Readable description of access level.
id This property is required. 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 This property is required. String
Access level allowed to create protected tags.
accessLevelDescription This property is required. String
Readable description of access level.
id This property is required. 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 v8.10.0 published on Friday, Mar 21, 2025 by Pulumi