| layout | page_title | description |
|---|---|---|
azuredevops |
AzureDevops: azuredevops_feed_permission |
Manages creation of the Feed Permission within Azure DevOps organization. |
Manages creation of the Feed Permission within Azure DevOps organization.
resource "azuredevops_project" "example" {
name = "Example Project"
}
resource "azuredevops_group" "example" {
scope = azuredevops_project.example.id
display_name = "Example group"
description = "Example description"
}
resource "azuredevops_feed" "example" {
name = "examplefeed"
}
resource "azuredevops_feed_permission" "permission" {
feed_id = azuredevops_feed.example.id
role = "reader"
identity_descriptor = azuredevops_group.example.descriptor
}The following arguments are supported:
-
feed_id- (Required) The ID of the Feed. -
identity_descriptor- (Required) The Descriptor of identity you want to assign a role. -
role- (Required) The role to be assigned. Possible values are:reader,contributor,collaborator,administrator
-
project_id- (Optional) The ID of the Project Feed is created in. If not specified, feed will be created at the organization level. -
display_name- (Optional) The display name of the assignment
The following attributes are exported:
feed_id- The ID of the Feed.identity_descriptor- The Descriptor of the identity.identity_id- The ID of the identity.role- The assigned roleproject_id- The ID of the Project Feed is created in (if one exists).display_name- The display name of the assignment (if one exists).
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 10 minutes) Used when creating the Feed Permission.read- (Defaults to 5 minute) Used when retrieving the Feed Permission.update- (Defaults to 10 minutes) Used when updating the Feed Permission.delete- (Defaults to 10 minutes) Used when deleting the Feed Permission.
Azure DevOps Feed Permission can be imported using the Project ID/Feed ID/Identity Descriptor or Feed ID/Identity Descriptor e.g.:
terraform import azuredevops_feed_permission.permission 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxor
terraform import azuredevops_feed_permission.permission 00000000-0000-0000-0000-000000000000/vssgp.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx