azuredevops.WorkItemQueryPermissions
Explore with Pulumi AI
Manages permissions for Work Item Queries.
Note Permissions can be assigned to group principals and not to single user principals.
Permission levels
Permission for Work Item Queries within Azure DevOps can be applied on two different levels.
Those levels are reflected by specifying (or omitting) values for the arguments project_id
and path
.
Project level
Permissions for all Work Item Queries inside a project (existing or newly created ones) are specified, if only the argument project_id
has a value.
Example usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {
name: "Example Project",
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Terraform",
});
const example-readers = azuredevops.getGroupOutput({
projectId: example.id,
name: "Readers",
});
const project_wiq_root_permissions = new azuredevops.WorkItemQueryPermissions("project-wiq-root-permissions", {
projectId: example.id,
principal: example_readers.apply(example_readers => example_readers.id),
permissions: {
CreateRepository: "Deny",
DeleteRepository: "Deny",
RenameRepository: "NotSet",
},
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example",
name="Example Project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
example_readers = azuredevops.get_group_output(project_id=example.id,
name="Readers")
project_wiq_root_permissions = azuredevops.WorkItemQueryPermissions("project-wiq-root-permissions",
project_id=example.id,
principal=example_readers.id,
permissions={
"CreateRepository": "Deny",
"DeleteRepository": "Deny",
"RenameRepository": "NotSet",
})
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
Name: pulumi.String("Example Project"),
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Terraform"),
})
if err != nil {
return err
}
example_readers := azuredevops.LookupGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Readers"),
}, nil)
_, err = azuredevops.NewWorkItemQueryPermissions(ctx, "project-wiq-root-permissions", &azuredevops.WorkItemQueryPermissionsArgs{
ProjectId: example.ID(),
Principal: pulumi.String(example_readers.ApplyT(func(example_readers azuredevops.GetGroupResult) (*string, error) {
return &example_readers.Id, nil
}).(pulumi.StringPtrOutput)),
Permissions: pulumi.StringMap{
"CreateRepository": pulumi.String("Deny"),
"DeleteRepository": pulumi.String("Deny"),
"RenameRepository": pulumi.String("NotSet"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Project("example", new()
{
Name = "Example Project",
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Terraform",
});
var example_readers = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Readers",
});
var project_wiq_root_permissions = new AzureDevOps.WorkItemQueryPermissions("project-wiq-root-permissions", new()
{
ProjectId = example.Id,
Principal = example_readers.Apply(example_readers => example_readers.Apply(getGroupResult => getGroupResult.Id)),
Permissions =
{
{ "CreateRepository", "Deny" },
{ "DeleteRepository", "Deny" },
{ "RenameRepository", "NotSet" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetGroupArgs;
import com.pulumi.azuredevops.WorkItemQueryPermissions;
import com.pulumi.azuredevops.WorkItemQueryPermissionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Terraform")
.build());
final var example-readers = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Readers")
.build());
var project_wiq_root_permissions = new WorkItemQueryPermissions("project-wiq-root-permissions", WorkItemQueryPermissionsArgs.builder()
.projectId(example.id())
.principal(example_readers.applyValue(example_readers -> example_readers.id()))
.permissions(Map.ofEntries(
Map.entry("CreateRepository", "Deny"),
Map.entry("DeleteRepository", "Deny"),
Map.entry("RenameRepository", "NotSet")
))
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Terraform
project-wiq-root-permissions:
type: azuredevops:WorkItemQueryPermissions
properties:
projectId: ${example.id}
principal: ${["example-readers"].id}
permissions:
CreateRepository: Deny
DeleteRepository: Deny
RenameRepository: NotSet
variables:
example-readers:
fn::invoke:
Function: azuredevops:getGroup
Arguments:
projectId: ${example.id}
name: Readers
Shared Queries folder level
Permissions for a specific folder inside Shared Queries are specified if the arguments project_id
and path
are set.
Note To set permissions for the Shared Queries folder itself use
/
as path value
Example usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {
name: "Example Project",
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Terraform",
});
const example-readers = azuredevops.getGroupOutput({
projectId: example.id,
name: "Readers",
});
const example_permissions = new azuredevops.WorkItemQueryPermissions("example-permissions", {
projectId: example.id,
path: "/Team",
principal: example_readers.apply(example_readers => example_readers.id),
permissions: {
Contribute: "Allow",
Delete: "Deny",
Read: "NotSet",
},
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example",
name="Example Project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
example_readers = azuredevops.get_group_output(project_id=example.id,
name="Readers")
example_permissions = azuredevops.WorkItemQueryPermissions("example-permissions",
project_id=example.id,
path="/Team",
principal=example_readers.id,
permissions={
"Contribute": "Allow",
"Delete": "Deny",
"Read": "NotSet",
})
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
Name: pulumi.String("Example Project"),
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Terraform"),
})
if err != nil {
return err
}
example_readers := azuredevops.LookupGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Readers"),
}, nil)
_, err = azuredevops.NewWorkItemQueryPermissions(ctx, "example-permissions", &azuredevops.WorkItemQueryPermissionsArgs{
ProjectId: example.ID(),
Path: pulumi.String("/Team"),
Principal: pulumi.String(example_readers.ApplyT(func(example_readers azuredevops.GetGroupResult) (*string, error) {
return &example_readers.Id, nil
}).(pulumi.StringPtrOutput)),
Permissions: pulumi.StringMap{
"Contribute": pulumi.String("Allow"),
"Delete": pulumi.String("Deny"),
"Read": pulumi.String("NotSet"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Project("example", new()
{
Name = "Example Project",
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Terraform",
});
var example_readers = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Readers",
});
var example_permissions = new AzureDevOps.WorkItemQueryPermissions("example-permissions", new()
{
ProjectId = example.Id,
Path = "/Team",
Principal = example_readers.Apply(example_readers => example_readers.Apply(getGroupResult => getGroupResult.Id)),
Permissions =
{
{ "Contribute", "Allow" },
{ "Delete", "Deny" },
{ "Read", "NotSet" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetGroupArgs;
import com.pulumi.azuredevops.WorkItemQueryPermissions;
import com.pulumi.azuredevops.WorkItemQueryPermissionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Terraform")
.build());
final var example-readers = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Readers")
.build());
var example_permissions = new WorkItemQueryPermissions("example-permissions", WorkItemQueryPermissionsArgs.builder()
.projectId(example.id())
.path("/Team")
.principal(example_readers.applyValue(example_readers -> example_readers.id()))
.permissions(Map.ofEntries(
Map.entry("Contribute", "Allow"),
Map.entry("Delete", "Deny"),
Map.entry("Read", "NotSet")
))
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Terraform
example-permissions:
type: azuredevops:WorkItemQueryPermissions
properties:
projectId: ${example.id}
path: /Team
principal: ${["example-readers"].id}
permissions:
Contribute: Allow
Delete: Deny
Read: NotSet
variables:
example-readers:
fn::invoke:
Function: azuredevops:getGroup
Arguments:
projectId: ${example.id}
name: Readers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {
name: "Example Project",
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Terraform",
});
const example-readers = azuredevops.getGroupOutput({
projectId: example.id,
name: "Readers",
});
const example-contributors = azuredevops.getGroupOutput({
projectId: example.id,
name: "Contributors",
});
const example_project_permissions = new azuredevops.WorkItemQueryPermissions("example-project-permissions", {
projectId: example.id,
principal: example_readers.apply(example_readers => example_readers.id),
permissions: {
Read: "Allow",
Delete: "Deny",
Contribute: "Deny",
ManagePermissions: "Deny",
},
});
const example_sharedqueries_permissions = new azuredevops.WorkItemQueryPermissions("example-sharedqueries-permissions", {
projectId: example.id,
path: "/",
principal: example_contributors.apply(example_contributors => example_contributors.id),
permissions: {
Read: "Allow",
Delete: "Deny",
},
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example",
name="Example Project",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
example_readers = azuredevops.get_group_output(project_id=example.id,
name="Readers")
example_contributors = azuredevops.get_group_output(project_id=example.id,
name="Contributors")
example_project_permissions = azuredevops.WorkItemQueryPermissions("example-project-permissions",
project_id=example.id,
principal=example_readers.id,
permissions={
"Read": "Allow",
"Delete": "Deny",
"Contribute": "Deny",
"ManagePermissions": "Deny",
})
example_sharedqueries_permissions = azuredevops.WorkItemQueryPermissions("example-sharedqueries-permissions",
project_id=example.id,
path="/",
principal=example_contributors.id,
permissions={
"Read": "Allow",
"Delete": "Deny",
})
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
Name: pulumi.String("Example Project"),
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Terraform"),
})
if err != nil {
return err
}
example_readers := azuredevops.LookupGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Readers"),
}, nil)
example_contributors := azuredevops.LookupGroupOutput(ctx, azuredevops.GetGroupOutputArgs{
ProjectId: example.ID(),
Name: pulumi.String("Contributors"),
}, nil)
_, err = azuredevops.NewWorkItemQueryPermissions(ctx, "example-project-permissions", &azuredevops.WorkItemQueryPermissionsArgs{
ProjectId: example.ID(),
Principal: pulumi.String(example_readers.ApplyT(func(example_readers azuredevops.GetGroupResult) (*string, error) {
return &example_readers.Id, nil
}).(pulumi.StringPtrOutput)),
Permissions: pulumi.StringMap{
"Read": pulumi.String("Allow"),
"Delete": pulumi.String("Deny"),
"Contribute": pulumi.String("Deny"),
"ManagePermissions": pulumi.String("Deny"),
},
})
if err != nil {
return err
}
_, err = azuredevops.NewWorkItemQueryPermissions(ctx, "example-sharedqueries-permissions", &azuredevops.WorkItemQueryPermissionsArgs{
ProjectId: example.ID(),
Path: pulumi.String("/"),
Principal: pulumi.String(example_contributors.ApplyT(func(example_contributors azuredevops.GetGroupResult) (*string, error) {
return &example_contributors.Id, nil
}).(pulumi.StringPtrOutput)),
Permissions: pulumi.StringMap{
"Read": pulumi.String("Allow"),
"Delete": pulumi.String("Deny"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = new AzureDevOps.Project("example", new()
{
Name = "Example Project",
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Terraform",
});
var example_readers = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Readers",
});
var example_contributors = AzureDevOps.GetGroup.Invoke(new()
{
ProjectId = example.Id,
Name = "Contributors",
});
var example_project_permissions = new AzureDevOps.WorkItemQueryPermissions("example-project-permissions", new()
{
ProjectId = example.Id,
Principal = example_readers.Apply(example_readers => example_readers.Apply(getGroupResult => getGroupResult.Id)),
Permissions =
{
{ "Read", "Allow" },
{ "Delete", "Deny" },
{ "Contribute", "Deny" },
{ "ManagePermissions", "Deny" },
},
});
var example_sharedqueries_permissions = new AzureDevOps.WorkItemQueryPermissions("example-sharedqueries-permissions", new()
{
ProjectId = example.Id,
Path = "/",
Principal = example_contributors.Apply(example_contributors => example_contributors.Apply(getGroupResult => getGroupResult.Id)),
Permissions =
{
{ "Read", "Allow" },
{ "Delete", "Deny" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetGroupArgs;
import com.pulumi.azuredevops.WorkItemQueryPermissions;
import com.pulumi.azuredevops.WorkItemQueryPermissionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Terraform")
.build());
final var example-readers = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Readers")
.build());
final var example-contributors = AzuredevopsFunctions.getGroup(GetGroupArgs.builder()
.projectId(example.id())
.name("Contributors")
.build());
var example_project_permissions = new WorkItemQueryPermissions("example-project-permissions", WorkItemQueryPermissionsArgs.builder()
.projectId(example.id())
.principal(example_readers.applyValue(example_readers -> example_readers.id()))
.permissions(Map.ofEntries(
Map.entry("Read", "Allow"),
Map.entry("Delete", "Deny"),
Map.entry("Contribute", "Deny"),
Map.entry("ManagePermissions", "Deny")
))
.build());
var example_sharedqueries_permissions = new WorkItemQueryPermissions("example-sharedqueries-permissions", WorkItemQueryPermissionsArgs.builder()
.projectId(example.id())
.path("/")
.principal(example_contributors.applyValue(example_contributors -> example_contributors.id()))
.permissions(Map.ofEntries(
Map.entry("Read", "Allow"),
Map.entry("Delete", "Deny")
))
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Terraform
example-project-permissions:
type: azuredevops:WorkItemQueryPermissions
properties:
projectId: ${example.id}
principal: ${["example-readers"].id}
permissions:
Read: Allow
Delete: Deny
Contribute: Deny
ManagePermissions: Deny
example-sharedqueries-permissions:
type: azuredevops:WorkItemQueryPermissions
properties:
projectId: ${example.id}
path: /
principal: ${["example-contributors"].id}
permissions:
Read: Allow
Delete: Deny
variables:
example-readers:
fn::invoke:
Function: azuredevops:getGroup
Arguments:
projectId: ${example.id}
name: Readers
example-contributors:
fn::invoke:
Function: azuredevops:getGroup
Arguments:
projectId: ${example.id}
name: Contributors
Relevant Links
PAT Permissions Required
- Project & Team: vso.security_manage - Grants the ability to read, write, and manage security permissions.
Create WorkItemQueryPermissions Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkItemQueryPermissions(name: string, args: WorkItemQueryPermissionsArgs, opts?: CustomResourceOptions);
@overload
def WorkItemQueryPermissions(resource_name: str,
args: WorkItemQueryPermissionsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkItemQueryPermissions(resource_name: str,
opts: Optional[ResourceOptions] = None,
permissions: Optional[Mapping[str, str]] = None,
principal: Optional[str] = None,
project_id: Optional[str] = None,
path: Optional[str] = None,
replace: Optional[bool] = None)
func NewWorkItemQueryPermissions(ctx *Context, name string, args WorkItemQueryPermissionsArgs, opts ...ResourceOption) (*WorkItemQueryPermissions, error)
public WorkItemQueryPermissions(string name, WorkItemQueryPermissionsArgs args, CustomResourceOptions? opts = null)
public WorkItemQueryPermissions(String name, WorkItemQueryPermissionsArgs args)
public WorkItemQueryPermissions(String name, WorkItemQueryPermissionsArgs args, CustomResourceOptions options)
type: azuredevops:WorkItemQueryPermissions
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 WorkItemQueryPermissionsArgs
- 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 WorkItemQueryPermissionsArgs
- 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 WorkItemQueryPermissionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkItemQueryPermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkItemQueryPermissionsArgs
- 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 workItemQueryPermissionsResource = new AzureDevOps.WorkItemQueryPermissions("workItemQueryPermissionsResource", new()
{
Permissions =
{
{ "string", "string" },
},
Principal = "string",
ProjectId = "string",
Path = "string",
Replace = false,
});
example, err := azuredevops.NewWorkItemQueryPermissions(ctx, "workItemQueryPermissionsResource", &azuredevops.WorkItemQueryPermissionsArgs{
Permissions: pulumi.StringMap{
"string": pulumi.String("string"),
},
Principal: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Path: pulumi.String("string"),
Replace: pulumi.Bool(false),
})
var workItemQueryPermissionsResource = new WorkItemQueryPermissions("workItemQueryPermissionsResource", WorkItemQueryPermissionsArgs.builder()
.permissions(Map.of("string", "string"))
.principal("string")
.projectId("string")
.path("string")
.replace(false)
.build());
work_item_query_permissions_resource = azuredevops.WorkItemQueryPermissions("workItemQueryPermissionsResource",
permissions={
"string": "string",
},
principal="string",
project_id="string",
path="string",
replace=False)
const workItemQueryPermissionsResource = new azuredevops.WorkItemQueryPermissions("workItemQueryPermissionsResource", {
permissions: {
string: "string",
},
principal: "string",
projectId: "string",
path: "string",
replace: false,
});
type: azuredevops:WorkItemQueryPermissions
properties:
path: string
permissions:
string: string
principal: string
projectId: string
replace: false
WorkItemQueryPermissions 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 WorkItemQueryPermissions resource accepts the following input properties:
- Permissions Dictionary<string, string>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- Principal string
- The group principal to assign the permissions.
- Project
Id string - The ID of the project to assign the permissions.
- Path string
- Path to a query or folder beneath
Shared Queries
- Replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- Permissions map[string]string
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- Principal string
- The group principal to assign the permissions.
- Project
Id string - The ID of the project to assign the permissions.
- Path string
- Path to a query or folder beneath
Shared Queries
- Replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- permissions Map<String,String>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal String
- The group principal to assign the permissions.
- project
Id String - The ID of the project to assign the permissions.
- path String
- Path to a query or folder beneath
Shared Queries
- replace Boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
- permissions {[key: string]: string}
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal string
- The group principal to assign the permissions.
- project
Id string - The ID of the project to assign the permissions.
- path string
- Path to a query or folder beneath
Shared Queries
- replace boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
- permissions Mapping[str, str]
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal str
- The group principal to assign the permissions.
- project_
id str - The ID of the project to assign the permissions.
- path str
- Path to a query or folder beneath
Shared Queries
- replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- permissions Map<String>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal String
- The group principal to assign the permissions.
- project
Id String - The ID of the project to assign the permissions.
- path String
- Path to a query or folder beneath
Shared Queries
- replace Boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkItemQueryPermissions resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WorkItemQueryPermissions Resource
Get an existing WorkItemQueryPermissions 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?: WorkItemQueryPermissionsState, opts?: CustomResourceOptions): WorkItemQueryPermissions
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
path: Optional[str] = None,
permissions: Optional[Mapping[str, str]] = None,
principal: Optional[str] = None,
project_id: Optional[str] = None,
replace: Optional[bool] = None) -> WorkItemQueryPermissions
func GetWorkItemQueryPermissions(ctx *Context, name string, id IDInput, state *WorkItemQueryPermissionsState, opts ...ResourceOption) (*WorkItemQueryPermissions, error)
public static WorkItemQueryPermissions Get(string name, Input<string> id, WorkItemQueryPermissionsState? state, CustomResourceOptions? opts = null)
public static WorkItemQueryPermissions get(String name, Output<String> id, WorkItemQueryPermissionsState 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.
- Path string
- Path to a query or folder beneath
Shared Queries
- Permissions Dictionary<string, string>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- Principal string
- The group principal to assign the permissions.
- Project
Id string - The ID of the project to assign the permissions.
- Replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- Path string
- Path to a query or folder beneath
Shared Queries
- Permissions map[string]string
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- Principal string
- The group principal to assign the permissions.
- Project
Id string - The ID of the project to assign the permissions.
- Replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- path String
- Path to a query or folder beneath
Shared Queries
- permissions Map<String,String>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal String
- The group principal to assign the permissions.
- project
Id String - The ID of the project to assign the permissions.
- replace Boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
- path string
- Path to a query or folder beneath
Shared Queries
- permissions {[key: string]: string}
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal string
- The group principal to assign the permissions.
- project
Id string - The ID of the project to assign the permissions.
- replace boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
- path str
- Path to a query or folder beneath
Shared Queries
- permissions Mapping[str, str]
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal str
- The group principal to assign the permissions.
- project_
id str - The ID of the project to assign the permissions.
- replace bool
- Replace (
true
) or merge (false
) the permissions. Default:true
- path String
- Path to a query or folder beneath
Shared Queries
- permissions Map<String>
the permissions to assign. The following permissions are available
| Permissions | Description | |--------------------------|------------------------------------| | Read | Read | | Contribute | Contribute | | Delete | Delete | | ManagePermissions | Manage Permissions |
- principal String
- The group principal to assign the permissions.
- project
Id String - The ID of the project to assign the permissions.
- replace Boolean
- Replace (
true
) or merge (false
) the permissions. Default:true
Import
The resource does not support import.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevops
Terraform Provider.