Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 3.25 KB

serviceendpoint_jfrog_platform_v2.html.markdown

File metadata and controls

102 lines (77 loc) · 3.25 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_jfrog_platform_v2
Manages a JFrog Platform V2 server endpoint within an Azure DevOps organization.

azuredevops_serviceendpoint_jfrog_platform_v2

Manages a JFrog Platform V2 server 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_platform_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_platform_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"
  }
}

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) 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.

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

Import

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

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