Skip to content

Latest commit

 

History

History
118 lines (84 loc) · 3.92 KB

serviceendpoint_jfrog_artifactory_v2.html.markdown

File metadata and controls

118 lines (84 loc) · 3.92 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_jfrog_artifactory_v2
Manages a JFrog Artifactory V2 service endpoint within an Azure DevOps organization.

azuredevops_serviceendpoint_jfrog_artifactory_v2

Manages a JFrog Artifactory V2 service endpoint within an Azure DevOps organization.

~> Note: Using this service endpoint requires you to first install JFrog Extension.

Example Usage

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_jfrog_artifactory_v2" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example JFrog Artifactory V2"
  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_artifactory_v2" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example JFrog Artifactory V2"
  description           = "Managed by Terraform"
  url                   = "https://artifactory.my.com"
  authentication_basic {
    username = "username"
    password = "password"
  }
}

Argument Reference

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.

    ~> NOTE: URL should not end in a slash character.


  • authentication_token - (Optional) An authentication_token block as documented below.

  • authentication_basic - (Optional) An authentication_basic block as documented below.

  • description - (Optional) The Service Endpoint description.


An authentication_token block supports the following:

  • token - (Required) Authentication Token generated through Artifactory.

An authentication_basic block supports the following:

  • username - (Required) The Username of the Artifactory.

  • password - (Required) The Password of the Artifactory.

Attributes Reference

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.

Relevant Links

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 2 minutes) Used when creating the JFrog Artifactory V2 Service Endpoint.
  • read - (Defaults to 1 minute) Used when retrieving the JFrog Artifactory V2 Service Endpoint.
  • update - (Defaults to 2 minutes) Used when updating the JFrog Artifactory V2 Service Endpoint.
  • delete - (Defaults to 2 minutes) Used when deleting the JFrog Artifactory V2 Service Endpoint.

Import

Azure DevOps JFrog Artifactory V2 Service Endpoint can be imported using the projectID/serviceEndpointID, e.g.

terraform import azuredevops_serviceendpoint_jfrog_artifactory_v2.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000