Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration Variable Sets

Configuration Variable Sets Service handles CRUD for variable sets used by configuration products (Ansible playbooks and inventories). Independent of workspace/infrastructure variable sets.

List all variable sets on account level

get

List infrastructure and configuration variable sets together on account level.

Query parameters
provisionerstring · enumOptional

Only return sets usable with this provisioner. Terraform, OpenTofu and Terragrunt return infrastructure sets; Ansible returns configuration sets.

Example: ansiblePossible values:
search_termstring · max: 128Optional

Only return sets whose name or identifier contains this text, ignoring case.

Example: 89y
sortstring · enumOptional

Field to sort by.

Default: nameExample: updatedPossible values:
orderstring · enumOptional

Sort direction.

Default: ascExample: descPossible values:
limitinteger · int64 · min: 1 · max: 1000Optional

Limit is the number of records to return for a page.

Default: 30Example: 30
pageinteger · int64 · min: 1Optional

Page is the page number to return relative to the page 'limit'.

Default: 1Example: 1
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 8lf
Responses
200

OK response.

application/json
get/api/all-variable-sets
GET /api/all-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: 8lf
Accept: */*
[
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  },
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  }
]

Create a new Configuration Variable Set on account level

post

Create a new Configuration Variable Set on account level.

Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: b
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jePattern: ^[^/?#\s]+$
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
Responses
201

Created response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
post/api/configuration-variable-set
POST /api/configuration-variable-set HTTP/1.1
Host: localhost:80
Harness-Account: b
Content-Type: application/json
Accept: */*
Content-Length: 819

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Dicta magni possimus sit voluptatem inventore quaerat.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Nostrum pariatur provident sit.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Ut hic voluptatibus.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "identifier": "cwq",
  "name": "resource name",
  "type": "ansible",
  "variables": {
    "Aliquid eos suscipit.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by query identifier on account level

delete

Delete Configuration Variable Set on account level using identifier as a query parameter. Required when the identifier contains characters that are unsafe in URL paths (e.g. '/').

Query parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: gr
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: j4a
Responses
204

No Content response.

No content

delete/api/configuration-variable-set
DELETE /api/configuration-variable-set?identifier=gr HTTP/1.1
Host: localhost:80
Harness-Account: j4a
Accept: */*

No content

Get Configuration Variable Set attachments on account level

get

Get the Configuration Variable Sets attached to a playbook or inventory on account level, in priority order.

Path parameters
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: cPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 5i5
Responses
200

OK response.

application/json
get/api/configuration-variable-set-attachments/{entity_type}/{entity}
GET /api/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: 5i5
Accept: */*
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Replace Configuration Variable Set attachments on account level

put

Replace the Configuration Variable Sets attached to a playbook or inventory on account level. Array order is the priority order.

Path parameters
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: vcPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 3
Body
variable_setsstring[]Required

Configuration Variable Sets to attach, in priority order. Replaces whatever is currently attached.

Example: ["account.shared_vars","org.team_vars","playbook_vars"]
Responses
200

OK response.

application/json
put/api/configuration-variable-set-attachments/{entity_type}/{entity}
PUT /api/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: 3
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "variable_sets": [
    "account.shared_vars",
    "org.team_vars",
    "playbook_vars"
  ]
}
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Delete Configuration Variable Set attachments on account level

delete

Remove every Configuration Variable Set attachment from a deleted account level playbook or inventory.

Path parameters
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: bipPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: xf
Responses
204

No Content response.

No content

delete/api/configuration-variable-set-attachments/{entity_type}/{entity}
DELETE /api/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: xf
Accept: */*

No content

Get merged Configuration Variable Set variables on account level

get

Get the variables of every Configuration Variable Set attached to a playbook or inventory on account level, marking which entry wins each key.

Path parameters
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: inventoryPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: 2jPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: c
Responses
200

OK response.

application/json
get/api/configuration-variable-set-attachments/{entity_type}/{entity}/merged
GET /api/configuration-variable-set-attachments/{entity_type}/{entity}/merged HTTP/1.1
Host: localhost:80
Harness-Account: c
Accept: */*
{
  "environment_variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ],
  "variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ]
}

