Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.46 KB

resource_authorization.html.markdown

File metadata and controls

44 lines (32 loc) · 1.46 KB

azuredevops_resource_authorization

Manages authorization of resources, e.g. for access in build pipelines.

Currently supported resources: service endpoint (aka service connection, endpoint).

Example Usage

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
}

Argument Reference

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.

Attributes Reference

The following attributes are exported:

n/a

Relevant Links