Skip to content

Latest commit

 

History

History
80 lines (55 loc) · 2.83 KB

serviceendpoint_generic.html.markdown

File metadata and controls

80 lines (55 loc) · 2.83 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_generic
Manages a generic service endpoint within Azure DevOps, which can be used to authenticate to any external server using basic authentication via a username and password.

azuredevops_serviceendpoint_generic

Manages a generic service endpoint within Azure DevOps, which can be used to authenticate to any external server using basic authentication via a username and password.

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_generic" "example" {
  project_id            = azuredevops_project.example.id
  server_url            = "https://some-server.example.com"
  username              = "username"
  password              = "password"
  service_endpoint_name = "Example Generic"
  description           = "Managed by Terraform"
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The ID of the project.

  • service_endpoint_name - (Required) The service endpoint name.

  • server_url - (Required) The URL of the server associated with the service endpoint.


  • username - (Optional) The username used to authenticate to the server url using basic authentication.

  • password - (Optional) The password or token key used to authenticate to the server url using basic authentication.

  • description - (Optional) The Service Endpoint description. Defaults to Managed by Terraform.

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 name of the service endpoint.

Relevant Links

Timeouts

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

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

Import

Azure DevOps Generic Service Endpoint can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

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