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

Update a Variable Set on account level

Update a Variable Set on account level.

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

Identifier is the VariableSet identifier.

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

Account is the internal customer account ID.

Example: 0
Body
createdinteger · int64Optional

Timestamp when the 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.
idinteger · int64Optional

ID PK for internal uses

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

Name is the human readable name for the resource.

Example: resource name
updatedinteger · int64Optional

Timestamp when the variable set was last updated.

Example: 1627686800
Responses
200

OK response.

application/json

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

accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: nl
createdinteger · int64Optional

Timestamp when the 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 VariableSet identifier.

Example: u0Pattern: ^[^/?#\s]+$
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: w
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: q
updatedinteger · int64Optional

Timestamp when the variable set was last updated.

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

{
  "connectors": [
    {
      "connector_ref": "6xz",
      "created": 1627590400,
      "id": 4697579475301698000,
      "type": "vault",
      "updated": 1627686800
    },
    {
      "connector_ref": "6xz",
      "created": 1627590400,
      "id": 4697579475301698000,
      "type": "vault",
      "updated": 1627686800
    },
    {
      "connector_ref": "6xz",
      "created": 1627590400,
      "id": 4697579475301698000,
      "type": "vault",
      "updated": 1627686800
    },
    {
      "connector_ref": "6xz",
      "created": 1627590400,
      "id": 4697579475301698000,
      "type": "vault",
      "updated": 1627686800
    }
  ],
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Eos quia quia illum ipsa.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    },
    "Qui culpa consectetur voluptas amet.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    },
    "Ut odio illo sapiente.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    }
  },
  "id": 6817943631325964000,
  "name": "resource name",
  "terraform_variable_files": [
    {
      "created": 1627590400,
      "id": 6600913823231780000,
      "repository": "Fugit ut ut totam provident temporibus voluptas.",
      "repository_branch": "main",
      "repository_commit": "abc10ed",
      "repository_connector": "Fugit cumque voluptatem commodi.",
      "repository_path": "",
      "repository_sha": "abc10ed",
      "updated": 1627686800
    },
    {
      "created": 1627590400,
      "id": 6600913823231780000,
      "repository": "Fugit ut ut totam provident temporibus voluptas.",
      "repository_branch": "main",
      "repository_commit": "abc10ed",
      "repository_connector": "Fugit cumque voluptatem commodi.",
      "repository_path": "",
      "repository_sha": "abc10ed",
      "updated": 1627686800
    }
  ],
  "terraform_variables": {
    "Eum et.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    },
    "Reprehenderit qui velit.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    },
    "Voluptatibus odio et nemo sit.": {
      "created": 1627590400,
      "id": 495369201921333500,
      "key": "s8",
      "updated": 1627686800,
      "value": "Sit eaque id alias blanditiis impedit rerum.",
      "value_type": "number"
    }
  },
  "updated": 1627686800
}
{
  "account": "wgh",
  "connectors": [
    {
      "connector_ref": "g6e",
      "created": 1627590400,
      "id": 8962279363599500000,
      "type": "gcp",
      "updated": 1627686800
    },
    {
      "connector_ref": "g6e",
      "created": 1627590400,
      "id": 8962279363599500000,
      "type": "gcp",
      "updated": 1627686800
    },
    {
      "connector_ref": "g6e",
      "created": 1627590400,
      "id": 8962279363599500000,
      "type": "gcp",
      "updated": 1627686800
    }
  ],
  "created": 1627590400,
  "description": "this is a more detailed explanation of the resource.",
  "environment_variables": {
    "Consequuntur quos quidem molestiae ducimus amet voluptate.": {
      "created": 1627590400,
      "id": 6039675868838002000,
      "key": "a3",
      "updated": 1627686800,
      "value": "Reprehenderit autem aut reiciendis.",
      "value_type": "json"
    }
  },
  "identifier": "kf",
  "name": "resource name",
  "org": "7",
  "project": "ugp",
  "terraform_variable_files": [
    {
      "created": 1627590400,
      "id": 7266046153789191000,
      "repository": "Error quisquam fugit.",
      "repository_branch": "main",
      "repository_commit": "abc10ed",
      "repository_connector": "Nemo deleniti eos reprehenderit.",
      "repository_path": "",
      "repository_sha": "abc10ed",
      "updated": 1627686800
    },
    {
      "created": 1627590400,
      "id": 7266046153789191000,
      "repository": "Error quisquam fugit.",
      "repository_branch": "main",
      "repository_commit": "abc10ed",
      "repository_connector": "Nemo deleniti eos reprehenderit.",
      "repository_path": "",
      "repository_sha": "abc10ed",
      "updated": 1627686800
    }
  ],
  "terraform_variables": {
    "Rerum explicabo recusandae sed dolore voluptatem.": {
      "created": 1627590400,
      "id": 6039675868838002000,
      "key": "a3",
      "updated": 1627686800,
      "value": "Reprehenderit autem aut reiciendis.",
      "value_type": "json"
    },
    "Sit qui unde optio nulla tempore.": {
      "created": 1627590400,
      "id": 6039675868838002000,
      "key": "a3",
      "updated": 1627686800,
      "value": "Reprehenderit autem aut reiciendis.",
      "value_type": "json"
    }
  },
  "updated": 1627686800
}

Last updated

Was this helpful?