Workspaces Service handles the API for managing workspaces and triggering workflows against them.
Show metrics for workspaces
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.
{- "status_counts": {
- "Facere praesentium nesciunt possimus.": 1330818115100258800,
- "Magni vel.": 2071519027227903700,
- "Ut earum veritatis.": 2375333301597787000
}
}
List all workspaces.
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.
[- {
- "account": "w",
- "created": 5528003699720887000,
- "description": "this is a more detailed explanation of the resource.",
- "identifier": "af3",
- "name": "resource name",
- "org": "ed",
- "project": "mc",
- "status": "unknown",
- "updated": 998437431035374600
}, - {
- "account": "w",
- "created": 5528003699720887000,
- "description": "this is a more detailed explanation of the resource.",
- "identifier": "af3",
- "name": "resource name",
- "org": "ed",
- "project": "mc",
- "status": "unknown",
- "updated": 998437431035374600
}
]
Create a new workspace.
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.
{- "associated_template": {
- "template_id": "3gf",
- "version": "8yt"
}, - "budget": 0.873577,
- "cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "cost_estimation_enabled": true,
- "default_pipelines": {
- "Laudantium sequi repellat aut.": {
- "project_pipeline": "Necessitatibus omnis occaecati enim illo porro molestias.",
- "workspace_pipeline": "Ut consequatur voluptatibus."
}, - "Voluptate est aut sit distinctio.": {
- "project_pipeline": "Necessitatibus omnis occaecati enim illo porro molestias.",
- "workspace_pipeline": "Ut consequatur voluptatibus."
}
}, - "description": "this is a more detailed explanation of the resource.",
- "environment_variables": {
- "Est vel.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}
}, - "id": 34320627300546350,
- "identifier": "py",
- "modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "name": "resource name",
- "provider_connector": "Dolores consequatur.",
- "provider_connectors": [
- {
- "connector_ref": "nx",
- "created": 1627590400,
- "id": 1793796241943047000,
- "type": "azure",
- "updated": 1627686800,
- "workspace_id": 7107131874281304000
}, - {
- "connector_ref": "nx",
- "created": 1627590400,
- "id": 1793796241943047000,
- "type": "azure",
- "updated": 1627686800,
- "workspace_id": 7107131874281304000
}
], - "providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "provisioner": "opentofu",
- "provisioner_version": "Iure provident aut eligendi qui aperiam consequatur.",
- "repository": "Error ut.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Voluptas eaque aut.",
- "repository_path": "",
- "repository_sha": "abc10ed",
- "repository_submodules": "recursive",
- "sparse_checkout": "In aperiam et consequuntur aut omnis enim.",
- "state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
- "tags": {
- "foo": "bar"
}, - "terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
- "terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
- "terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "terraform_variable_files": [
- {
- "repository": "Omnis tenetur dolores.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Aut et aliquid occaecati in.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Omnis tenetur dolores.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Aut et aliquid occaecati in.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}
], - "terraform_variables": {
- "Error maxime vel.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}
}, - "variable_sets": [
- "Labore id.",
- "Vero qui placeat sint."
]
}
{- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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.
No Content 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.
Show an individual workspace.
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.
{- "account": "2pk",
- "associated_template": {
- "template_id": "i",
- "version": "nx"
}, - "backend_locked": false,
- "budget": 0.5453531,
- "cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "cost_estimation_enabled": true,
- "created": 8287252387047121000,
- "default_pipelines": {
- "Excepturi consectetur et consequatur voluptas assumenda.": {
- "project_pipeline": "Fugit voluptates sequi dolores rerum cumque porro.",
- "workspace_pipeline": "Rerum vero fugit in velit voluptatem dolores."
}
}, - "description": "this is a more detailed explanation of the resource.",
- "environment_variables": {
- "Aut aut voluptates maxime est minima.": {
- "created": 7041429794288801000,
- "key": "ari",
- "updated": 8855489299331814000,
- "value": "Sint repellendus fugiat nemo reiciendis velit.",
- "value_type": "string"
}, - "Non maiores.": {
- "created": 7041429794288801000,
- "key": "ari",
- "updated": 8855489299331814000,
- "value": "Sint repellendus fugiat nemo reiciendis velit.",
- "value_type": "string"
}, - "Quam quam inventore.": {
- "created": 7041429794288801000,
- "key": "ari",
- "updated": 8855489299331814000,
- "value": "Sint repellendus fugiat nemo reiciendis velit.",
- "value_type": "string"
}
}, - "identifier": "dgx",
- "modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "name": "resource name",
- "org": "22",
- "project": "8",
- "provider_connector": "Porro ea molestias est provident id.",
- "provider_connectors": [
- {
- "connector_ref": "v7",
- "created": 1627590400,
- "id": 3101592207166135000,
- "type": "gcp",
- "updated": 1627686800,
- "workspace_id": 4782033899532433000
}, - {
- "connector_ref": "v7",
- "created": 1627590400,
- "id": 3101592207166135000,
- "type": "gcp",
- "updated": 1627686800,
- "workspace_id": 4782033899532433000
}, - {
- "connector_ref": "v7",
- "created": 1627590400,
- "id": 3101592207166135000,
- "type": "gcp",
- "updated": 1627686800,
- "workspace_id": 4782033899532433000
}, - {
- "connector_ref": "v7",
- "created": 1627590400,
- "id": 3101592207166135000,
- "type": "gcp",
- "updated": 1627686800,
- "workspace_id": 4782033899532433000
}
], - "providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "provisioner": "terraform",
- "provisioner_data": "Exercitationem nemo dignissimos itaque aliquid architecto.",
- "provisioner_version": "Reprehenderit non distinctio fugiat.",
- "repository": "Consequatur dicta.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Cum facere magni sed illo voluptas.",
- "repository_path": "",
- "repository_sha": "abc10ed",
- "repository_submodules": "recursive",
- "sparse_checkout": "Non quidem nihil et rerum ut.",
- "state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
- "status": "unknown",
- "tags": {
- "foo": "bar"
}, - "terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
- "terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
- "terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
- "terraform_variable_files": [
- {
- "repository": "Officia quia.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Impedit et eum unde voluptatem velit.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Officia quia.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Impedit et eum unde voluptatem velit.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Officia quia.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Impedit et eum unde voluptatem velit.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Officia quia.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Impedit et eum unde voluptatem velit.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}
], - "terraform_variables": {
- "Dolorum aperiam nihil repellat.": {
- "created": 7041429794288801000,
- "key": "ari",
- "updated": 8855489299331814000,
- "value": "Sint repellendus fugiat nemo reiciendis velit.",
- "value_type": "string"
}, - "Error odit et occaecati non inventore asperiores.": {
- "created": 7041429794288801000,
- "key": "ari",
- "updated": 8855489299331814000,
- "value": "Sint repellendus fugiat nemo reiciendis velit.",
- "value_type": "string"
}
}, - "updated": 1991025162981622300,
- "variable_sets": [
- "Sequi dolore eos tempore adipisci.",
- "Facilis temporibus tempora deleniti.",
- "Laudantium quaerat.",
- "Ducimus ullam sunt molestiae facere."
]
}
Updates the given workspace with new info.
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.
{- "budget": 0.21877892,
- "cost_estimation_enabled": true,
- "default_pipelines": {
- "Quia quam voluptas aspernatur vero dolore blanditiis.": {
- "project_pipeline": "Necessitatibus omnis occaecati enim illo porro molestias.",
- "workspace_pipeline": "Ut consequatur voluptatibus."
}
}, - "description": "this is a more detailed explanation of the resource.",
- "environment_variables": {
- "Aut perferendis quia voluptatum sit molestias.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}, - "Nobis ipsam numquam quibusdam earum.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}, - "Sunt a nam rerum impedit ullam.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}
}, - "name": "resource name",
- "provider_connector": "Odio molestias voluptas natus consequatur voluptatem itaque.",
- "provider_connectors": [
- {
- "connector_ref": "nx",
- "created": 1627590400,
- "id": 1793796241943047000,
- "type": "azure",
- "updated": 1627686800,
- "workspace_id": 7107131874281304000
}, - {
- "connector_ref": "nx",
- "created": 1627590400,
- "id": 1793796241943047000,
- "type": "azure",
- "updated": 1627686800,
- "workspace_id": 7107131874281304000
}
], - "provisioner": "terraform",
- "provisioner_version": "Vel cumque nihil numquam voluptas in.",
- "repository": "Cumque impedit non accusamus sed dolor.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Illum nihil fuga quis vel quo qui.",
- "repository_path": "",
- "repository_sha": "abc10ed",
- "repository_submodules": "recursive",
- "sparse_checkout": "Dolorum omnis nihil incidunt.",
- "tags": {
- "foo": "bar"
}, - "terraform_variable_files": [
- {
- "repository": "Omnis tenetur dolores.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Aut et aliquid occaecati in.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Omnis tenetur dolores.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Aut et aliquid occaecati in.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}, - {
- "repository": "Omnis tenetur dolores.",
- "repository_branch": "main",
- "repository_commit": "abc10ed",
- "repository_connector": "Aut et aliquid occaecati in.",
- "repository_path": "",
- "repository_sha": "abc10ed"
}
], - "terraform_variables": {
- "Ullam dolorum voluptatem veritatis beatae.": {
- "key": "hx",
- "value": "Deleniti debitis perferendis et quaerat labore.",
- "value_type": "string"
}
}, - "variable_sets": [
- "Architecto quis alias sunt dolores tempore.",
- "Non ut nisi eius."
]
}
{- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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"
}
}
Force unlock a workspace.
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.
List modules associated with this workspace.
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.
[- {
- "key": "ec2-instance_test",
- "source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
- "version": "5.0.0"
}, - {
- "key": "ec2-instance_test",
- "source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
- "version": "5.0.0"
}, - {
- "key": "ec2-instance_test",
- "source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
- "version": "5.0.0"
}
]
List resources associated with this workspace.
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.
{- "data_sources": [
- {
- "attributes": {
- "ami": "ami-830c94ec",
- "instance_type": "t2.micro"
}, - "drift_attributes": {
- "instance_type": "t2.nano"
}, - "drift_status": "changed",
- "module": "full_stack",
- "name": "app_server",
- "provider": "AWS",
- "sensitive_attributes": [
- "instance_type"
], - "type": "S3 Bucket"
}, - {
- "attributes": {
- "ami": "ami-830c94ec",
- "instance_type": "t2.micro"
}, - "drift_attributes": {
- "instance_type": "t2.nano"
}, - "drift_status": "changed",
- "module": "full_stack",
- "name": "app_server",
- "provider": "AWS",
- "sensitive_attributes": [
- "instance_type"
], - "type": "S3 Bucket"
}
], - "outputs": [
- {
- "name": "instance_public_ip",
- "sensitive": true,
- "value": "Aut voluptas."
}, - {
- "name": "instance_public_ip",
- "sensitive": true,
- "value": "Aut voluptas."
}, - {
- "name": "instance_public_ip",
- "sensitive": true,
- "value": "Aut voluptas."
}, - {
- "name": "instance_public_ip",
- "sensitive": true,
- "value": "Aut voluptas."
}
], - "resources": [
- {
- "attributes": {
- "ami": "ami-830c94ec",
- "instance_type": "t2.micro"
}, - "drift_attributes": {
- "instance_type": "t2.nano"
}, - "drift_status": "changed",
- "module": "full_stack",
- "name": "app_server",
- "provider": "AWS",
- "sensitive_attributes": [
- "instance_type"
], - "type": "S3 Bucket"
}, - {
- "attributes": {
- "ami": "ami-830c94ec",
- "instance_type": "t2.micro"
}, - "drift_attributes": {
- "instance_type": "t2.nano"
}, - "drift_status": "changed",
- "module": "full_stack",
- "name": "app_server",
- "provider": "AWS",
- "sensitive_attributes": [
- "instance_type"
], - "type": "S3 Bucket"
}
]
}
Clone the given workspace with new name.
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.
{- "identifier": "2l",
- "name": "resource name"
}
{- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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"
}, - {
- "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"
}
}
List all stored data for a workspace.
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.
[- {
- "account": "3",
- "created": 1715988832333047600,
- "data_type": "state_raw",
- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "org": "1",
- "pipeline_execution_id": "Omnis explicabo ea et maxime nihil.",
- "pipeline_id": "Alias tenetur quisquam.",
- "pipeline_stage_id": "Nihil sapiente minus.",
- "project": "6",
- "provisioner_type": "tf",
- "stage_id": "In minus quasi.",
- "workspace": "workspace123"
}, - {
- "account": "3",
- "created": 1715988832333047600,
- "data_type": "state_raw",
- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "org": "1",
- "pipeline_execution_id": "Omnis explicabo ea et maxime nihil.",
- "pipeline_id": "Alias tenetur quisquam.",
- "pipeline_stage_id": "Nihil sapiente minus.",
- "project": "6",
- "provisioner_type": "tf",
- "stage_id": "In minus quasi.",
- "workspace": "workspace123"
}, - {
- "account": "3",
- "created": 1715988832333047600,
- "data_type": "state_raw",
- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "org": "1",
- "pipeline_execution_id": "Omnis explicabo ea et maxime nihil.",
- "pipeline_id": "Alias tenetur quisquam.",
- "pipeline_stage_id": "Nihil sapiente minus.",
- "project": "6",
- "provisioner_type": "tf",
- "stage_id": "In minus quasi.",
- "workspace": "workspace123"
}, - {
- "account": "3",
- "created": 1715988832333047600,
- "data_type": "state_raw",
- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "org": "1",
- "pipeline_execution_id": "Omnis explicabo ea et maxime nihil.",
- "pipeline_id": "Alias tenetur quisquam.",
- "pipeline_stage_id": "Nihil sapiente minus.",
- "project": "6",
- "provisioner_type": "tf",
- "stage_id": "In minus quasi.",
- "workspace": "workspace123"
}
]
Store binary data generated by the provisioner, such as plans and state files.
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.
{- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "policy_evaluation": [
- {
- "message": "Qui accusamus.",
- "policy_id": "Animi facilis accusantium aspernatur sit.",
- "policy_name": "Alias nihil.",
- "policy_set_id": "Aliquam placeat.",
- "policy_set_name": "Saepe ducimus et distinctio.",
- "policy_status": "Sunt ea."
}, - {
- "message": "Qui accusamus.",
- "policy_id": "Animi facilis accusantium aspernatur sit.",
- "policy_name": "Alias nihil.",
- "policy_set_id": "Aliquam placeat.",
- "policy_set_name": "Saepe ducimus et distinctio.",
- "policy_status": "Sunt ea."
}
], - "policy_evaluation_message": "- instance type 'xlarge' is not permitted",
- "policy_evaluation_status": "error"
}
Get binary data generated by the provisioner, such as plans and state files.
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.
"string"
Evaluate policy against previously stored data, such as plans and state files.
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.
{- "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
- "policy_evaluation": [
- {
- "message": "Qui accusamus.",
- "policy_id": "Animi facilis accusantium aspernatur sit.",
- "policy_name": "Alias nihil.",
- "policy_set_id": "Aliquam placeat.",
- "policy_set_name": "Saepe ducimus et distinctio.",
- "policy_status": "Sunt ea."
}, - {
- "message": "Qui accusamus.",
- "policy_id": "Animi facilis accusantium aspernatur sit.",
- "policy_name": "Alias nihil.",
- "policy_set_id": "Aliquam placeat.",
- "policy_set_name": "Saepe ducimus et distinctio.",
- "policy_status": "Sunt ea."
}
], - "policy_evaluation_message": "- instance type 'xlarge' is not permitted",
- "policy_evaluation_status": "error"
}
Store binary data generated by the provisioner, such as plans and state files.
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.
{- "data": {
- "Minima laboriosam qui eos dignissimos eos.": "Quia suscipit nostrum ea et at.",
- "Perferendis tempore dolorem.": "Vel occaecati mollitia tenetur quis.",
- "Quod a repudiandae.": "Mollitia et voluptate."
}, - "event_type": "apply_needed",
- "metadata": {
- "PlannedChangesCount": 522045215243244740,
- "activity_status": "success",
- "activity_type": "import",
- "cost_breakdown_uuid": "Veniam et quia praesentium.",
- "cost_currency": "Quasi sint culpa eos facere sapiente expedita.",
- "cost_diff_total_monthly": "Dolorem atque voluptatem saepe.",
- "cost_diff_uuid": "Facilis quis molestiae.",
- "cost_past_total_monthly": "Id soluta.",
- "cost_total_monthly": "Aut qui eum natus veritatis sint quidem.",
- "cost_total_monthly_percentage_change": "Ipsam qui.",
- "drift_counts": {
- "added": 4826534834240538000,
- "changed": 998748052933761500,
- "deleted": 5828262319716160000,
- "imported": 7422438375973692000,
- "removed": 6036723523323130000,
- "unchanged": 4760789219313462000
}, - "enable_solutions_factory": true,
- "git_branch": "Consequatur quis dignissimos.",
- "git_commit_message": "Nemo odio ipsum aspernatur dicta.",
- "git_commit_sha": "Et qui corrupti adipisci.",
- "git_repo": "Qui et commodi deleniti quisquam distinctio vel.",
- "modules_uuid": "Tenetur dolorum id.",
- "output_counts": {
- "added": 4826534834240538000,
- "changed": 998748052933761500,
- "deleted": 5828262319716160000,
- "imported": 7422438375973692000,
- "removed": 6036723523323130000,
- "unchanged": 4760789219313462000
}, - "pipeline": "Debitis quas facere.",
- "pipeline_execution_id": "Fugiat omnis aut laborum est porro ullam.",
- "pipeline_execution_number": "Id iure adipisci.",
- "pipeline_name": "Consequuntur voluptatem ratione.",
- "pipeline_stage_id": "Voluptate a fugit ut quidem explicabo.",
- "plan_uuid": "Sunt repudiandae totam.",
- "providers_uuid": "Rem aut eos.",
- "provisioner": "Voluptatem dolor soluta quaerat ea nemo.",
- "provisioner_version": "Voluptas facilis error.",
- "resource_counts": {
- "added": 4826534834240538000,
- "changed": 998748052933761500,
- "deleted": 5828262319716160000,
- "imported": 7422438375973692000,
- "removed": 6036723523323130000,
- "unchanged": 4760789219313462000
}, - "state_checksum": "Totam explicabo nihil rerum.",
- "state_uuid": "Consectetur nostrum at pariatur ut.",
- "trigger": {
- "Id quam sit.": "Minima voluptate veniam modi reprehenderit perferendis.",
- "Nihil et molestiae atque exercitationem voluptatum.": "Aut nihil et placeat quasi ab debitis."
}
}, - "pipeline_execution_id": "Ad iure ex asperiores libero.",
- "pipeline_stage_id": "Iusto quis qui earum eum."
}
List the pipelines where the workspace is been used
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.
{- "account": "x43",
- "org": "u1",
- "pipelines": [
- "Voluptatibus nihil id et facere.",
- "Veritatis quibusdam quidem quidem culpa.",
- "Quis dolores iste modi voluptatibus.",
- "Quo consequatur."
], - "project": "1ni"
}
Create a remote execution for a workspace.
object The arguments supplied to the plan. |
Created 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.
{- "custom_arguments": {
- "Et vel provident eius.": [
- "Dolorem et eum aut ratione.",
- "Mollitia voluptatem sint repellendus.",
- "Ut et dignissimos.",
- "Beatae quo et eius repudiandae."
]
}
}
{- "account": "8",
- "created": 2667795146233198600,
- "custom_arguments": {
- "Facilis tempore illum voluptatum itaque.": [
- "Deserunt alias.",
- "Natus vel.",
- "Commodi ut qui."
], - "Laboriosam cum saepe exercitationem.": [
- "Recusandae consequuntur nisi eius facilis.",
- "Enim voluptas aut nihil quas.",
- "Aspernatur illo qui non.",
- "Dolorum itaque inventore quisquam eos tempore amet."
]
}, - "executed": true,
- "id": "1cece2f9-9d90-4316-80c7-76e0d2609bdd",
- "org": "96v",
- "pipeline_execution_id": "Voluptas accusamus.",
- "pipeline_execution_url": "Autem ut molestias ratione est.",
- "project": "0",
- "sha256_checksum": "Occaecati aut repellendus deserunt ullam.",
- "updated": 7090311893039001000,
- "workspace": "Impedit cupiditate dolores nulla et rerum."
}
Find remote execution
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.
{- "account": "f",
- "created": 5200989683552908000,
- "custom_arguments": {
- "Libero expedita non nemo veritatis maxime odio.": [
- "Excepturi vitae aliquid placeat beatae hic esse.",
- "Consequatur veritatis aut adipisci.",
- "Consequuntur magnam rerum est ducimus qui."
]
}, - "executed": false,
- "id": "45f107d3-e8ea-4710-a2ad-77944d3dcabd",
- "org": "cy",
- "pipeline_execution_id": "Vel cum dolorum atque cumque.",
- "pipeline_execution_url": "Quisquam dolor tempora exercitationem facilis.",
- "project": "59",
- "sha256_checksum": "Similique est est cumque veniam.",
- "updated": 2885921191025993700,
- "workspace": "Voluptatem quo iusto dolores."
}
Download the source code for the remote plan.
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.
"string"
Execute the remote execution
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.
{- "account": "4",
- "created": 972100800344852400,
- "custom_arguments": {
- "Adipisci voluptas nulla.": [
- "In dolores aut sit quasi quidem quo.",
- "Ipsum optio voluptas fugit.",
- "Possimus cupiditate modi ut aut ullam."
], - "Tenetur expedita sed eos voluptatibus doloremque perferendis.": [
- "Quia repudiandae modi rerum aspernatur.",
- "Laborum voluptas architecto eum voluptatum.",
- "Sit et eligendi et."
]
}, - "executed": true,
- "id": "968f4b73-3234-49af-bec7-f318feaf3fd7",
- "org": "9e",
- "pipeline_execution_id": "Modi autem laborum vitae qui ut sed.",
- "pipeline_execution_url": "Dolor tempore ipsum.",
- "project": "kk",
- "sha256_checksum": "Sequi et enim.",
- "updated": 1884173819649109000,
- "workspace": "Molestiae consequuntur consequuntur ducimus atque quis officiis."
}
Upload the source code for the remote execution.
Harness-Account required | string [ 1 .. 128 ] characters Account is the internal customer account ID. Example: x6s |
Content-Length | integer <int64> Size in bytes of the source code. Example: 5855190184867046000 |
Content-Digest required | string Content-Digest header as defined in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Digest. Sha256 is the only supported algorithm. Example: Nisi quo omnis id rerum delectus. |
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.
{- "account": "o",
- "created": 4871242074204672000,
- "custom_arguments": {
- "Consequuntur animi.": [
- "Odit cumque.",
- "Odit doloribus porro voluptas dolores maiores."
], - "Dolorem quis nihil voluptates ipsa.": [
- "In beatae.",
- "Laudantium optio nulla."
], - "Officiis nisi ratione quibusdam.": [
- "Harum sit est unde nihil ea.",
- "Eum rerum aut qui quo.",
- "Commodi ut magni necessitatibus facere odio.",
- "Saepe corrupti voluptas aut aliquam recusandae provident."
]
}, - "executed": true,
- "id": "b4eb7283-cabf-4c56-b2ab-26d5cb346218",
- "org": "38",
- "pipeline_execution_id": "Itaque dolores temporibus velit.",
- "pipeline_execution_url": "Asperiores nostrum.",
- "project": "2g",
- "sha256_checksum": "Voluptatum aliquam nulla cum mollitia.",
- "updated": 3779355400596282400,
- "workspace": "Quia fugit veritatis quasi aut."
}
Retrieves the ratio of provisioners used by workspaces
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.
{- "provisioner": {
- "Excepturi placeat doloribus aspernatur enim et.": 0.5995277509503167
}, - "total": 0.4525246625883197
}
Get all workspaces associated with a specific template ID
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.
[- {
- "account": "3i",
- "created_at": 1627590400,
- "org": "d",
- "project": "vj6",
- "template_id": "hyn",
- "updated_at": 1627686800,
- "version": "z",
- "workspace_id": "49"
}, - {
- "account": "3i",
- "created_at": 1627590400,
- "org": "d",
- "project": "vj6",
- "template_id": "hyn",
- "updated_at": 1627686800,
- "version": "z",
- "workspace_id": "49"
}, - {
- "account": "3i",
- "created_at": 1627590400,
- "org": "d",
- "project": "vj6",
- "template_id": "hyn",
- "updated_at": 1627686800,
- "version": "z",
- "workspace_id": "49"
}
]