Skip to content

Latest commit

 

History

History
105 lines (73 loc) · 3.6 KB

File metadata and controls

105 lines (73 loc) · 3.6 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_checkmarx_one
Manages a Checkmarx One service endpoint within Azure DevOps organization.

azuredevops_serviceendpoint_checkmarx_one

Manages a Checkmarx One service endpoint within Azure DevOps. Using this service endpoint requires you to install: Checkmarx AST

Example Usage

Authorize with API Key

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

resource "azuredevops_serviceendpoint_checkmarx_one" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example Checkmarx One"
  server_url            = "https://server.com"
  api_key               = "apikey"
}

Authorize with Client ID and Secret

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

resource "azuredevops_serviceendpoint_checkmarx_one" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example Checkmarx One"
  server_url            = "https://server.com"
  client_id             = "clientid"
  client_secret         = "secret"
  authorization_url     = "https://authurl.com"
}

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 Server URL of the Checkmarx One Service.


  • authorization_url - (Optional) The URL of Checkmarx Authorization. Used when using client_id and client_secret authorization.

  • api_key - (Optional) The account of the Checkmarx One. Conflict with client_id and client_secret.

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

  • client_id - (Optional) The Client ID of the Checkmarx One. Conflict with api_key

  • client_secret - (Optional) The Client Secret of the Checkmarx One. Conflict with api_key

~> Note At least one of api_key and client_id, client_secret must be set

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 Checkmarx One Service.
  • read - (Defaults to 1 minute) Used when retrieving the Checkmarx One Service.
  • update - (Defaults to 2 minutes) Used when updating the Checkmarx One Service.
  • delete - (Defaults to 2 minutes) Used when deleting the Checkmarx One Service.

Import

Azure DevOps Service Endpoint Check Marx One can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

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