Ansible
Ansible Service handles the API for ansible entities.
List all activities at account scope. Org and project scoped activities are not included.
Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Sort order for results
created,DESCExample: created,DESCPossible values: Search term to filter by inventory identifier
inventory_1Search term to filter by playbook identifier
playbook_1Activity type filter
Ullam quidem.Activity status filter
Laboriosam autem quasi qui mollitia ad rerum.Account is the internal customer account ID.
0xOK 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/ansible/activities HTTP/1.1
Host: localhost:80
Harness-Account: 0x
Accept: */*
[
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
}
]Show an individual account scoped ansible activity.
The unique ID for this activity
Et et iste officiis.Account is the internal customer account ID.
bOK response.
Account is the internal customer account ID.
lTimestamp when the resource was created.
1627590400The type of event that occurred
activity-executionPossible values: The unique identifier for this activity
dc538c61-de48-4220-958c-5f3c4f983daaInventories associated with this event
Vel veniam et voluptatum.Org is the organisation identifier.
ubfPlaybooks associated with this event
Cumque est debitis odio.Project is the project identifier.
mqBadRequestError: 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/ansible/activities/{id} HTTP/1.1
Host: localhost:80
Harness-Account: b
Accept: */*
{
"account": "pi",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Itaque quia quae omnis.",
"metadata": {
"activity_status": "Laudantium explicabo ab consequatur eius quo est.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Sed ipsum.",
"git_commit_message": "Sed provident molestias esse doloribus quaerat.",
"git_commit_sha": "Quam ut.",
"git_repo": "Sapiente dicta et.",
"metrics": {
"circuit_breaker_triggered": true,
"duration_ms": 9161572224745659000,
"host_changed": 5514210248796778000,
"host_failed": 5342935301463969000,
"host_ok": 789357644943662800,
"host_skipped": 6103133485534346000,
"host_unreachable": 5270124757667744000,
"output_size_bytes": 8384655139211878000,
"payload_size_bytes": 3699728170190409700,
"total_hosts": 3416993616293762000,
"total_tasks": 3019149475344072000
},
"pipeline": "Sunt hic.",
"pipeline_execution_id": "Nesciunt aliquid dolorum.",
"pipeline_execution_number": "Dignissimos omnis aut.",
"pipeline_name": "Iure debitis molestias aperiam a alias fugiat.",
"pipeline_stage_id": "Sequi sapiente sunt.",
"plugin_version": "Harum aliquid a amet alias et.",
"results_uuid": "Incidunt maiores accusantium et laborum ea.",
"trigger": {
"Molestias hic ipsum sapiente nobis et labore.": "Fuga nam dignissimos sed maxime harum.",
"Sunt animi et optio optio.": "Et cum.",
"Totam voluptas porro in sint excepturi ea.": "Et vel sed et."
}
},
"org": "a",
"playbooks": "Sit voluptate cum repellendus accusantium.",
"project": "cu"
}Get binary data generated by an account scoped ansible run.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
oOK 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/ansible/data/{id} HTTP/1.1
Host: localhost:80
Harness-Account: o
Accept: */*
binaryRetrieve an account scoped playbook's YAML file from its configured git repository.
Type of ansible resource (playbook or inventory).
playbookPossible values: Identifier of the playbook or inventory.
my-playbookAccount is the internal customer account ID.
jOK 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/ansible/file?resource_type=playbook&identifier=my-playbook HTTP/1.1
Host: localhost:80
Harness-Account: j
Accept: */*
binaryList all playbooks at account scope. Org and project scoped playbooks are not included.
Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by partial name match
""Example: mystaSort order for results
name,ASCExample: name,ASCPossible values: Filter results by tags (OR logic, exact match)
["Eaque et neque et.","Omnis totam dolores maiores qui aperiam perferendis.","Rerum earum id.","Natus minima odit cum modi."]Account is the internal customer account ID.
psyOK 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/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: psy
Accept: */*
[
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
}
]Create a new playbook at account scope.
Account is the internal customer account ID.
t8Install Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionThe unique identifier for this playbook
Assumenda quam sint possimus cupiditate est perspiciatis.Name is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Numquam eos qui.","Quo non."]Created response.
Account is the internal customer account ID.
9Install Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Sit dicta est qui animi.The unique identifier for this playbook
Cupiditate dicta hic.Name is the human readable name
test playbookOrg is the organisation identifier.
xuProject is the project identifier.
vnrRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Possimus itaque illum dolor qui autem.","Officiis laborum a in dolorem."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Saepe labore qui.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/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: t8
Content-Type: application/json
Accept: */*
Content-Length: 1405
{
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Mollitia consequuntur odit non at eius harum.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Non totam pariatur distinctio.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Voluptatem illo.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"identifier": "Voluptas beatae enim.",
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Aliquam ut ut.",
"Itaque qui.",
"Vero quisquam eum laudantium.",
"Et harum."
],
"vars": {
"Voluptatem natus quaerat tempore blanditiis.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"account": "3b",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Nobis suscipit nihil.",
"identifier": "Aut et quis illum corrupti amet.",
"name": "test playbook",
"org": "bv",
"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"
},
{
"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"
},
{
"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": "a",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Consectetur sit voluptates animi modi accusamus.",
"Dolor tempore voluptas laboriosam modi laudantium labore."
],
"updated": 1627686800,
"vars": "Quo expedita suscipit doloremque."
}Show an individual account scoped playbook.
The unique identifier for this playbook
Sequi non enim praesentium et.Account is the internal customer account ID.
tOK response.
Account is the internal customer account ID.
unInstall Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Officia iure labore sapiente.The unique identifier for this playbook
Odio consequatur consequatur.Name is the human readable name
test playbookOrg is the organisation identifier.
u4hProject is the project identifier.
mgRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Sequi ut sed quis illo ducimus.","Voluptatem ut quis deserunt et deleniti.","Eum nostrum quibusdam ex nihil culpa ullam.","Quos veniam accusantium enim."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Sequi consequatur eos voluptas.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/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: t
Accept: */*
{
"account": "49",
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Aspernatur ex doloribus ducimus et quo.",
"identifier": "Necessitatibus nostrum delectus.",
"name": "test playbook",
"org": "m5l",
"project": "5",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Maxime quod voluptas nostrum.",
"Nihil et eum.",
"Veritatis eaque corporis nesciunt distinctio.",
"Dolorum qui quisquam fugit."
],
"updated": 1627686800,
"vars": "Quos consequatur id velit."
}Update an existing account scoped playbook.
The unique identifier for this playbook
Nihil atque ut cupiditate laborum fuga est.Account is the internal customer account ID.
6doInstall Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionName is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Similique maxime ut.","Culpa ut odio suscipit."]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/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 6do
Content-Type: application/json
Accept: */*
Content-Length: 1360
{
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Commodi iure.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Vel ut voluptate repellendus distinctio.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Odio et dolor eos in.",
"Ut libero et.",
"Nobis est et amet sunt est consequatur."
],
"vars": {
"Natus eum iure.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Repellendus aperiam quod suscipit autem commodi hic.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"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"
},
{
"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"
},
{
"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"
}
}Delete an existing account scoped playbook.
The unique identifier for this playbook
Quasi ut exercitationem.Account is the internal customer account ID.
1sqOK response.
No content
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/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 1sq
Accept: */*
No content
Show the Configuration Variable Sets attached to an account scoped playbook, in priority order.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
sOK 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/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: s
Accept: */*
{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Replace the Configuration Variable Sets attached to an account scoped playbook. Array order is the priority order.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
ugConfiguration Variable Sets to attach, in priority order. Replaces whatever is currently attached.
["account.shared_vars","playbook_vars"]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/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: ug
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"variable_sets": [
"account.shared_vars",
"playbook_vars"
]
}{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Show an individual account scoped playbook vars.
Playbook identifier
Ut suscipit rem.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
gOK 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/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: g
Accept: */*
{
"env_vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
],
"vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
]
}Create a new dynamic variable on an account scoped playbook.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
mCreated response.
No content
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/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: m
Content-Type: application/json
Accept: */*
Content-Length: 971
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Update an existing dynamic variable on an account scoped playbook.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
mOK response.
No content
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/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: m
Content-Type: application/json
Accept: */*
Content-Length: 971
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Delete a dynamic variable from an account scoped playbook.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
hUUIDs of environment variables to delete.
["Magnam numquam id delectus.","Saepe eos dolor explicabo nesciunt.","Alias inventore voluptatem deserunt est earum."]UUIDs of Ansible variables to delete.
["Soluta quis et quibusdam.","Et maiores.","Voluptas quia rerum sit animi quo cum."]OK response.
No content
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/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: h
Content-Type: application/json
Accept: */*
Content-Length: 268
{
"env_vars": [
"Qui et voluptatibus esse.",
"Dicta voluptatem quae.",
"Qui ea et nulla animi laborum.",
"Nesciunt et provident placeat unde atque ea."
],
"vars": [
"Iusto dignissimos aut reiciendis dolorem veniam.",
"Qui enim qui.",
"Aspernatur officiis quas eum quia ducimus."
]
}No content
Show the playbook's variables followed by those of its attached Configuration Variable Sets, marking which entry wins each key.
The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
wOK 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/ansible/playbook/{identifier}/vars/merged HTTP/1.1
Host: localhost:80
Harness-Account: w
Accept: */*
{
"environment_variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
],
"variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
]
}List all activities at org scope. Account and project scoped activities are not included.
Org is the organisation identifier.
eLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Sort order for results
created,DESCExample: created,ASCPossible values: Search term to filter by inventory identifier
inventory_1Search term to filter by playbook identifier
playbook_1Activity type filter
Dignissimos fuga ut minus ducimus.Activity status filter
Officiis et.Account is the internal customer account ID.
91eOK 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}/ansible/activities HTTP/1.1
Host: localhost:80
Harness-Account: 91e
Accept: */*
[
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
}
]Show an individual org scoped ansible activity.
Org is the organisation identifier.
o1The unique ID for this activity
Culpa consectetur quasi qui.Account is the internal customer account ID.
asOK response.
Account is the internal customer account ID.
hTimestamp when the resource was created.
1627590400The type of event that occurred
activity-executionPossible values: The unique identifier for this activity
dc538c61-de48-4220-958c-5f3c4f983daaInventories associated with this event
Assumenda ad consequuntur et.Org is the organisation identifier.
yzPlaybooks associated with this event
Occaecati repudiandae maiores.Project is the project identifier.
bj2BadRequestError: 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}/ansible/activities/{id} HTTP/1.1
Host: localhost:80
Harness-Account: as
Accept: */*
{
"account": "kjk",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Provident veniam.",
"metadata": {
"activity_status": "Laudantium explicabo ab consequatur eius quo est.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Sed ipsum.",
"git_commit_message": "Sed provident molestias esse doloribus quaerat.",
"git_commit_sha": "Quam ut.",
"git_repo": "Sapiente dicta et.",
"metrics": {
"circuit_breaker_triggered": true,
"duration_ms": 9161572224745659000,
"host_changed": 5514210248796778000,
"host_failed": 5342935301463969000,
"host_ok": 789357644943662800,
"host_skipped": 6103133485534346000,
"host_unreachable": 5270124757667744000,
"output_size_bytes": 8384655139211878000,
"payload_size_bytes": 3699728170190409700,
"total_hosts": 3416993616293762000,
"total_tasks": 3019149475344072000
},
"pipeline": "Sunt hic.",
"pipeline_execution_id": "Nesciunt aliquid dolorum.",
"pipeline_execution_number": "Dignissimos omnis aut.",
"pipeline_name": "Iure debitis molestias aperiam a alias fugiat.",
"pipeline_stage_id": "Sequi sapiente sunt.",
"plugin_version": "Harum aliquid a amet alias et.",
"results_uuid": "Incidunt maiores accusantium et laborum ea.",
"trigger": {
"Molestias hic ipsum sapiente nobis et labore.": "Fuga nam dignissimos sed maxime harum.",
"Sunt animi et optio optio.": "Et cum.",
"Totam voluptas porro in sint excepturi ea.": "Et vel sed et."
}
},
"org": "3e",
"playbooks": "At quos modi eligendi.",
"project": "63"
}Get binary data generated by an org scoped ansible run.
Org is the organisation identifier.
yThe unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
rlOK 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}/ansible/data/{id} HTTP/1.1
Host: localhost:80
Harness-Account: rl
Accept: */*
binaryRetrieve an org scoped playbook's YAML file from its configured git repository.
Org is the organisation identifier.
pnaType of ansible resource (playbook or inventory).
playbookPossible values: Identifier of the playbook or inventory.
my-playbookAccount 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.
GET /api/orgs/{org}/ansible/file?resource_type=playbook&identifier=my-playbook HTTP/1.1
Host: localhost:80
Harness-Account: 3
Accept: */*
binaryList all playbooks at org scope. Account and project scoped playbooks are not included.
Org is the organisation identifier.
uLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by partial name match
""Example: mystaSort order for results
name,ASCExample: name,DESCPossible values: Filter results by tags (OR logic, exact match)
["Inventore molestias vitae.","Est non ipsam dolor."]Account is the internal customer account ID.
ycbOK 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}/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: ycb
Accept: */*
[
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
}
]Create a new playbook at org scope.
Org is the organisation identifier.
qmpAccount is the internal customer account ID.
leInstall Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionThe unique identifier for this playbook
Impedit dolorum a dolorem tempore.Name is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Impedit assumenda sit cumque id nobis.","Laudantium vero vel explicabo consequatur veniam.","Tenetur dignissimos et.","Enim nulla eos asperiores aut eaque."]Created response.
Account is the internal customer account ID.
mInstall Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Autem blanditiis omnis vel.The unique identifier for this playbook
Aspernatur modi aspernatur quisquam.Name is the human readable name
test playbookOrg is the organisation identifier.
qwProject is the project identifier.
qrRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Repellat fugit ab.","Quisquam ullam cupiditate ea aut fugiat assumenda.","Amet optio."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Repellendus sed eveniet distinctio voluptatem ut modi.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}/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: le
Content-Type: application/json
Accept: */*
Content-Length: 1431
{
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Eius autem et quasi velit vero sint.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"identifier": "Cum porro illum ut et.",
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Dolorem dolores eligendi libero corrupti blanditiis.",
"Molestias accusamus sunt aliquid et.",
"Quos eos hic velit.",
"Qui aut perspiciatis."
],
"vars": {
"Maxime et sequi dolores.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Quia inventore aut.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Tenetur magnam.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"account": "fl",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Sint et atque.",
"identifier": "Pariatur voluptas laborum.",
"name": "test playbook",
"org": "jij",
"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"
},
{
"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"
},
{
"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": "vb0",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Aut dolores vel cumque ut maiores sed.",
"Deserunt nulla impedit corporis officiis.",
"Veritatis numquam nisi minus vitae nemo."
],
"updated": 1627686800,
"vars": "Numquam cumque."
}Show an individual org scoped playbook.
Org is the organisation identifier.
iThe unique identifier for this playbook
Aut fuga expedita laboriosam ea in.Account is the internal customer account ID.
52OK response.
Account is the internal customer account ID.
s8Install Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Ut velit consequatur ut quod dolorem.The unique identifier for this playbook
Corrupti similique est.Name is the human readable name
test playbookOrg is the organisation identifier.
uhkProject is the project identifier.
nfgRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["In et.","Commodi officiis id dolore mollitia eum repudiandae."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Quas placeat tempore sunt quisquam.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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 52
Accept: */*
{
"account": "0h",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Possimus enim reprehenderit.",
"identifier": "Velit illo.",
"name": "test playbook",
"org": "brl",
"project": "yv",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Non accusantium doloribus.",
"Quasi officiis non ducimus sit ipsa aspernatur."
],
"updated": 1627686800,
"vars": "Assumenda exercitationem vitae sint assumenda eos et."
}Update an existing org scoped playbook.
Org is the organisation identifier.
wThe unique identifier for this playbook
Laborum repudiandae aspernatur corporis.Account is the internal customer account ID.
ljInstall Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionName is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Asperiores dolores non.","Quis et qui error necessitatibus."]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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: lj
Content-Type: application/json
Accept: */*
Content-Length: 1196
{
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Facilis hic.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Vel esse fuga officia aperiam.",
"In blanditiis eum facilis et soluta magnam.",
"Dolor quia alias qui qui soluta.",
"Mollitia eaque possimus libero labore."
],
"vars": {
"Doloremque fugit beatae reiciendis.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"In dolores aliquam enim provident est.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"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"
},
{
"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"
},
{
"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"
}
}Delete an existing org scoped playbook.
Org is the organisation identifier.
5The unique identifier for this playbook
Aperiam consequatur qui sed.Account is the internal customer account ID.
293OK response.
No content
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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 293
Accept: */*
No content
Show the Configuration Variable Sets attached to an org scoped playbook, in priority order.
Org is the organisation identifier.
f7The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
otOK 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}/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: ot
Accept: */*
{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Replace the Configuration Variable Sets attached to an org scoped playbook. Array order is the priority order.
Org is the organisation identifier.
2wcThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
s0aConfiguration Variable Sets to attach, in priority order. Replaces whatever is currently attached.
["account.shared_vars","playbook_vars"]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}/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: s0a
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"variable_sets": [
"account.shared_vars",
"playbook_vars"
]
}{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Show an individual org scoped playbook vars.
Org is the organisation identifier.
mh2Playbook identifier
Voluptatem placeat.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
jgfOK 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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: jgf
Accept: */*
{
"env_vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
],
"vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
]
}Create a new dynamic variable on an org scoped playbook.
Org is the organisation identifier.
5The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
vkdCreated response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: vkd
Content-Type: application/json
Accept: */*
Content-Length: 1682
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Update an existing dynamic variable on an org scoped playbook.
Org is the organisation identifier.
o31The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
6koOK response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: 6ko
Content-Type: application/json
Accept: */*
Content-Length: 1208
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Delete a dynamic variable from an org scoped playbook.
Org is the organisation identifier.
shThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
6uUUIDs of environment variables to delete.
["Nostrum vitae id alias sint doloremque.","Voluptatibus facilis cumque accusamus cumque voluptatem.","Repellat esse temporibus pariatur nemo beatae iusto.","Animi id voluptate laudantium."]UUIDs of Ansible variables to delete.
["Non sed asperiores expedita.","Beatae eum aliquid perspiciatis iste.","Est veniam sint in cupiditate reiciendis officia."]OK response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: 6u
Content-Type: application/json
Accept: */*
Content-Length: 176
{
"env_vars": [
"Placeat quos qui dolor et.",
"Sit tenetur."
],
"vars": [
"Ut ipsa ut ut labore fugit.",
"Velit impedit tempora dolorum ut itaque voluptatibus.",
"Dolorem in deleniti."
]
}No content
Show the playbook's variables followed by those of its attached Configuration Variable Sets, marking which entry wins each key.
Org is the organisation identifier.
t9The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
jogOK 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}/ansible/playbook/{identifier}/vars/merged HTTP/1.1
Host: localhost:80
Harness-Account: jog
Accept: */*
{
"environment_variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
],
"variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
]
}List all activities.
Org is the organisation identifier.
raProject is the project identifier.
6Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Sort order for results
created,DESCExample: created,DESCPossible values: Search term to filter by inventory identifier
inventory_1Search term to filter by playbook identifier
playbook_1Activity type filter
Quam aliquid incidunt et a ut voluptate.Activity status filter
Praesentium amet.Account is the internal customer account ID.
qkOK 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}/ansible/activities HTTP/1.1
Host: localhost:80
Harness-Account: qk
Accept: */*
[
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
},
{
"account": "p",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et omnis aliquid soluta.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "9",
"playbooks": "Nostrum qui similique culpa laborum inventore.",
"project": "n"
}
]Show an individual ansible activity.
Org is the organisation identifier.
p5iProject is the project identifier.
1euThe unique ID for this activity
Doloribus minus.Account is the internal customer account ID.
lOK response.
Account is the internal customer account ID.
tvlTimestamp when the resource was created.
1627590400The type of event that occurred
activity-executionPossible values: The unique identifier for this activity
dc538c61-de48-4220-958c-5f3c4f983daaInventories associated with this event
Vel quos.Org is the organisation identifier.
rqPlaybooks associated with this event
Quia officiis corporis impedit.Project is the project identifier.
h9aBadRequestError: 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}/ansible/activities/{id} HTTP/1.1
Host: localhost:80
Harness-Account: l
Accept: */*
{
"account": "f6",
"created": 1627590400,
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Cumque dolor nulla minima.",
"metadata": {
"activity_status": "Laudantium explicabo ab consequatur eius quo est.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Sed ipsum.",
"git_commit_message": "Sed provident molestias esse doloribus quaerat.",
"git_commit_sha": "Quam ut.",
"git_repo": "Sapiente dicta et.",
"metrics": {
"circuit_breaker_triggered": true,
"duration_ms": 9161572224745659000,
"host_changed": 5514210248796778000,
"host_failed": 5342935301463969000,
"host_ok": 789357644943662800,
"host_skipped": 6103133485534346000,
"host_unreachable": 5270124757667744000,
"output_size_bytes": 8384655139211878000,
"payload_size_bytes": 3699728170190409700,
"total_hosts": 3416993616293762000,
"total_tasks": 3019149475344072000
},
"pipeline": "Sunt hic.",
"pipeline_execution_id": "Nesciunt aliquid dolorum.",
"pipeline_execution_number": "Dignissimos omnis aut.",
"pipeline_name": "Iure debitis molestias aperiam a alias fugiat.",
"pipeline_stage_id": "Sequi sapiente sunt.",
"plugin_version": "Harum aliquid a amet alias et.",
"results_uuid": "Incidunt maiores accusantium et laborum ea.",
"trigger": {
"Molestias hic ipsum sapiente nobis et labore.": "Fuga nam dignissimos sed maxime harum.",
"Sunt animi et optio optio.": "Et cum.",
"Totam voluptas porro in sint excepturi ea.": "Et vel sed et."
}
},
"org": "2w",
"playbooks": "Quo eum minima non et blanditiis nobis.",
"project": "323"
}List all stored data for a inventory or playbook.
Org is the organisation identifier.
mProject is the project identifier.
qerInventory search term
Et natus omnis culpa saepe impedit officiis.Playbook search term
Molestias qui at vel.Filter by pipeline execution ID
Tenetur repudiandae hic inventore dolores.Filter by pipeline execution stage ID
Nemo molestias quia similique nihil.Filter by data type
Repellat quia consequatur ullam et aut vitae.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
9kOK 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}/ansible/data HTTP/1.1
Host: localhost:80
Harness-Account: 9k
Accept: */*
[
{
"account": "0e",
"created": 2350256041668392400,
"data_type": "task_results",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et enim.",
"org": "rc",
"pipeline_execution_id": "Aliquid est.",
"pipeline_id": "Enim vero.",
"pipeline_stage_id": "Incidunt nihil.",
"playbooks": "Ea perspiciatis.",
"project": "f",
"stage_id": "Perspiciatis deleniti."
},
{
"account": "0e",
"created": 2350256041668392400,
"data_type": "task_results",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et enim.",
"org": "rc",
"pipeline_execution_id": "Aliquid est.",
"pipeline_id": "Enim vero.",
"pipeline_stage_id": "Incidunt nihil.",
"playbooks": "Ea perspiciatis.",
"project": "f",
"stage_id": "Perspiciatis deleniti."
},
{
"account": "0e",
"created": 2350256041668392400,
"data_type": "task_results",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et enim.",
"org": "rc",
"pipeline_execution_id": "Aliquid est.",
"pipeline_id": "Enim vero.",
"pipeline_stage_id": "Incidunt nihil.",
"playbooks": "Ea perspiciatis.",
"project": "f",
"stage_id": "Perspiciatis deleniti."
},
{
"account": "0e",
"created": 2350256041668392400,
"data_type": "task_results",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Et enim.",
"org": "rc",
"pipeline_execution_id": "Aliquid est.",
"pipeline_id": "Enim vero.",
"pipeline_stage_id": "Incidunt nihil.",
"playbooks": "Ea perspiciatis.",
"project": "f",
"stage_id": "Perspiciatis deleniti."
}
]Store binary data generated by ansible.
Org is the organisation identifier.
p7vProject is the project identifier.
bThe unique identifier for the associated pipeline
Sint officiis.The unique identifier for a stage
Voluptatibus consectetur ab voluptatem et.The unique identifier for the associated pipeline execution
Qui blanditiis iure et numquam aspernatur.The unique identifier for the associated pipeline execution stage
Alias eos quasi vero eum.Type of data stored
task_resultsPossible values: Inventories associated with this event
Maiores voluptas ut exercitationem quas.Playbooks associated with this event
Reiciendis voluptate reprehenderit.Account is the internal customer account ID.
hzSize in bytes of the data.
8780057064829280000OK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaBadRequestError: 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}/ansible/data?data_type=task_results&inventories=Maiores+voluptas+ut+exercitationem+quas.&playbooks=Reiciendis+voluptate+reprehenderit. HTTP/1.1
Host: localhost:80
Harness-Account: hz
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa"
}Get binary data generated by the provisioner, such as plans and state files.
Org is the organisation identifier.
t6aProject is the project identifier.
d0lThe unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
foOK 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}/ansible/data/{id} HTTP/1.1
Host: localhost:80
Harness-Account: fo
Accept: */*
binaryOrg is the organisation identifier.
bProject is the project identifier.
m0hAccount is the internal customer account ID.
mlThe type of event that occurred
activity-executionPossible values: Inventories associated with this event
Officiis et.Playbooks associated with this event
Aliquid esse optio quis.OK response.
No content
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}/ansible/events HTTP/1.1
Host: localhost:80
Harness-Account: ml
Content-Type: application/json
Accept: */*
Content-Length: 1470
{
"event_type": "activity-execution",
"inventories": "Ab labore pariatur excepturi maiores temporibus qui.",
"metadata": {
"activity_status": "Veritatis dolor neque est debitis voluptatibus.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Odit harum quae libero.",
"git_commit_message": "Qui qui.",
"git_commit_sha": "Aperiam qui.",
"git_repo": "Quia facilis et dolorem.",
"metrics": {
"circuit_breaker_triggered": true,
"duration_ms": 2043801709080825000,
"host_changed": 4057267570942028000,
"host_failed": 3707266954518219000,
"host_ok": 4810081728302588000,
"host_skipped": 5346632941462350000,
"host_unreachable": 7779238609871096000,
"output_size_bytes": 1669411483146353000,
"payload_size_bytes": 6855264911990905000,
"total_hosts": 1389352106354418400,
"total_tasks": 5248801648614673000
},
"pipeline": "Ut accusantium fugit aut maiores.",
"pipeline_execution_id": "Fugiat accusantium.",
"pipeline_execution_number": "Nulla fugiat repellat.",
"pipeline_name": "Illo nesciunt odit delectus ut blanditiis.",
"pipeline_stage_id": "Sint perspiciatis debitis labore voluptatem perspiciatis qui.",
"plugin_version": "Ut ut architecto recusandae odio.",
"results_uuid": "Cumque consectetur occaecati.",
"trigger": {
"Et praesentium aspernatur doloremque.": "Fugiat autem voluptate necessitatibus ipsum unde.",
"Sed amet reiciendis quod sed perspiciatis non.": "Et quos.",
"Veritatis perferendis similique quibusdam consequatur.": "Rerum molestias numquam cupiditate est quo."
}
},
"playbooks": "Repellendus nesciunt."
}No content
Retrieve a playbook or plugin inventory YAML file from its configured git repository.
Org is the organisation identifier.
dProject is the project identifier.
jtType of ansible resource (playbook or inventory).
playbookPossible values: Identifier of the playbook or inventory.
my-playbookAccount is the internal customer account ID.
9OK 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}/ansible/file?resource_type=playbook&identifier=my-playbook HTTP/1.1
Host: localhost:80
Harness-Account: 9
Accept: */*
binaryList all hosts across all inventories.
Org is the organisation identifier.
pProject is the project identifier.
d3Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Sort order for results
host_address,ASCExample: updated,DESCPossible values: Filter results by partial host address match
""Example: web-serverFilter results by inventory membership
""Example: production-inventoryFilter results by last activity status
""Example: okFilter results by last activity created time (Unix timestamp in milliseconds) - inclusive start of time range
1627590400000Filter results by last activity created time (Unix timestamp in milliseconds) - inclusive end of time range
1630268800000Account is the internal customer account ID.
7wOK 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}/ansible/hosts HTTP/1.1
Host: localhost:80
Harness-Account: 7w
Accept: */*
[
{
"created": 1627590400,
"host_address": "web-server-1.example.com",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": [
"inventory-1",
"inventory-2"
],
"last_activity": {
"created": 1627590400,
"playbooks": [
"deploy.yml"
],
"status": "ok"
},
"updated": 1627590400
},
{
"created": 1627590400,
"host_address": "web-server-1.example.com",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": [
"inventory-1",
"inventory-2"
],
"last_activity": {
"created": 1627590400,
"playbooks": [
"deploy.yml"
],
"status": "ok"
},
"updated": 1627590400
},
{
"created": 1627590400,
"host_address": "web-server-1.example.com",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": [
"inventory-1",
"inventory-2"
],
"last_activity": {
"created": 1627590400,
"playbooks": [
"deploy.yml"
],
"status": "ok"
},
"updated": 1627590400
},
{
"created": 1627590400,
"host_address": "web-server-1.example.com",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": [
"inventory-1",
"inventory-2"
],
"last_activity": {
"created": 1627590400,
"playbooks": [
"deploy.yml"
],
"status": "ok"
},
"updated": 1627590400
}
]Get details for a single host.
Org is the organisation identifier.
g45Project is the project identifier.
lThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
vlOK response.
Timestamp when the resource was created
1627590400The address of the host (hostname or IP)
web-server-1.example.comThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaList of inventory identifiers this host belongs to
["inventory-1","inventory-2"]Timestamp when the resource was last updated
1627590400BadRequestError: 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}/ansible/hosts/{id} HTTP/1.1
Host: localhost:80
Harness-Account: vl
Accept: */*
{
"created": 1627590400,
"host_address": "web-server-1.example.com",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": [
"inventory-1",
"inventory-2"
],
"last_activity": {
"created": 1627590400,
"playbooks": [
"deploy.yml"
],
"status": "ok"
},
"updated": 1627590400
}List all activities for a specific host.
Org is the organisation identifier.
a1Project is the project identifier.
kThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Sort order for results
created,DESCExample: created,DESCPossible values: Account is the internal customer account ID.
mOK 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}/ansible/hosts/{id}/activities HTTP/1.1
Host: localhost:80
Harness-Account: m
Accept: */*
[
{
"account": "1",
"created": 1627590400,
"data": "Tempore voluptatem impedit fugit.",
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Numquam aut quae et nisi.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "vy",
"playbooks": "Voluptates quae.",
"project": "z0p",
"status": "ok"
},
{
"account": "1",
"created": 1627590400,
"data": "Tempore voluptatem impedit fugit.",
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Numquam aut quae et nisi.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "vy",
"playbooks": "Voluptates quae.",
"project": "z0p",
"status": "ok"
},
{
"account": "1",
"created": 1627590400,
"data": "Tempore voluptatem impedit fugit.",
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Numquam aut quae et nisi.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "vy",
"playbooks": "Voluptates quae.",
"project": "z0p",
"status": "ok"
},
{
"account": "1",
"created": 1627590400,
"data": "Tempore voluptatem impedit fugit.",
"event_type": "activity-execution",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"inventories": "Numquam aut quae et nisi.",
"metadata": {
"activity_status": "Asperiores corrupti eligendi molestiae necessitatibus placeat.",
"filters": "tags=deploy skip-tags=slow limit=web",
"git_branch": "Dolor quasi.",
"git_commit_message": "Incidunt ut quo eius.",
"git_commit_sha": "Eos est.",
"git_repo": "Architecto mollitia ullam quisquam modi.",
"metrics": {
"circuit_breaker_triggered": false,
"duration_ms": 2207448405191504000,
"host_changed": 2079056670978617900,
"host_failed": 8173270070248269000,
"host_ok": 6413547484620333000,
"host_skipped": 287100672014734080,
"host_unreachable": 208021522580766000,
"output_size_bytes": 2358811687401482000,
"payload_size_bytes": 2873522630247883300,
"total_hosts": 576374362686072450,
"total_tasks": 5279973062797507000
},
"pipeline": "Esse quae provident soluta aut nemo veniam.",
"pipeline_execution_id": "Asperiores at alias quia nisi numquam.",
"pipeline_execution_number": "Optio beatae qui tempora molestiae.",
"pipeline_name": "Officiis architecto asperiores quo quisquam fugit est.",
"pipeline_stage_id": "Ut sapiente et rerum et impedit accusamus.",
"plugin_version": "Aut iusto adipisci autem quo eos.",
"results_uuid": "Aut aperiam quasi itaque dolores dolores nihil.",
"trigger": {
"Natus earum molestiae in sunt.": "In et perspiciatis quia qui vero sed."
}
},
"org": "vy",
"playbooks": "Voluptates quae.",
"project": "z0p",
"status": "ok"
}
]List all inventories that a specific host belongs to.
Org is the organisation identifier.
oProject is the project identifier.
1jThe unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
oyrOK 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}/ansible/hosts/{id}/inventories HTTP/1.1
Host: localhost:80
Harness-Account: oyr
Accept: */*
[
{
"account": "sf",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "mw",
"project": "h",
"tags": [
"Ullam sit aut cupiditate quas.",
"Aliquam amet provident inventore cumque eligendi.",
"Atque qui aspernatur repudiandae voluptate consequuntur non."
],
"type": "plugin",
"updated": 1627686800
},
{
"account": "sf",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "mw",
"project": "h",
"tags": [
"Ullam sit aut cupiditate quas.",
"Aliquam amet provident inventore cumque eligendi.",
"Atque qui aspernatur repudiandae voluptate consequuntur non."
],
"type": "plugin",
"updated": 1627686800
},
{
"account": "sf",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "mw",
"project": "h",
"tags": [
"Ullam sit aut cupiditate quas.",
"Aliquam amet provident inventore cumque eligendi.",
"Atque qui aspernatur repudiandae voluptate consequuntur non."
],
"type": "plugin",
"updated": 1627686800
}
]Get aggregated statistics for a specific host.
Org is the organisation identifier.
tProject is the project identifier.
3The unique identifier for this host
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
bneOK response.
Average number of tasks executed across the last 5 runs
12.4Number of failed runs (status failures or unreachable) in the last 7 days
2Playbooks from the most recent execution against this host
["deploy.yml"]Timestamp (ms) of the most recent execution against this host
1627590400000Percentage of successful runs in the last 30 days (0-100)
95.5Total number of runs in the last 30 days
42BadRequestError: 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}/ansible/hosts/{id}/stats HTTP/1.1
Host: localhost:80
Harness-Account: bne
Accept: */*
{
"avg_tasks_last_5_runs": 12.4,
"failures_7d": 2,
"last_playbook": [
"deploy.yml"
],
"last_playbook_at": 1627590400000,
"success_rate_30d": 95.5,
"total_runs_30d": 42
}Export all filtered hosts to CSV format. Includes all matching hosts (not paginated).
Org is the organisation identifier.
tProject is the project identifier.
ckjSearch term to filter hosts by name
Sit voluptatem qui voluptas at expedita molestiae.Filter results by inventory identifier
Vel dolorum nihil in illum et quo.Filter results by host status (based on most recent activity)
okPossible values: Filter results by last activity created time (Unix timestamp in milliseconds) - inclusive start of time range
1620268800000Filter results by last activity created time (Unix timestamp in milliseconds) - inclusive end of time range
1630268800000Account is the internal customer account ID.
om1OK response.
[68,101,98,105,116,105,115,32,98,108,97,110,100,105,116,105,105,115,46]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}/ansible/hosts/export HTTP/1.1
Host: localhost:80
Harness-Account: om1
Accept: */*
[
86,
101,
108,
32,
118,
111,
108,
117,
112,
116,
97,
116,
117,
109,
32,
109,
105,
110,
117,
115,
32,
97,
117,
116,
101,
109,
32,
118,
105,
116,
97,
101,
32,
97,
98,
46
]Get aggregated host counts grouped by the latest activity status, scoped to an account/org/project.
Org is the organisation identifier.
a23Project is the project identifier.
66Filter results by partial host address match
""Example: web-serverFilter results by inventory membership
""Example: production-inventoryFilter results by latest activity created time (Unix timestamp in milliseconds) - inclusive start of time range
1627590400000Filter results by latest activity created time (Unix timestamp in milliseconds) - inclusive end of time range
1630268800000Account is the internal customer account ID.
1OK response.
Number of hosts whose latest activity status is 'changed'
4Number of hosts whose latest activity status is 'failures'
0Number of hosts whose latest activity status is 'ignored'
0Number of hosts whose latest activity status is 'ok'
3Number of hosts whose latest activity status is 'rescued'
0Number of hosts whose latest activity status is 'skipped'
0Total number of hosts matching the filters
7Number of hosts with no activity rows (no derivable latest status)
0Number of hosts whose latest activity status is 'unreachable'
0BadRequestError: 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}/ansible/hosts/summary HTTP/1.1
Host: localhost:80
Harness-Account: 1
Accept: */*
{
"changed": 4,
"failures": 0,
"ignored": 0,
"ok": 3,
"rescued": 0,
"skipped": 0,
"total": 7,
"unknown": 0,
"unreachable": 0
}List all inventories.
Org is the organisation identifier.
4Project is the project identifier.
7Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by partial name match
""Example: mystaSort order for results
name,ASCExample: name,ASCPossible values: Include inventory details
falseExample: falseFilter results by tags (OR logic, exact match)
["Culpa enim qui nesciunt non reiciendis perspiciatis.","Ut fugiat iste eaque accusantium autem.","Doloribus incidunt ut.","Labore et quia voluptatem non."]Account is the internal customer account ID.
v36OK 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}/ansible/inventory HTTP/1.1
Host: localhost:80
Harness-Account: v36
Accept: */*
[
{
"account": "vja",
"created": 1627590400,
"data": "{ \"hosts\": { \"host1.example.com\": null, \"host2.example.com\": null }}",
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "ff",
"project": "6n",
"tags": [
"Voluptatem a porro cum.",
"Aliquam adipisci et aut molestias omnis iste.",
"Modi vel dicta velit."
],
"type": "remote",
"updated": 1627686800
},
{
"account": "vja",
"created": 1627590400,
"data": "{ \"hosts\": { \"host1.example.com\": null, \"host2.example.com\": null }}",
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "ff",
"project": "6n",
"tags": [
"Voluptatem a porro cum.",
"Aliquam adipisci et aut molestias omnis iste.",
"Modi vel dicta velit."
],
"type": "remote",
"updated": 1627686800
},
{
"account": "vja",
"created": 1627590400,
"data": "{ \"hosts\": { \"host1.example.com\": null, \"host2.example.com\": null }}",
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "ff",
"project": "6n",
"tags": [
"Voluptatem a porro cum.",
"Aliquam adipisci et aut molestias omnis iste.",
"Modi vel dicta velit."
],
"type": "remote",
"updated": 1627686800
}
]Create a new inventory.
Org is the organisation identifier.
zjoProject is the project identifier.
qeAccount is the internal customer account ID.
hDescription documents the inventory purpose and usage
Production infrastructure inventoryThe unique identifier for this inventory
test_inventoryName is the human readable name
test inventoryTags associated with the inventory
["Rerum illum debitis quia.","Consectetur quia.","Est similique aut rerum et."]Type indicates what kind of inventory this is
pluginPossible values: Created response.
Account is the internal customer account ID.
xTimestamp when the resource was created.
1627590400Description documents the inventory purpose and usage
Production infrastructure inventoryThe unique identifier for this inventory
test_inventoryName is the human readable name
test inventoryOrg is the organisation identifier.
7Project is the project identifier.
y8hTags associated with the inventory
["Pariatur eum esse cum explicabo.","Quasi possimus veritatis animi excepturi."]Type indicates what kind of inventory this is
dynamicPossible values: Timestamp when the resource was last updated.
1627686800BadRequestError: 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}/ansible/inventory HTTP/1.1
Host: localhost:80
Harness-Account: h
Content-Type: application/json
Accept: */*
Content-Length: 1169
{
"description": "Production infrastructure inventory",
"dynamic_groups": [
{
"configuration": {
"host_address_attribute": "<+attributes.public_dns>",
"include_conditions": [
{
"attribute": "tag.environment",
"operator": "equals",
"value": "prod"
}
],
"resource_type": "aws_instance"
},
"connector_identifier": "my-workspace",
"connector_type": "workspace"
}
],
"groups": [
{
"hosts": [
{
"host1.example.com": null
}
],
"name": "my-group"
}
],
"identifier": "test_inventory",
"name": "test inventory",
"plugin_options": {
"inline_yaml": "all:\\n hosts:\\n localhost:\\n",
"provider_connector_identifier": "my_aws_connector",
"provider_connector_type": "aws",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "account.my_git_connector",
"repository_path": "inventories/plugin-inventory.yml",
"source_type": "git"
},
"remote_source": {
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "account.my_git_connector",
"repository_path": "inventories/production/hosts.yml"
},
"tags": [
"Corrupti laboriosam quia sit ab non reprehenderit.",
"Iste modi sapiente vitae nemo."
],
"type": "remote",
"vars": [
{
"name": "my-var",
"value": "my-value"
}
]
}{
"account": "t",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "04w",
"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"
},
{
"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"
},
{
"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": "txf",
"tags": [
"Iusto dolorem.",
"Et voluptatem nemo velit rerum.",
"Vel esse cumque iste accusantium ut quisquam.",
"Ullam facere dolorem sequi."
],
"type": "plugin",
"updated": 1627686800
}Show an individual inventory.
Org is the organisation identifier.
ch4Project is the project identifier.
smInventory identifier
Eveniet commodi aperiam.Use arrays when displaying inventory data
falseExample: trueAccount is the internal customer account ID.
i9OK response.
Account is the internal customer account ID.
gnTimestamp when the resource was created.
1627590400The data representing the inventory
{ "hosts": { "host1.example.com": null, "host2.example.com": null }}Description documents the inventory purpose and usage
Production infrastructure inventoryThe unique identifier for this inventory
test_inventoryName is the human readable name
test inventoryOrg is the organisation identifier.
q08Project is the project identifier.
jtTags associated with the inventory
["Voluptate non vitae.","Quo pariatur."]Type indicates what kind of inventory this is
manualPossible values: Timestamp when the resource was last updated.
1627686800BadRequestError: 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}/ansible/inventory/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: i9
Accept: */*
{
"account": "vs",
"created": 1627590400,
"data": "{ \"hosts\": { \"host1.example.com\": null, \"host2.example.com\": null }}",
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "gi",
"project": "lb",
"tags": [
"Amet nostrum nisi officia nesciunt placeat minus.",
"Repudiandae et ratione beatae.",
"Eum dolorum ad."
],
"type": "plugin",
"updated": 1627686800
}Update an existing inventory.
Org is the organisation identifier.
gProject is the project identifier.
49cThe unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
vThe data representing the inventory
{ "hosts": { "host1.example.com": null, "host2.example.com": null }}Description documents the inventory purpose and usage
Production infrastructure inventoryName is the human readable name
test inventoryTags associated with the inventory
["Modi atque.","Quam omnis excepturi in quo.","Consequatur error."]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}/ansible/inventory/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: v
Content-Type: application/json
Accept: */*
Content-Length: 266
{
"data": "{ \"hosts\": { \"host1.example.com\": null, \"host2.example.com\": null }}",
"description": "Production infrastructure inventory",
"name": "test inventory",
"tags": [
"Provident rem sit debitis.",
"Nostrum quo modi minus iure possimus.",
"Ipsum praesentium ipsam."
]
}{
"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"
},
{
"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"
},
{
"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"
}
}Delete an existing inventory.
Org is the organisation identifier.
u6rProject is the project identifier.
sThe unique identifier for this inventory
Adipisci ipsam repellendus.Account is the internal customer account ID.
0tOK response.
No content
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}/ansible/inventory/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 0t
Accept: */*
No content
Show an individual inventory as YAML.
Org is the organisation identifier.
jProject is the project identifier.
7The unique identifier for this inventory
Architecto deleniti at omnis dolor et ad.Account is the internal customer account ID.
8oOK 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}/ansible/inventory/{identifier}/ansible HTTP/1.1
Host: localhost:80
Harness-Account: 8o
Accept: */*
Et totam quam odit.: Iure fugiat vel fugit magni odit.
Show the Configuration Variable Sets attached to an inventory, in priority order.
Org is the organisation identifier.
wProject is the project identifier.
6The unique identifier for this inventory
In molestiae repellat molestiae.Account is the internal customer account ID.
mOK 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}/ansible/inventory/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: m
Accept: */*
{
"variable_sets": [
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
}
]
}Replace the Configuration Variable Sets attached to an inventory. Array order is the priority order.
Org is the organisation identifier.
f7Project is the project identifier.
nThe unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
0a4Configuration Variable Sets to attach, in priority order. Replaces whatever is currently attached.
["account.shared_vars","inventory_vars"]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}/ansible/inventory/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: 0a4
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"variable_sets": [
"account.shared_vars",
"inventory_vars"
]
}{
"variable_sets": [
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
},
{
"account": "Aliquid et tempore qui fuga.",
"identifier": "Consectetur vitae voluptatibus facere at.",
"name": "Illum ea qui qui in debitis est.",
"org": "Ipsum magni.",
"priority": 7430631998693841000,
"project": "Possimus voluptas sed amet repellendus.",
"variable_set": "account.shared_vars"
}
]
}Show an individual inventory's groups.
Org is the organisation identifier.
9Project is the project identifier.
hphInventory identifier
Ex nostrum corrupti quasi voluptatibus et.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
58OK 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}/ansible/inventory/{identifier}/groups HTTP/1.1
Host: localhost:80
Harness-Account: 58
Accept: */*
{
"groups": [
"Corrupti ut ut qui harum.",
"Dolor sed iste blanditiis qui eaque.",
"Et voluptate non ut eius veritatis nemo.",
"Molestiae libero placeat est."
]
}Show an individual inventory hosts.
Org is the organisation identifier.
6yProject is the project identifier.
90tInventory identifier
Saepe explicabo incidunt autem architecto.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by group
""Example: Corrupti sit dolore tenetur nobis.Account is the internal customer account ID.
yuOK 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}/ansible/inventory/{identifier}/hosts HTTP/1.1
Host: localhost:80
Harness-Account: yu
Accept: */*
{
"hosts": [
{
"created": 3168776483555413500,
"groups": [
"Suscipit qui animi est magnam qui.",
"Qui ut repudiandae a modi deleniti laudantium.",
"Et fuga rerum aut.",
"Autem sit fugiat facere sit voluptatem."
],
"host_address": "host1.example.com",
"updated": 7149443571064899000,
"vars": [
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
},
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
}
]
},
{
"created": 3168776483555413500,
"groups": [
"Suscipit qui animi est magnam qui.",
"Qui ut repudiandae a modi deleniti laudantium.",
"Et fuga rerum aut.",
"Autem sit fugiat facere sit voluptatem."
],
"host_address": "host1.example.com",
"updated": 7149443571064899000,
"vars": [
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
},
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
}
]
},
{
"created": 3168776483555413500,
"groups": [
"Suscipit qui animi est magnam qui.",
"Qui ut repudiandae a modi deleniti laudantium.",
"Et fuga rerum aut.",
"Autem sit fugiat facere sit voluptatem."
],
"host_address": "host1.example.com",
"updated": 7149443571064899000,
"vars": [
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
},
{
"file_name": "Ea iste sunt ab accusantium.",
"key": "vq",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Provident veritatis dolor.",
"value_type": "Tenetur enim."
}
]
}
]
}Create a new inventory host.
Org is the organisation identifier.
cProject is the project identifier.
7waThe unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
41Groups is the list of groups the host belongs to.
["Et aut voluptatem eum voluptatibus in temporibus.","Ipsa impedit possimus modi esse sit autem."]Host address is the address of the host.
host1.example.comCreated response.
No content
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}/ansible/inventory/{identifier}/hosts HTTP/1.1
Host: localhost:80
Harness-Account: 41
Content-Type: application/json
Accept: */*
Content-Length: 1102
{
"env_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"groups": [
"Eligendi in et.",
"Nemo maxime."
],
"host_address": "host1.example.com",
"vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
]
}No content
Replace the data of an existing static (manual) Ansible inventory by parsing YAML or INI content. Preserves secret UUIDs for keys carried over.
Org is the organisation identifier.
fProject is the project identifier.
c3The identifier of the inventory to replace.
lirAccount is the internal customer account ID.
wuhRaw inventory content.
oSource format of the content.
iniPossible values: OK response.
Warnings surfaced during replace.
["Sequi impedit ex perferendis pariatur quia.","Quasi voluptatem alias labore eum ratione."]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}/ansible/inventory/{identifier}/import HTTP/1.1
Host: localhost:80
Harness-Account: wuh
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"content": "npr",
"format": "ini"
}{
"warnings": [
"Reprehenderit cupiditate qui aliquid qui est tempore.",
"Vero est ipsa provident soluta."
]
}Update an existing plugin inventory configuration.
Org is the organisation identifier.
el7Project is the project identifier.
0p2Inventory identifier
Et ut culpa.Account is the internal customer account ID.
lw4OK 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}/ansible/inventory/{identifier}/plugin HTTP/1.1
Host: localhost:80
Harness-Account: lw4
Content-Type: application/json
Accept: */*
Content-Length: 358
{
"plugin_options": {
"inline_yaml": "all:\\n hosts:\\n localhost:\\n",
"provider_connector_identifier": "my_aws_connector",
"provider_connector_type": "aws",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "account.my_git_connector",
"repository_path": "inventories/plugin-inventory.yml",
"source_type": "git"
}
}{
"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"
},
{
"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"
},
{
"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"
}
}Update the git source of an existing remote inventory.
Org is the organisation identifier.
ueoProject is the project identifier.
xInventory identifier
Consequatur qui qui optio.Account is the internal customer account ID.
rvOK 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}/ansible/inventory/{identifier}/remote HTTP/1.1
Host: localhost:80
Harness-Account: rv
Content-Type: application/json
Accept: */*
Content-Length: 202
{
"remote_source": {
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "account.my_git_connector",
"repository_path": "inventories/production/hosts.yml"
}
}{
"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"
},
{
"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"
},
{
"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"
}
}Show an individual inventory vars.
Org is the organisation identifier.
kqProject is the project identifier.
i1Inventory identifier
Nobis nulla voluptatem vitae tempore eos.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
oOK 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}/ansible/inventory/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: o
Accept: */*
{
"env_vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
],
"vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
]
}Create new inventory variables.
Org is the organisation identifier.
tProject is the project identifier.
q2The unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
bqCreated response.
No content
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}/ansible/inventory/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: bq
Content-Type: application/json
Accept: */*
Content-Length: 1445
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Update existing inventory variables.
Org is the organisation identifier.
21Project is the project identifier.
xd9The unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
oOK response.
No content
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}/ansible/inventory/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: o
Content-Type: application/json
Accept: */*
Content-Length: 1445
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Show the inventory's variables followed by those of its attached Configuration Variable Sets, marking which entry wins each key.
Org is the organisation identifier.
7Project is the project identifier.
mThe unique identifier for this inventory
Expedita pariatur occaecati.Account is the internal customer account ID.
y7OK 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}/ansible/inventory/{identifier}/vars/merged HTTP/1.1
Host: localhost:80
Harness-Account: y7
Accept: */*
{
"environment_variables": [
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
}
],
"variables": [
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
},
{
"associatedVariableSet": "Culpa corporis soluta.",
"file_name": "Aut reprehenderit dolor aliquam beatae magnam.",
"inUse": true,
"isLocked": false,
"key": "Cum sint error sunt.",
"priority": 8347368980599866000,
"source": "variableSet",
"uuid": "Cum aut id rerum atque qui.",
"value": "Dolorem similique deserunt doloremque veritatis.",
"value_type": "Esse omnis."
}
]
}Create a new inventory group.
Org is the organisation identifier.
zruProject is the project identifier.
gThe unique identifier for this inventory
test_inventoryAccount is the internal customer account ID.
vConnector identifier is the connector identifier to use.
my_aws_connectorConnector Type is the type of connector to use.
workspacePossible values: List of host addresses that belong to the group
["Voluptas qui vero est.","Ea non voluptatem vel neque qui praesentium."]The identifier of the group
test_groupName is the friendly name of the group.
My GroupCreated response.
No content
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}/ansible/inventory/{inventory_identifier}/groups HTTP/1.1
Host: localhost:80
Harness-Account: v
Content-Type: application/json
Accept: */*
Content-Length: 2445
{
"configuration": {
"host_address_attribute": "<+attributes.public_dns>",
"resource_type": "aws_instance",
"selectors": [
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
}
]
},
"connector_identifier": "my_aws_connector",
"connector_type": "workspace",
"dynamic_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"env_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"hosts": [
"Sint nam.",
"Deserunt sed.",
"Numquam molestiae explicabo quos quis."
],
"identifier": "test_group",
"name": "My Group",
"vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
]
}No content
Update an existing inventory group.
Org is the organisation identifier.
mzProject is the project identifier.
xeThe unique identifier for this inventory
test_inventoryThe identifier of the group
test_groupAccount is the internal customer account ID.
0Connector identifier is the connector identifier to use.
my_aws_connectorConnector Type is the type of connector to use.
workspacePossible values: List of host addresses that belong to the group
["Rem odio aspernatur quidem.","Et et qui libero a consequatur quia."]Name is the friendly name of the group.
My GroupOK response.
No content
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}/ansible/inventory/{inventory_identifier}/groups/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 0
Content-Type: application/json
Accept: */*
Content-Length: 2833
{
"configuration": {
"host_address_attribute": "<+attributes.public_dns>",
"resource_type": "aws_instance",
"selectors": [
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
},
{
"attribute": "<+attributes.region>",
"operator": "equals",
"value": "europe"
}
]
},
"connector_identifier": "my_aws_connector",
"connector_type": "workspace",
"dynamic_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"env_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"hosts": [
"In quis sit molestiae itaque mollitia.",
"Facere inventore officiis dicta labore."
],
"name": "My Group",
"vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
]
}No content
Delete an existing inventory group.
Org is the organisation identifier.
5bProject is the project identifier.
mfoThe unique identifier for this inventory
test_inventoryThe identifier of the group
test_groupAccount is the internal customer account ID.
w5aOK response.
No content
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}/ansible/inventory/{inventory_identifier}/groups/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: w5a
Accept: */*
No content
Update an existing inventory host.
Org is the organisation identifier.
0pProject is the project identifier.
3The unique identifier for this inventory
test_inventoryHost address is the address of the host.
host1.example.comAccount is the internal customer account ID.
ojGroups is the list of groups the host belongs to.
["Voluptatem enim aspernatur vel eum.","Voluptatem consequatur maiores nemo.","Rem iste maiores est at."]OK response.
No content
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}/ansible/inventory/{inventory_identifier}/hosts/{host_address} HTTP/1.1
Host: localhost:80
Harness-Account: oj
Content-Type: application/json
Accept: */*
Content-Length: 1405
{
"env_vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
],
"groups": [
"Eos non placeat incidunt error.",
"Enim molestiae molestiae et quidem deleniti ut.",
"Vitae omnis qui eum dolores.",
"Fugit qui hic officia consequuntur excepturi commodi."
],
"vars": [
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
{
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
]
}No content
Delete a inventory host.
Org is the organisation identifier.
vsProject is the project identifier.
0zmThe unique identifier for this inventory
test_inventoryHost address is the address of the host.
host1.example.comAccount is the internal customer account ID.
op1OK response.
No content
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}/ansible/inventory/{inventory_identifier}/hosts/{host_address} HTTP/1.1
Host: localhost:80
Harness-Account: op1
Accept: */*
No content
Create a new static (manual) Ansible inventory by parsing YAML or INI content.
Org is the organisation identifier.
ubProject is the project identifier.
07Account is the internal customer account ID.
bRaw inventory content as a string (paste or client-read file).
0Source format of the content.
iniPossible values: The identifier of the new inventory.
dvDisplay name of the new inventory.
5w0Optional tags to apply to the new inventory.
["Et et facere laboriosam aut est et.","Numquam atque.","Sit et.","Placeat dolor necessitatibus fuga et aut qui."]Created response.
Warnings surfaced during import (lossy conversions, flattened groups, etc.).
["Voluptas officiis facilis est.","Labore sequi.","Ut libero.","Reiciendis voluptatem reiciendis laboriosam eos accusamus."]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}/ansible/inventory/import HTTP/1.1
Host: localhost:80
Harness-Account: b
Content-Type: application/json
Accept: */*
Content-Length: 206
{
"content": "h",
"format": "ini",
"identifier": "o",
"name": "e",
"tags": [
"Vitae aut voluptatem corporis.",
"Quibusdam et sapiente accusantium sed.",
"Et libero quae laboriosam ut.",
"Est commodi sed natus tempora."
]
}{
"inventory": {
"account": "sf",
"created": 1627590400,
"description": "Production infrastructure inventory",
"identifier": "test_inventory",
"name": "test inventory",
"org": "mw",
"project": "h",
"tags": [
"Ullam sit aut cupiditate quas.",
"Aliquam amet provident inventore cumque eligendi.",
"Atque qui aspernatur repudiandae voluptate consequuntur non."
],
"type": "plugin",
"updated": 1627686800
},
"warnings": [
"Sint ut.",
"Libero impedit.",
"Occaecati sequi.",
"Pariatur veniam dolore quod."
]
}List all playbooks.
Org is the organisation identifier.
ugjProject is the project identifier.
rzwLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by partial name match
""Example: mystaSort order for results
name,ASCExample: name,ASCPossible values: Filter results by tags (OR logic, exact match)
["Id aperiam dolor illo eos deserunt deleniti.","Quam minus consequatur et iure."]Account is the internal customer account ID.
iz5OK 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}/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: iz5
Accept: */*
[
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
},
{
"account": "00",
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Esse eaque dolorem sit voluptatem velit fuga.",
"identifier": "Repellendus sed ipsam eligendi est et nobis.",
"name": "test playbook",
"org": "m",
"project": "2ue",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Minus hic blanditiis magnam culpa delectus.",
"Non est aut aliquam architecto ea.",
"Officiis veniam.",
"Odit hic cumque enim mollitia a velit."
],
"updated": 1627686800,
"vars": "Incidunt eum voluptatum ut."
}
]Create a new playbook.
Org is the organisation identifier.
wProject is the project identifier.
5aAccount is the internal customer account ID.
5hInstall Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionThe unique identifier for this playbook
Hic incidunt consectetur et.Name is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Quia qui vero omnis qui.","Quis sed."]Created response.
Account is the internal customer account ID.
xkaInstall Ansible Galaxy dependencies
falseExample: falsePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Doloribus odio alias fuga error et aspernatur.The unique identifier for this playbook
Vel sunt quis repellendus voluptatem et dolor.Name is the human readable name
test playbookOrg is the organisation identifier.
dProject is the project identifier.
41Repository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Tempore sit quod ut.","Est voluptatem ea deserunt.","Natus voluptatum doloremque voluptas minima et.","Autem voluptatum cumque cum porro voluptate at."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Repellendus dolore sapiente consectetur laudantium.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}/ansible/playbook HTTP/1.1
Host: localhost:80
Harness-Account: 5h
Content-Type: application/json
Accept: */*
Content-Length: 1399
{
"ansible_galaxy": false,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Expedita eos.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"identifier": "Voluptates explicabo ea et.",
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Labore aut asperiores ducimus reiciendis ut.",
"Similique dolorum ullam id excepturi soluta beatae."
],
"vars": {
"Atque vel illo dignissimos.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Doloremque et animi laboriosam tempora nesciunt.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
},
"Id quis.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"account": "7tp",
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Vel sint occaecati repudiandae et sit.",
"identifier": "Quis reprehenderit minima commodi.",
"name": "test playbook",
"org": "d0",
"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"
},
{
"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"
},
{
"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": "j",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Non fugiat pariatur at.",
"Ratione odio cum."
],
"updated": 1627686800,
"vars": "Quaerat rerum delectus corporis molestiae temporibus."
}Show an individual playbook.
Org is the organisation identifier.
coxProject is the project identifier.
yjThe unique identifier for this playbook
Quaerat incidunt explicabo.Account is the internal customer account ID.
gdOK response.
Account is the internal customer account ID.
aInstall Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlTimestamp when the resource was created.
1627590400Description documents the playbook purpose and usage
Playbook for deploying web services to productionThe environment vars in the playbook
Quo tempore consequuntur accusamus.The unique identifier for this playbook
Beatae eum cumque corporis est amet unde.Name is the human readable name
test playbookOrg is the organisation identifier.
iw3Project is the project identifier.
1zRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Consequatur sunt.","Laudantium beatae nesciunt praesentium.","Repudiandae rerum vero earum incidunt rerum."]Timestamp when the resource was last updated.
1627686800The vars in the playbook
Debitis molestiae 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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: gd
Accept: */*
{
"account": "xo",
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"created": 1627590400,
"description": "Playbook for deploying web services to production",
"env_vars": "Et et alias aut odio alias accusantium.",
"identifier": "Quia quo aut minima.",
"name": "test playbook",
"org": "vh",
"project": "gnb",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Dignissimos sapiente ipsam necessitatibus laudantium libero.",
"Quod provident distinctio ea quos vero laboriosam."
],
"updated": 1627686800,
"vars": "In rerum eius."
}Update an existing playbook.
Org is the organisation identifier.
u8mProject is the project identifier.
aswThe unique identifier for this playbook
Ipsam cupiditate.Account is the internal customer account ID.
7Install Ansible Galaxy dependencies
falseExample: truePath to Ansible Galaxy requirements file
requirements.ymlDescription documents the playbook purpose and usage
Playbook for deploying web services to productionName is the human readable name
test playbookRepository is the name of the repository to use.
my-repoRepository Branch in which the playbook should be accessed.
mainRepository Commit/Tag in which the playbook should be accessed.
abc10edRepository Connector is the reference to the connector to use for this playbook.
my-connectorRepository Path is the path in which the playbook resides.
""Example: playbooks/Tags associated with the playbook
["Ab debitis impedit voluptatem nulla et molestias.","Velit omnis quae.","Vitae neque vel nostrum officiis aspernatur."]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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: 7
Content-Type: application/json
Accept: */*
Content-Length: 929
{
"ansible_galaxy": true,
"ansible_galaxy_requirements_file": "requirements.yml",
"description": "Playbook for deploying web services to production",
"env_vars": {
"Ex impedit consequuntur eligendi voluptatibus.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
},
"name": "test playbook",
"repository": "my-repo",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "my-connector",
"repository_path": "playbooks/",
"tags": [
"Alias quidem deserunt inventore molestiae.",
"Delectus mollitia.",
"Fugit provident necessitatibus rerum."
],
"vars": {
"Non ullam rerum aut quia.": {
"file_name": "Nihil accusantium odio itaque fugiat maiores.",
"key": "2",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Nam veniam nihil provident ut.",
"value_type": "Sequi aut omnis nemo aut."
}
}
}{
"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"
},
{
"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"
},
{
"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"
}
}Delete an existing playbook.
Org is the organisation identifier.
z1zProject is the project identifier.
3lThe unique identifier for this playbook
Ut sapiente et et voluptatibus non.Account is the internal customer account ID.
yteOK response.
No content
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}/ansible/playbook/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: yte
Accept: */*
No content
Show the Configuration Variable Sets attached to a playbook, in priority order.
Org is the organisation identifier.
wvsProject is the project identifier.
dfThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
hz4OK 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}/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: hz4
Accept: */*
{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Replace the Configuration Variable Sets attached to a playbook. Array order is the priority order.
Org is the organisation identifier.
sProject is the project identifier.
9The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
q2wConfiguration Variable Sets to attach, in priority order. Replaces whatever is currently attached.
["account.shared_vars","playbook_vars"]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}/ansible/playbook/{identifier}/configuration-variable-sets HTTP/1.1
Host: localhost:80
Harness-Account: q2w
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"variable_sets": [
"account.shared_vars",
"playbook_vars"
]
}{
"variable_sets": [
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
},
{
"account": "Eaque odio.",
"identifier": "Harum facere et.",
"name": "Perspiciatis quod est sed architecto.",
"org": "Est iure at voluptas recusandae ut hic.",
"priority": 6654801999267750000,
"project": "Ullam nobis qui.",
"variable_set": "account.shared_vars"
}
]
}Show an individual playbook vars.
Org is the organisation identifier.
n2Project is the project identifier.
iPlaybook identifier
Quos voluptas dolorem natus omnis eveniet.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
qw5OK 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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: qw5
Accept: */*
{
"env_vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
],
"vars": [
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
},
{
"created": "Suscipit et earum aut distinctio.",
"file_name": "Vel blanditiis labore consectetur.",
"key": "i",
"updated": "Dignissimos ut nobis sunt natus.",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Magnam a ut quas ea possimus omnis.",
"value_type": "Et enim est totam nihil.",
"var_type": "Rerum ut numquam incidunt facere vero."
}
]
}Create a new dynamic playbook variable.
Org is the organisation identifier.
rvkProject is the project identifier.
8etThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
54dCreated response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: 54d
Content-Type: application/json
Accept: */*
Content-Length: 1208
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Update an existing dynamic playbook variable.
Org is the organisation identifier.
dfProject is the project identifier.
iThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
bOK response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: b
Content-Type: application/json
Accept: */*
Content-Length: 1445
{
"env_vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
],
"vars": [
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
},
{
"file_name": "Eaque quisquam quo culpa totam eligendi et.",
"key": "hp",
"uuid": "123e4567-e89b-12d3-a456-426655440000",
"value": "Sed autem autem.",
"value_type": "Vel dolore dolorem minima excepturi.",
"var_type": "Et vero qui quam doloribus."
}
]
}No content
Delete a dynamic playbook variable.
Org is the organisation identifier.
f2mProject is the project identifier.
iThe unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
h95UUIDs of environment variables to delete.
["Sit modi aspernatur.","Ut facere consectetur labore quae eum dolorum."]UUIDs of Ansible variables to delete.
["Natus velit sint a.","Porro dicta voluptas officiis voluptas eum.","Assumenda et quasi.","Ut repellat voluptas."]OK response.
No content
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}/ansible/playbook/{identifier}/vars HTTP/1.1
Host: localhost:80
Harness-Account: h95
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"env_vars": [
"Et tenetur et voluptate.",
"Magni dolorem.",
"Sit sequi odio voluptas quia.",
"Quam similique beatae ex quos doloribus qui."
],
"vars": [
"Consequatur incidunt consectetur distinctio et consequatur.",
"Consequatur dolorum voluptas nihil.",
"Optio porro.",
"Dolor id illum."
]
}No content
Show the playbook's variables followed by those of its attached Configuration Variable Sets, marking which entry wins each key.
Org is the organisation identifier.
eProject is the project identifier.
236The unique identifier for this playbook
test_playbookAccount is the internal customer account ID.
ah8OK 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}/ansible/playbook/{identifier}/vars/merged HTTP/1.1
Host: localhost:80
Harness-Account: ah8
Accept: */*
{
"environment_variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
],
"variables": [
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
},
{
"associatedVariableSet": "Eos iusto.",
"file_name": "Delectus magnam ex cum.",
"inUse": false,
"isLocked": false,
"key": "Eligendi nam maxime dolores et blanditiis aut.",
"priority": 263786966037862850,
"source": "playbook",
"uuid": "Iure labore non et.",
"value": "Rem consequatur sed.",
"value_type": "Eos tempora perspiciatis repellat in a."
}
]
}Store ansible run results and create an activity record in a single call.
Org is the organisation identifier.
wProject is the project identifier.
bsThe unique identifier for the associated pipeline
Necessitatibus molestias eligendi dolorem inventore ut.The unique identifier for a stage
Aut nihil porro animi eaque dolores veniam.The unique identifier for the associated pipeline execution
Ratione blanditiis a rerum.The unique identifier for the associated pipeline execution stage
Dolore ex perferendis voluptate accusamus.Type of data stored
task_resultsPossible values: Inventories associated with this event
Pariatur ea expedita nisi deleniti.Playbooks associated with this event
Quibusdam est est et.The type of event that occurred.
activity-dry-run-executionPossible values: JSON-encoded activity metadata (activity_status, git_branch, git_repo, etc.).
Exercitationem sed id modi eum consequatur id.Account is the internal customer account ID.
zSize in bytes of the data.
1597587030943599600OK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaBadRequestError: 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}/ansible/results?data_type=task_results&inventories=Pariatur+ea+expedita+nisi+deleniti.&playbooks=Quibusdam+est+est+et.&event_type=activity-dry-run-execution HTTP/1.1
Host: localhost:80
Harness-Account: z
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa"
}Last updated
Was this helpful?