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:
project_id
- (Required) The project ID or project name. Type: string.resource_id
- (Required) The ID of the resource to authorize. Type: string.definition_id
- (Optional) The ID of the build definition to authorize. Type: string.authorized
- (Required) Set to true to allow public access in the project. Type: boolean.type
- (Optional) The type of the resource to authorize. Type: string. Valid values: endpoint
, queue
, variablegroup
. Default value: endpoint
.No attributes are exported