Get Configuration Variable Set by identifier on account level

get

Get Configuration Variable Set by identifier on account level.

Path parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 6a4
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 2
Responses
200

OK response.

application/json

Get-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: a
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: d3
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: ee
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: am1
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
get/api/configuration-variable-set/{identifier}
GET /api/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 2
Accept: */*
{
  "account": "v45",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Consequuntur reprehenderit qui et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Harum minima laboriosam velit accusantium.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ipsam harum consequuntur voluptatibus ut qui labore.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "z",
  "name": "resource name",
  "org": "1",
  "project": "1tj",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Amet voluptatum a impedit corporis.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Laboriosam voluptate natus.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Voluptas similique sunt sunt ut deleniti.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Update a Configuration Variable Set on account level

put

Update a Configuration Variable Set on account level.

Path parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 8bPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: y
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
Responses
200

OK response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
put/api/configuration-variable-set/{identifier}
PUT /api/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: y
Content-Type: application/json
Accept: */*
Content-Length: 478

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Aliquam exercitationem soluta deleniti asperiores.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "name": "resource name",
  "variables": {
    "Et vel odio quia est est aliquid.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by identifier on account level

delete

Delete Configuration Variable Set by identifier on account level.

Path parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 6jq
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: wur
Responses
204

No Content response.

No content

delete/api/configuration-variable-set/{identifier}
DELETE /api/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: wur
Accept: */*

No content

List Configuration Variable Set references on account level

get

List the playbooks and inventories a Configuration Variable Set on account level is attached to.

Path parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: e3h
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: u
Responses
200

OK response.

application/json
get/api/configuration-variable-set/{identifier}/references
GET /api/configuration-variable-set/{identifier}/references HTTP/1.1
Host: localhost:80
Harness-Account: u
Accept: */*
{
  "items": [
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    },
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    }
  ]
}

Get Configuration Variable Set list on account level

get

Get Configuration Variable Set list on account level.

Query parameters
typestring · enumOptional

Optional configuration product type to filter the list.

Example: ansiblePossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: h
Responses
200

OK response.

application/json
get/api/configuration-variable-sets
GET /api/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: h
Accept: */*
{
  "items": [
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    },
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    }
  ]
}

List all variable sets on org level

get

List infrastructure and configuration variable sets together on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: l8a
Query parameters
provisionerstring · enumOptional

Only return sets usable with this provisioner. Terraform, OpenTofu and Terragrunt return infrastructure sets; Ansible returns configuration sets.

Example: ansiblePossible values:
search_termstring · max: 128Optional

Only return sets whose name or identifier contains this text, ignoring case.

Example: ubg
sortstring · enumOptional

Field to sort by.

Default: nameExample: updatedPossible values:
orderstring · enumOptional

Sort direction.

Default: ascExample: descPossible values:
limitinteger · int64 · min: 1 · max: 1000Optional

Limit is the number of records to return for a page.

Default: 30Example: 30
pageinteger · int64 · min: 1Optional

Page is the page number to return relative to the page 'limit'.

Default: 1Example: 1
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 027
Responses
200

OK response.

application/json
get/api/orgs/{org}/all-variable-sets
GET /api/orgs/{org}/all-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: 027
Accept: */*
[
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  },
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  },
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  }
]

Create a new Configuration Variable Set on org level

post

