Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.84 KB

serviceendpoint_npm.html.markdown

File metadata and controls

61 lines (44 loc) · 1.84 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_npm
Manages a npm server endpoint within Azure DevOps organization.

azuredevops_serviceendpoint_npm

Manages a npm service endpoint within Azure DevOps.

Example Usage

resource "azuredevops_project" "project" {
  name               = "Sample Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
}

resource "azuredevops_serviceendpoint_npm" "serviceendpoint" {

  project_id            = azuredevops_project.project.id
  service_endpoint_name = "Sample npm"
  url                   = "https://registry.npmjs.org"
  access_token          = "00000000-0000-0000-0000-000000000000"
  description           = "Managed by Terraform"
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The project ID or project name.
  • service_endpoint_name - (Required) The Service Endpoint name.
  • url - (Required) URL of the npm registry to connect with.
  • access_token - (Required) The access token for npm registry.
  • description - (Optional) The Service Endpoint description.

Attributes Reference

The following attributes are exported:

  • id - The ID of the service endpoint.
  • project_id - The project ID or project name.
  • service_endpoint_name - The Service Endpoint name.

Relevant Links

Import

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

$ terraform import azuredevops_serviceendpoint_npm.serviceendpoint 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000