Variables
Variables Service handles the API for managing workspace variables.
List all workspace variables.
Org is the organisation identifier.
qoxProject is the project identifier.
tf4Workspace is the resource workspace this variable is associated with.
Architecto voluptatum minima vel sit ut.Account is the internal customer account ID.
c1OK response.
WorkspaceVariableResource is the representation for a single environment variable associated with a workspace.
Account is the internal customer account ID.
2wzCreated is the unix timestamp at which the resource was originally created in milliseconds.
2926213424691234300Key is the identifier for the secret.
f7mPattern: ^[a-zA-Z0-9_]+$Kind is the classfcation of the variable.
tfPossible values: Org is the organisation identifier.
ezyProject is the project identifier.
tgModified is the unix timestamp at which the resource was last modified in milliseconds.
7831993681402248000Value is the value of the secret.
Ipsa nostrum aut.Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be "true" or "false". JSON values must be valid JSON.
stringPossible values: Workspace is the resource workspace this variable is associated with.
Velit quod dolor sed soluta maiores.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables HTTP/1.1
Host: localhost:80
Harness-Account: c1
Accept: */*
[
{
"account": "36",
"created": 58120768662255090,
"key": "p",
"kind": "env",
"org": "9",
"project": "fc",
"updated": 8463692916017420000,
"value": "Quisquam ut.",
"value_type": "number",
"workspace": "Aperiam est et aut temporibus."
},
{
"account": "36",
"created": 58120768662255090,
"key": "p",
"kind": "env",
"org": "9",
"project": "fc",
"updated": 8463692916017420000,
"value": "Quisquam ut.",
"value_type": "number",
"workspace": "Aperiam est et aut temporibus."
},
{
"account": "36",
"created": 58120768662255090,
"key": "p",
"kind": "env",
"org": "9",
"project": "fc",
"updated": 8463692916017420000,
"value": "Quisquam ut.",
"value_type": "number",
"workspace": "Aperiam est et aut temporibus."
},
{
"account": "36",
"created": 58120768662255090,
"key": "p",
"kind": "env",
"org": "9",
"project": "fc",
"updated": 8463692916017420000,
"value": "Quisquam ut.",
"value_type": "number",
"workspace": "Aperiam est et aut temporibus."
}
]Creates a new workspace variable
Org is the organisation identifier.
8Project is the project identifier.
rWorkspace is the resource workspace this variable is associated with.
Sed consequatur enim.Account is the internal customer account ID.
oa7Key is the identifier for the secret.
vPattern: ^[a-zA-Z0-9_]+$Kind is the classfcation of the variable.
tfPossible values: Value is the value of the secret.
Mollitia non inventore minima.Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be "true" or "false". JSON values must be valid JSON.
secretPossible values: OK response.
Account is the internal customer account ID.
y3Created is the unix timestamp at which the resource was originally created in milliseconds.
4030006406298654700Key is the identifier for the secret.
dPattern: ^[a-zA-Z0-9_]+$Kind is the classfcation of the variable.
tfPossible values: Org is the organisation identifier.
ejpProject is the project identifier.
snModified is the unix timestamp at which the resource was last modified in milliseconds.
3524266782302425600Value is the value of the secret.
Voluptatem voluptatem aut.Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be "true" or "false". JSON values must be valid JSON.
jsonPossible values: Workspace is the resource workspace this variable is associated with.
Et est blanditiis tempora animi porro omnis.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables HTTP/1.1
Host: localhost:80
Harness-Account: oa7
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"key": "6i",
"kind": "env",
"value": "Et ut deserunt.",
"value_type": "json"
}{
"account": "4o",
"created": 631341020148062200,
"key": "maa",
"kind": "tf",
"org": "e6",
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
},
"project": "g9",
"updated": 5241337494763665000,
"value": "Veniam consequatur aliquid quis voluptas.",
"value_type": "boolean",
"workspace": "Ullam sunt nesciunt qui et quam ex."
}Show an individual workspace variable.
Org is the organisation identifier.
l6rProject is the project identifier.
oWorkspace is the resource workspace this variable is associated with.
Voluptas qui voluptas sunt quia itaque.Kind is the classfcation of the variable.
tfPossible values: Key is the identifier for the secret.
toPattern: ^[a-zA-Z0-9_]+$Account is the internal customer account ID.
pOK response.
Account is the internal customer account ID.
yCreated is the unix timestamp at which the resource was originally created in milliseconds.
6020766606903529000Key is the identifier for the secret.
jp9Pattern: ^[a-zA-Z0-9_]+$Kind is the classfcation of the variable.
envPossible values: Org is the organisation identifier.
aorProject is the project identifier.
hModified is the unix timestamp at which the resource was last modified in milliseconds.
6032128892445528000Value is the value of the secret.
Culpa nihil tenetur.Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be "true" or "false". JSON values must be valid JSON.
jsonPossible values: Workspace is the resource workspace this variable is associated with.
Dolores quos voluptatem dolorem.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables/{kind}/{key} HTTP/1.1
Host: localhost:80
Harness-Account: p
Accept: */*
{
"account": "yj",
"created": 6240630386684560000,
"key": "hny",
"kind": "tf",
"org": "5b",
"project": "ro",
"updated": 3163900774644598300,
"value": "Atque est aliquam sint libero et reiciendis.",
"value_type": "string",
"workspace": "Saepe repellat."
}Updates the given workspace variable with new info.
Org is the organisation identifier.
6Project is the project identifier.
6kWorkspace is the resource workspace this variable is associated with.
Ut vero.Kind is the classfcation of the variable.
tfPossible values: Key is the identifier for the secret.
nnmPattern: ^[a-zA-Z0-9_]+$Account is the internal customer account ID.
pValue is the value of the secret.
Et ut ut aut exercitationem.Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be "true" or "false". JSON values must be valid JSON.
stringPossible values: OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables/{kind}/{key} HTTP/1.1
Host: localhost:80
Harness-Account: p
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"value": "Sit saepe ducimus illo aut.",
"value_type": "json"
}{
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
}
}Deletes the given workspace variable.
Org is the organisation identifier.
3bProject is the project identifier.
ttWorkspace is the resource workspace this variable is associated with.
Et ex molestiae nemo sed impedit et.Kind is the classfcation of the variable.
tfPossible values: Key is the identifier for the secret.
ln6Pattern: ^[a-zA-Z0-9_]+$Account is the internal customer account ID.
3OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables/{kind}/{key} HTTP/1.1
Host: localhost:80
Harness-Account: 3
Accept: */*
{
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
}
}Returns all terraform/environment variables, provider connectors, and variable files for a workspace
Org is the organisation identifier.
253Project is the project identifier.
h2hWorkspace is the resource workspace this variable is associated with.
Dicta rem similique perspiciatis.Account is the internal customer account ID.
8OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/variables/merged HTTP/1.1
Host: localhost:80
Harness-Account: 8
Accept: */*
{
"environment_variables": [
{
"associatedTemplate": "Eveniet eum eligendi in laborum.",
"associatedVariableSet": "Enim ut deserunt dignissimos.",
"created": 5543865558800733000,
"inUse": false,
"includeInWorkspace": false,
"isLocked": false,
"key": "Quidem velit sed excepturi vel.",
"kind": "Eveniet non nam eligendi voluptatum.",
"permissions": {
"canDelete": true,
"canEditKey": false,
"canEditValue": false,
"canEditValueType": true
},
"source": "workspace",
"updated": 6546399137932857000,
"uuid": "Quas temporibus.",
"value": "Officia quos.",
"value_type": "Qui in ut omnis."
},
{
"associatedTemplate": "Eveniet eum eligendi in laborum.",
"associatedVariableSet": "Enim ut deserunt dignissimos.",
"created": 5543865558800733000,
"inUse": false,
"includeInWorkspace": false,
"isLocked": false,
"key": "Quidem velit sed excepturi vel.",
"kind": "Eveniet non nam eligendi voluptatum.",
"permissions": {
"canDelete": true,
"canEditKey": false,
"canEditValue": false,
"canEditValueType": true
},
"source": "workspace",
"updated": 6546399137932857000,
"uuid": "Quas temporibus.",
"value": "Officia quos.",
"value_type": "Qui in ut omnis."
}
],
"provider_connectors": [
{
"associatedTemplate": "Nostrum aut asperiores.",
"associatedVariableSet": "Omnis repellendus neque dolorum voluptas sint similique.",
"connector_ref": "Voluptatem animi id vero.",
"created": 8566220096492955000,
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true
},
"source": "workspace",
"type": "gcp",
"updated": 3237386332751913000,
"uuid": "Qui beatae excepturi."
},
{
"associatedTemplate": "Nostrum aut asperiores.",
"associatedVariableSet": "Omnis repellendus neque dolorum voluptas sint similique.",
"connector_ref": "Voluptatem animi id vero.",
"created": 8566220096492955000,
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true
},
"source": "workspace",
"type": "gcp",
"updated": 3237386332751913000,
"uuid": "Qui beatae excepturi."
}
],
"terraform_variables": [
{
"associatedTemplate": "Eveniet eum eligendi in laborum.",
"associatedVariableSet": "Enim ut deserunt dignissimos.",
"created": 5543865558800733000,
"inUse": false,
"includeInWorkspace": false,
"isLocked": false,
"key": "Quidem velit sed excepturi vel.",
"kind": "Eveniet non nam eligendi voluptatum.",
"permissions": {
"canDelete": true,
"canEditKey": false,
"canEditValue": false,
"canEditValueType": true
},
"source": "workspace",
"updated": 6546399137932857000,
"uuid": "Quas temporibus.",
"value": "Officia quos.",
"value_type": "Qui in ut omnis."
},
{
"associatedTemplate": "Eveniet eum eligendi in laborum.",
"associatedVariableSet": "Enim ut deserunt dignissimos.",
"created": 5543865558800733000,
"inUse": false,
"includeInWorkspace": false,
"isLocked": false,
"key": "Quidem velit sed excepturi vel.",
"kind": "Eveniet non nam eligendi voluptatum.",
"permissions": {
"canDelete": true,
"canEditKey": false,
"canEditValue": false,
"canEditValueType": true
},
"source": "workspace",
"updated": 6546399137932857000,
"uuid": "Quas temporibus.",
"value": "Officia quos.",
"value_type": "Qui in ut omnis."
},
{
"associatedTemplate": "Eveniet eum eligendi in laborum.",
"associatedVariableSet": "Enim ut deserunt dignissimos.",
"created": 5543865558800733000,
"inUse": false,
"includeInWorkspace": false,
"isLocked": false,
"key": "Quidem velit sed excepturi vel.",
"kind": "Eveniet non nam eligendi voluptatum.",
"permissions": {
"canDelete": true,
"canEditKey": false,
"canEditValue": false,
"canEditValueType": true
},
"source": "workspace",
"updated": 6546399137932857000,
"uuid": "Quas temporibus.",
"value": "Officia quos.",
"value_type": "Qui in ut omnis."
}
],
"variable_files": [
{
"associatedTemplate": "Libero quibusdam non quis.",
"associatedVariableSet": "Unde saepe aliquid fuga eaque.",
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true,
"canEdit": false
},
"repository": "Occaecati et et quam consectetur.",
"repository_branch": "Provident id quo ut distinctio.",
"repository_commit": "Sunt vitae cupiditate nihil.",
"repository_connector": "Enim ut delectus natus.",
"repository_path": "Adipisci quaerat quibusdam voluptas.",
"repository_sha": "Reiciendis adipisci enim aspernatur tenetur.",
"source": "workspace",
"uuid": "Delectus eum laboriosam."
},
{
"associatedTemplate": "Libero quibusdam non quis.",
"associatedVariableSet": "Unde saepe aliquid fuga eaque.",
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true,
"canEdit": false
},
"repository": "Occaecati et et quam consectetur.",
"repository_branch": "Provident id quo ut distinctio.",
"repository_commit": "Sunt vitae cupiditate nihil.",
"repository_connector": "Enim ut delectus natus.",
"repository_path": "Adipisci quaerat quibusdam voluptas.",
"repository_sha": "Reiciendis adipisci enim aspernatur tenetur.",
"source": "workspace",
"uuid": "Delectus eum laboriosam."
},
{
"associatedTemplate": "Libero quibusdam non quis.",
"associatedVariableSet": "Unde saepe aliquid fuga eaque.",
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true,
"canEdit": false
},
"repository": "Occaecati et et quam consectetur.",
"repository_branch": "Provident id quo ut distinctio.",
"repository_commit": "Sunt vitae cupiditate nihil.",
"repository_connector": "Enim ut delectus natus.",
"repository_path": "Adipisci quaerat quibusdam voluptas.",
"repository_sha": "Reiciendis adipisci enim aspernatur tenetur.",
"source": "workspace",
"uuid": "Delectus eum laboriosam."
},
{
"associatedTemplate": "Libero quibusdam non quis.",
"associatedVariableSet": "Unde saepe aliquid fuga eaque.",
"inUse": false,
"isInWorkspace": true,
"isLocked": true,
"permissions": {
"canDelete": true,
"canEdit": false
},
"repository": "Occaecati et et quam consectetur.",
"repository_branch": "Provident id quo ut distinctio.",
"repository_commit": "Sunt vitae cupiditate nihil.",
"repository_connector": "Enim ut delectus natus.",
"repository_path": "Adipisci quaerat quibusdam voluptas.",
"repository_sha": "Reiciendis adipisci enim aspernatur tenetur.",
"source": "workspace",
"uuid": "Delectus eum laboriosam."
}
]
}Last updated
Was this helpful?