Create a new Configuration Variable Set on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: d38
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: s
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 8Pattern: ^[^/?#\s]+$
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
Responses
201

Created response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
post/api/orgs/{org}/configuration-variable-set
POST /api/orgs/{org}/configuration-variable-set HTTP/1.1
Host: localhost:80
Harness-Account: s
Content-Type: application/json
Accept: */*
Content-Length: 1100

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "In quam quasi est a.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Iusto dolore qui eius.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Sunt ut non quisquam ut quasi nam.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "identifier": "r1h",
  "name": "resource name",
  "type": "ansible",
  "variables": {
    "Consequatur necessitatibus amet.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Rerum quod itaque.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Temporibus debitis.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by query identifier on org level

delete

Delete Configuration Variable Set on org level using identifier as a query parameter. Required when the identifier contains characters that are unsafe in URL paths (e.g. '/').

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: ju
Query parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: q02
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: j
Responses
204

No Content response.

No content

delete/api/orgs/{org}/configuration-variable-set
DELETE /api/orgs/{org}/configuration-variable-set?identifier=q02 HTTP/1.1
Host: localhost:80
Harness-Account: j
Accept: */*

No content

Get Configuration Variable Set attachments on org level

get

Get the Configuration Variable Sets attached to a playbook or inventory on org level, in priority order.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: wj
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: ietPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: wn
Responses
200

OK response.

application/json
get/api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity}
GET /api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: wn
Accept: */*
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Replace Configuration Variable Set attachments on org level

put

Replace the Configuration Variable Sets attached to a playbook or inventory on org level. Array order is the priority order.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: mw
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: ygPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: bxa
Body
variable_setsstring[]Required

Configuration Variable Sets to attach, in priority order. Replaces whatever is currently attached.

Example: ["account.shared_vars","org.team_vars","playbook_vars"]
Responses
200

OK response.

application/json
put/api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity}
PUT /api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: bxa
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "variable_sets": [
    "account.shared_vars",
    "org.team_vars",
    "playbook_vars"
  ]
}
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Delete Configuration Variable Set attachments on org level

delete

Remove every Configuration Variable Set attachment from a deleted org level playbook or inventory.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 80
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: 0ukPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
Responses
204

No Content response.

No content

delete/api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity}
DELETE /api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: k
Accept: */*

No content

Get merged Configuration Variable Set variables on org level

get

Get the variables of every Configuration Variable Set attached to a playbook or inventory on org level, marking which entry wins each key.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 5t
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: cPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 2
Responses
200

OK response.

application/json
get/api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity}/merged
GET /api/orgs/{org}/configuration-variable-set-attachments/{entity_type}/{entity}/merged HTTP/1.1
Host: localhost:80
Harness-Account: 2
Accept: */*
{
  "environment_variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ],
  "variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ]
}

Get Configuration Variable Set by identifier on org level

get

Get Configuration Variable Set by identifier on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: t
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 7ca
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: n
Responses
200

OK response.

application/json

Get-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: a
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: d3
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: ee
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: am1
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
get/api/orgs/{org}/configuration-variable-set/{identifier}
GET /api/orgs/{org}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: n
Accept: */*
{
  "account": "v45",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Consequuntur reprehenderit qui et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Harum minima laboriosam velit accusantium.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ipsam harum consequuntur voluptatibus ut qui labore.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "z",
  "name": "resource name",
  "org": "1",
  "project": "1tj",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Amet voluptatum a impedit corporis.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Laboriosam voluptate natus.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Voluptas similique sunt sunt ut deleniti.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Update a Configuration Variable Set on org level

put

Update a Configuration Variable Set on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: bj
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: ttdPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: n
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
Responses
200

OK response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
put/api/orgs/{org}/configuration-variable-set/{identifier}
PUT /api/orgs/{org}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: n
Content-Type: application/json
Accept: */*
Content-Length: 586

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Dolor ut.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Harum sequi ut.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "name": "resource name",
  "variables": {
    "Dolor nesciunt optio saepe sapiente.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by identifier on org level

delete

Delete Configuration Variable Set by identifier on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 2y0
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 3z
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: t2b
Responses
204

No Content response.

No content

delete/api/orgs/{org}/configuration-variable-set/{identifier}
DELETE /api/orgs/{org}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: t2b
Accept: */*

No content

List Configuration Variable Set references on org level

get

List the playbooks and inventories a Configuration Variable Set on org level is attached to.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: hse
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 2zb
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: o2a
Responses
200

OK response.

application/json
get/api/orgs/{org}/configuration-variable-set/{identifier}/references
GET /api/orgs/{org}/configuration-variable-set/{identifier}/references HTTP/1.1
Host: localhost:80
Harness-Account: o2a
Accept: */*
{
  "items": [
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    },
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    }
  ]
}

Get Configuration Variable Set list on org level

get

Get Configuration Variable Set list on org level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 9b
Query parameters
typestring · enumOptional

Optional configuration product type to filter the list.

Example: ansiblePossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: d
Responses
200

OK response.

application/json
get/api/orgs/{org}/configuration-variable-sets
GET /api/orgs/{org}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: d
Accept: */*
{
  "items": [
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    },
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    }
  ]
}

