Manages authorization of resources, e.g. for access in build pipelines.
Currently supported resources: service endpoint (aka service connection, endpoint).
resource "azuredevops_project" "p" {
project_name = "Test Project"
}
resource "azuredevops_serviceendpoint_bitbucket" "bitbucket_account" {
project_id = azuredevops_project.p.id
username = "xxxx"
password = "xxxx"
service_endpoint_name = "test-bitbucket"
description = "test"
}
resource "azuredevops_resource_authorization" "auth" {
project_id = azuredevops_project.p.id
resource_id = azuredevops_serviceendpoint_bitbucket.bitbucket_account.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.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
. Default value:endpoint
.
The following attributes are exported:
n/a