Manages an JFrog XRay V2 server endpoint within an Azure DevOps organization.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_jfrog_xray_v2" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Artifactory"
description = "Managed by Terraform"
url = "https://artifactory.my.com"
authentication_token {
token = "0000000000000000000000000000000000000000"
}
}
Alternatively a username and password may be used.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_jfrog_xray_v2" "example" {
project_id = azuredevops_project.example.id
service_endpoint_name = "Example Artifactory"
description = "Managed by Terraform"
url = "https://artifactory.my.com"
authentication_basic {
username = "username"
password = "password"
}
}
The following arguments are supported:
project_id
- (Required) The ID of the project.service_endpoint_name
- (Required) The Service Endpoint name.url
- (Required) URL of the Artifactory server to connect with.authentication_token
- (Optional) A authentication_token
block as documented below.authentication_basic
- (Optional) A authentication_basic
block as documented below.description
- (Optional) The Service Endpoint description.A authentication_token
block supports the following:
token
- Authentication Token generated through Artifactory.A authentication_basic
block supports the following:
username
- Artifactory Username.password
- Artifactory Password.The following attributes are exported:
id
- The ID of the service endpoint.project_id
- The ID of the project.service_endpoint_name
- The Service Endpoint name.Azure DevOps Service Endpoint JFrog XRay V2 can be imported using the projectID/serviceEndpointID, e.g.
terraform import azuredevops_serviceendpoint_jfrog_xray_v2.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000