List all variable sets on project level

get

List infrastructure and configuration variable sets together on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: g3h
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: h
Query parameters
provisionerstring · enumOptional

Only return sets usable with this provisioner. Terraform, OpenTofu and Terragrunt return infrastructure sets; Ansible returns configuration sets.

Example: ansiblePossible values:
search_termstring · max: 128Optional

Only return sets whose name or identifier contains this text, ignoring case.

Example: a9b
sortstring · enumOptional

Field to sort by.

Default: nameExample: updatedPossible values:
orderstring · enumOptional

Sort direction.

Default: ascExample: descPossible values:
limitinteger · int64 · min: 1 · max: 1000Optional

Limit is the number of records to return for a page.

Default: 30Example: 30
pageinteger · int64 · min: 1Optional

Page is the page number to return relative to the page 'limit'.

Default: 1Example: 1
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 0x
Responses
200

OK response.

application/json
get/api/orgs/{org}/projects/{project}/all-variable-sets
GET /api/orgs/{org}/projects/{project}/all-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: 0x
Accept: */*
[
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  },
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  },
  {
    "account": "Molestiae autem consequatur incidunt.",
    "connectors": [
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      },
      {
        "connector_ref": "c",
        "created": 1627590400,
        "id": 6521518267398136000,
        "type": "azure",
        "updated": 1627686800
      }
    ],
    "created": 1627590400,
    "env_vars_count": 8420052224415838000,
    "identifier": "Et quo eius distinctio.",
    "kind": "infrastructure",
    "name": "Sed laudantium.",
    "org": "Voluptatem ut officia consectetur et.",
    "project": "Rerum quibusdam libero dolores.",
    "provisioners": [
      "terraform",
      "ansible",
      "terragrunt"
    ],
    "tf_vars_count": 8509616795178340000,
    "updated": 1627686800,
    "var_files_count": 1964483740858999000,
    "vars_count": 6583728915241096000
  }
]

Create a new Configuration Variable Set on project level

post

Create a new Configuration Variable Set on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: kp
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: ons
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: g1s
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: vgPattern: ^[^/?#\s]+$
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
Responses
201

Created response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
post/api/orgs/{org}/projects/{project}/configuration-variable-set
POST /api/orgs/{org}/projects/{project}/configuration-variable-set HTTP/1.1
Host: localhost:80
Harness-Account: g1s
Content-Type: application/json
Accept: */*
Content-Length: 657

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Adipisci consequuntur et architecto sunt commodi placeat.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Est quia beatae est quod.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "identifier": "c",
  "name": "resource name",
  "type": "ansible",
  "variables": {
    "Cumque tempora.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by query identifier on project level

delete

Delete Configuration Variable Set on project level using identifier as a query parameter. Required when the identifier contains characters that are unsafe in URL paths (e.g. '/').

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 8d
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: deb
Query parameters
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: c
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: v9
Responses
204

No Content response.

No content

delete/api/orgs/{org}/projects/{project}/configuration-variable-set
DELETE /api/orgs/{org}/projects/{project}/configuration-variable-set?identifier=c HTTP/1.1
Host: localhost:80
Harness-Account: v9
Accept: */*

No content

Get Configuration Variable Set attachments on project level

get

Get the Configuration Variable Sets attached to a playbook or inventory on project level, in priority order.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 04
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: zjc
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: inventoryPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: o4zPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: s
Responses
200

OK response.

application/json
get/api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity}
GET /api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: s
Accept: */*
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Replace Configuration Variable Set attachments on project level

put

Replace the Configuration Variable Sets attached to a playbook or inventory on project level. Array order is the priority order.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: sf
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: 2jl
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: l42Pattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: g
Body
variable_setsstring[]Required

Configuration Variable Sets to attach, in priority order. Replaces whatever is currently attached.

Example: ["account.shared_vars","org.team_vars","playbook_vars"]
Responses
200

OK response.

application/json
put/api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity}
PUT /api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: g
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "variable_sets": [
    "account.shared_vars",
    "org.team_vars",
    "playbook_vars"
  ]
}
{
  "items": [
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    },
    {
      "account": "Consequatur occaecati sapiente est.",
      "identifier": "Quia est reiciendis.",
      "name": "Id velit unde et.",
      "org": "Aut dolorum quis illum.",
      "priority": 2540692501657081300,
      "project": "Saepe quaerat modi.",
      "variable_set": "account.shared_vars"
    }
  ]
}

