layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_serviceendpoint_nuget |
Manages a NuGet service endpoint within Azure DevOps organization. |
Manages a NuGet service endpoint within Azure DevOps.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
resource "azuredevops_serviceendpoint_nuget" "example" {
project_id = azuredevops_project.example.id
api_key = "apikey"
service_endpoint_name = "Example NuGet"
description = "Managed by Terraform"
}
The following arguments are supported:
project_id
- (Required) The ID of the project.service_endpoint_name
- (Required) The Service Endpoint name.feed_url
- (Required) The URL for the feed. This will generally end withindex.json
.
api_key
- (Optional) The API Key used to connect to the endpoint.personal_access_token
- (Optional) The Personal access token used to connect to the endpoint. Personal access tokens are applicable only for NuGet feeds hosted on other Azure DevOps Services organizations or Azure DevOps Server 2019 (or later).username
- (Optional) The account username used to connect to the endpoint.password
- (Optional) The account password used to connect to the endpoint
~> Note Only one of api_key
or personal_access_token
or username
, password
can be set at the same time.
description
- (Optional) The Service Endpoint description. Defaults toManaged by Terraform
.
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 NuGet can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID
terraform import azuredevops_serviceendpoint_nuget.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000