layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_resource_authorization |
Manages authorization of resources within Azure DevOps organization. |
Manages authorization of resources, e.g. for access in build pipelines.
Currently supported resources: service endpoint (aka service connection, endpoint).
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_bitbucket" "example" {
project_id = azuredevops_project.example.id
username = "username"
password = "password"
service_endpoint_name = "example-bitbucket"
description = "Managed by Terraform"
}
resource "azuredevops_resource_authorization" "example" {
project_id = azuredevops_project.example.id
resource_id = azuredevops_serviceendpoint_bitbucket.example.id
authorized = true
}
The following arguments are supported:
-
authorized
- (Required) Set to true to allow public access in the project. -
project_id
- (Required) The project ID or project name. -
resource_id
- (Required) The ID of the resource to authorize.
-
definition_id
- (Optional) The ID of the build definition to authorize. -
type
- (Optional) The type of the resource to authorize. Possible values:endpoint
,queue
,variablegroup
. Defaults to value:endpoint
.
No attributes are exported