Delete Configuration Variable Set attachments on project level

delete

Remove every Configuration Variable Set attachment from a deleted project level playbook or inventory.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: c
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: g
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: playbookPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: wxiPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 5d8
Responses
204

No Content response.

No content

delete/api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity}
DELETE /api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity} HTTP/1.1
Host: localhost:80
Harness-Account: 5d8
Accept: */*

No content

Get merged Configuration Variable Set variables on project level

get

Get the variables of every Configuration Variable Set attached to a playbook or inventory on project level, marking which entry wins each key.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: o
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: ts6
entity_typestring · enumRequired

Kind of entity the Configuration Variable Sets are attached to.

Example: inventoryPossible values:
entitystring · min: 1 · max: 128Required

Identifier of the playbook or inventory the Configuration Variable Sets are attached to.

Example: f1Pattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 9
Responses
200

OK response.

application/json
get/api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity}/merged
GET /api/orgs/{org}/projects/{project}/configuration-variable-set-attachments/{entity_type}/{entity}/merged HTTP/1.1
Host: localhost:80
Harness-Account: 9
Accept: */*
{
  "environment_variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ],
  "variables": [
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    },
    {
      "associatedVariableSet": "account.shared_vars",
      "inUse": true,
      "key": "Labore explicabo repellendus maiores ut error.",
      "priority": 6248366503888566000,
      "value": "Nulla ipsa a id.",
      "value_type": "Perspiciatis quis id dolor aut aut."
    }
  ]
}

Get Configuration Variable Set by identifier on project level

get

Get Configuration Variable Set by identifier on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: s5z
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: 1m
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: w15
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: vcq
Responses
200

OK response.

application/json

Get-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: a
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: d3
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: ee
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: am1
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
get/api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier}
GET /api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: vcq
Accept: */*
{
  "account": "v45",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Consequuntur reprehenderit qui et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Harum minima laboriosam velit accusantium.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ipsam harum consequuntur voluptatibus ut qui labore.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "z",
  "name": "resource name",
  "org": "1",
  "project": "1tj",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Amet voluptatum a impedit corporis.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Laboriosam voluptate natus.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Voluptas similique sunt sunt ut deleniti.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Update a Configuration Variable Set on project level

put

Update a Configuration Variable Set on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: epw
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: j
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 0mPattern: ^[^/?#\s]+$
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: g
Body
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
Responses
200

OK response.

application/json

Create-Configuration-Variable-Set-Account-LevelResponseBody result type (default view)

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: k
createdinteger · int64Optional

Timestamp when the configuration variable set was created.

Example: 1627590400
descriptionstringOptional

Description provides long-form text about the resource.

Example: this is a more detailed explanation of the resource.
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: jg
namestring · min: 1 · max: 128Required

Name is the human readable name for the resource.

Example: resource name
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: i
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: dwj
typestring · enumOptional

Configuration product this set belongs to.

Default: ansibleExample: ansiblePossible values:
updatedinteger · int64Optional

Timestamp when the configuration variable set was last updated.

Example: 1627686800
put/api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier}
PUT /api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: g
Content-Type: application/json
Accept: */*
Content-Length: 608

{
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Assumenda non voluptas vel vitae aliquam.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    },
    "Eum nesciunt.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  },
  "name": "resource name",
  "variables": {
    "Reiciendis voluptatem dolor.": {
      "created": 1627590400,
      "key": "77",
      "updated": 1627686800,
      "value": "Facere et nostrum dolores placeat magni.",
      "value_type": "secret"
    }
  }
}
{
  "account": "8f",
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Ducimus delectus ratione molestiae dignissimos deserunt rerum.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Ea libero.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Placeat numquam.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  },
  "identifier": "8",
  "name": "resource name",
  "org": "2",
  "project": "16",
  "type": "ansible",
  "updated": 1627686800,
  "variables": {
    "Architecto et.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    },
    "Soluta quae sit voluptas quibusdam veritatis aut.": {
      "created": 1627590400,
      "key": "z",
      "updated": 1627686800,
      "value": "Dolorem laudantium.",
      "value_type": "secret"
    }
  }
}

Delete Configuration Variable Set by identifier on project level

delete

Delete Configuration Variable Set by identifier on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: eq2
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: i
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: 8b3
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 2au
Responses
204

No Content response.

No content

delete/api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier}
DELETE /api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 2au
Accept: */*

No content

List Configuration Variable Set references on project level

get

List the playbooks and inventories a Configuration Variable Set on project level is attached to.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: daf
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: nly
identifierstring · min: 1 · max: 128Required

Identifier is the Configuration Variable Set identifier.

Example: cr
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: y
Responses
200

OK response.

application/json
get/api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier}/references
GET /api/orgs/{org}/projects/{project}/configuration-variable-set/{identifier}/references HTTP/1.1
Host: localhost:80
Harness-Account: y
Accept: */*
{
  "items": [
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    },
    {
      "account": "Veritatis delectus ipsam rerum.",
      "entity_type": "playbook",
      "identifier": "Repudiandae et.",
      "name": "Quae dolores velit temporibus aut sed praesentium.",
      "org": "Dolor neque exercitationem est sit.",
      "priority": 6606943464987852000,
      "project": "Dolores libero quos provident nam sunt."
    }
  ]
}

Get Configuration Variable Set list on project level

get

Get Configuration Variable Set list on project level.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: zs
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: r
Query parameters
typestring · enumOptional

Optional configuration product type to filter the list.

Example: ansiblePossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: fg
Responses
200

OK response.

application/json
get/api/orgs/{org}/projects/{project}/configuration-variable-sets
GET /api/orgs/{org}/projects/{project}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: fg
Accept: */*
{
  "items": [
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    },
    {
      "account": "2y",
      "created": 1627590400,
      "description": "this is a more detailed explanation of the resource.",
      "env_vars_count": 6974795085324939000,
      "environment_variables": {
        "Asperiores et eos error doloremque.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Occaecati laborum vel placeat odio ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        },
        "Qui ipsum ipsum.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "identifier": "4rn",
      "name": "resource name",
      "org": "s",
      "project": "z",
      "type": "ansible",
      "updated": 1627686800,
      "variables": {
        "Veritatis vero qui.": {
          "created": 1627590400,
          "key": "f02",
          "updated": 1627686800,
          "value": "Non maiores rem recusandae dignissimos.",
          "value_type": "string"
        }
      },
      "vars_count": 8758773929001088000
    }
  ]
}

Last updated

Was this helpful?