Download OpenAPI specification:Download
OpsChain is an orchestration and change automation platform based in GitOps principles with a core objective to Unify Change. Connect, automate, and orchestrate people, processes, and tools across your on-premise and cloud platforms.
Endpoints to interact with projects.
Lists all projects (including archived projects).
Each project in the response includes a link to the project's changes
endpoint for
managing changes belonging to this project. It acts like the changes endpoint.
.
filter[<query/sort filter>]= | |
download | string Example: download=projects.csv Download the projects in CSV format with the specified file name. The projects will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "0244c712-b7ae-4658-af02-87400d371935",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "MintPress"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "65de99d6-4851-4a12-ab26-61796078d1ac",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/65de99d6-4851-4a12-ab26-61796078d1ac"
}
}, - "settings": {
- "data": {
- "id": "6fcfa4aa-8a2a-437d-b2fd-405fd68eaf20",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/6fcfa4aa-8a2a-437d-b2fd-405fd68eaf20"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "git_remotes": "/api/projects/opc/git_remotes",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets",
- "changes": "/api/projects/opc/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}
]
}
Creates a project.
required | object |
{- "data": {
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project"
}
}
}
{- "data": {
- "id": "5dad3321-d9ae-42b4-a526-230f60c16919",
- "type": "project",
- "attributes": {
- "code": "qv91m",
- "name": "quia42",
- "description": "Excepturi sit reiciendis velit.",
- "archived": false,
- "project_type": "OpsChain"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d099a273-d90e-4898-84bc-1865a6be1110",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d099a273-d90e-4898-84bc-1865a6be1110"
}
}, - "settings": {
- "data": {
- "id": "08d283e4-14d4-481e-a2dd-e09fa53d2972",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/08d283e4-14d4-481e-a2dd-e09fa53d2972"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/qv91m",
- "git_remotes": "/api/projects/qv91m/git_remotes",
- "environments": "/api/projects/qv91m/environments"
}, - "meta": {
- "can_have_changes": false,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "environment"
]
}
}
}
Shows a project, including any direct children.
The response includes a link to the project's changes
endpoint for
managing changes belonging to this project. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
{- "data": {
- "id": "b981d567-c17d-4e16-8b53-feecae93d5fa",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "OpsChain",
- "description": "OpsChain project",
- "archived": false,
- "project_type": "MintPress"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a806943a-c9ce-4c3c-957b-2a4896b54e08",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a806943a-c9ce-4c3c-957b-2a4896b54e08"
}
}, - "settings": {
- "data": {
- "id": "88775efe-331e-456f-8d9f-c2b5aa2fa6dc",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/88775efe-331e-456f-8d9f-c2b5aa2fa6dc"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "git_remotes": "/api/projects/opc/git_remotes",
- "templates": "/api/projects/opc/templates",
- "environments": "/api/projects/opc/environments",
- "assets": "/api/projects/opc/assets",
- "changes": "/api/projects/opc/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": true,
- "requires_template": false,
- "child_node_types": [
- "environment",
- "asset"
]
}
}, - "included": [ ]
}
Updates a project.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated project",
- "archived": false
}
}
}
{- "data": {
- "id": "f6805e51-d10a-4547-a2fc-ae363db60659",
- "type": "project",
- "attributes": {
- "code": "opc",
- "name": "inventore43",
- "description": "Ut aliquid explicabo qui.",
- "archived": true,
- "project_type": "OpsChain"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "d311ac8e-1a1e-46a9-9938-3a392b452c52",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/d311ac8e-1a1e-46a9-9938-3a392b452c52"
}
}, - "settings": {
- "data": {
- "id": "59fe664c-ff57-48a2-b06b-9021581f7eb5",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/59fe664c-ff57-48a2-b06b-9021581f7eb5"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc",
- "git_remotes": "/api/projects/opc/git_remotes",
- "environments": "/api/projects/opc/environments"
}, - "meta": {
- "can_have_changes": false,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "environment"
]
}
}
}
Endpoints to interact with environments.
Lists all project environments (including archived environments).
Each environment in the response includes a link to the environment's changes
endpoint for
managing changes belonging to this environment. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
filter[<query/sort filter>]= | |
download | string Example: download=environments.csv Download the project environments in CSV format with the specified file name. The environments will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "d2f796af-a49c-4446-bf6f-338bde8a23e5",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "3bb39d03-5515-46cd-adb2-f80e7b57ff8a",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/3bb39d03-5515-46cd-adb2-f80e7b57ff8a"
}
}, - "settings": {
- "data": {
- "id": "fa4ada55-fed8-47b0-83f8-8f8f6db8afb4",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/fa4ada55-fed8-47b0-83f8-8f8f6db8afb4"
}
}, - "project": {
- "data": {
- "id": "ca6c528c-edfa-4803-bd6b-80a5cb74f731",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets",
- "changes": "/api/projects/opc/environments/dev/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
]
}
Creates an environment.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment"
}
}
}
{- "data": {
- "id": "31cc6ec1-b8d9-462d-a756-17b39118f9a8",
- "type": "environment",
- "attributes": {
- "code": "4gc1u",
- "name": "dolor33",
- "description": "Ipsam facilis nemo expedita.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "748c0074-08cc-4d39-b835-59a50c918ebd",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/748c0074-08cc-4d39-b835-59a50c918ebd"
}
}, - "settings": {
- "data": {
- "id": "b2b01238-9536-4f2c-aef5-a7c28f2d1ed5",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/b2b01238-9536-4f2c-aef5-a7c28f2d1ed5"
}
}, - "project": {
- "data": {
- "id": "35f36b59-79bb-412a-8734-395b62c9c3dd",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/4gc1u",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/4gc1u/assets",
- "changes": "/api/projects/opc/environments/4gc1u/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
}
Shows an environment.
The response includes a link to the environment's changes
endpoint for
managing changes belonging to this environment. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
{- "data": {
- "id": "b15922aa-8b85-4bcf-89e8-189732f56226",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "Development",
- "description": "OpsChain development environment",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "7677a7dc-2a40-46ea-9623-f82200eb9092",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/7677a7dc-2a40-46ea-9623-f82200eb9092"
}
}, - "settings": {
- "data": {
- "id": "8da833b4-4892-4ad5-90ec-51e1830bfef4",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/8da833b4-4892-4ad5-90ec-51e1830bfef4"
}
}, - "project": {
- "data": {
- "id": "13418bfd-2a1f-4106-b9c8-0e2bd520caf6",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets",
- "changes": "/api/projects/opc/environments/dev/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}, - "included": [ ]
}
Updates an environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated environment",
- "archived": false
}
}
}
{- "data": {
- "id": "44f481e8-5131-4e64-9ebe-d55194af95f9",
- "type": "environment",
- "attributes": {
- "code": "dev",
- "name": "eius35",
- "description": "Quo ut omnis fuga.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "3f503d2e-6451-4414-b440-370d1b335256",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/3f503d2e-6451-4414-b440-370d1b335256"
}
}, - "settings": {
- "data": {
- "id": "4b7f0678-a765-416a-abbd-3eb866539a0d",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/4b7f0678-a765-416a-abbd-3eb866539a0d"
}
}, - "project": {
- "data": {
- "id": "54e0f74f-5a11-4946-a4b8-fb52a4e877a5",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "children": {
- "data": [ ]
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev",
- "parent": "/api/projects/opc",
- "assets": "/api/projects/opc/environments/dev/assets",
- "changes": "/api/projects/opc/environments/dev/changes"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": true,
- "can_have_properties": true,
- "can_have_settings": true,
- "can_have_templates": false,
- "requires_template": false,
- "child_node_types": [
- "asset"
]
}
}
}
Lists all changes performed in this environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
filter[<query/sort filter>]= |
{- "data": [ ],
- "meta": {
- "has_any": false
}
}
Creates a change in this environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
required | object |
{- "data": {
- "attributes": {
- "git_remote_name": "github",
- "git_rev": "main",
- "environment_code": "dev",
- "project_code": "opc",
- "action": "default",
- "metadata": {
- "pixel": "connecting"
}
}
}
}
{- "data": {
- "id": "0bb02d78-dae2-4026-ac9c-d5b6c2e8dfa7",
- "type": "change",
- "attributes": {
- "created_by": "corliss.schroeder",
- "action": "default",
- "status_code": "initializing",
- "initial_step_tree": null,
- "metadata": {
- "monitor": "backing up"
}, - "automated": false,
- "approved_by": [ ],
- "created_at": "2023-10-24T03:48:14.154082Z",
- "started_at": null,
- "finished_at": null,
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": null,
- "requires_approval_from": null
}, - "relationships": {
- "root_step": {
- "data": {
- "id": "5272d8e3-0a2f-4162-9ba4-fd58e3912553",
- "type": "step"
}, - "links": {
- "related": "/api/steps/5272d8e3-0a2f-4162-9ba4-fd58e3912553"
}
}, - "steps": {
- "data": [
- {
- "id": "5272d8e3-0a2f-4162-9ba4-fd58e3912553",
- "type": "step"
}
]
}
}, - "links": {
- "self": "/api/changes/0bb02d78-dae2-4026-ac9c-d5b6c2e8dfa7",
- "log_lines": "/api/changes/0bb02d78-dae2-4026-ac9c-d5b6c2e8dfa7/log_lines",
- "git_remote": "/api/projects/opc/git_remotes/3380aa82-9612-48b9-80de-c8b2bf8d4a15",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev"
}
}, - "included": [
- {
- "id": "5272d8e3-0a2f-4162-9ba4-fd58e3912553",
- "type": "step",
- "attributes": {
- "status_code": "initializing",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:48:14.156277Z",
- "started_at": null,
- "finished_at": null,
- "requires_approval_from": null
}, - "relationships": {
- "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/changes/0bb02d78-dae2-4026-ac9c-d5b6c2e8dfa7",
- "log_lines": "/api/steps/5272d8e3-0a2f-4162-9ba4-fd58e3912553/log_lines",
- "self": "/api/steps/5272d8e3-0a2f-4162-9ba4-fd58e3912553"
}
}
]
}
Shows a change performed in this environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
change_id required | string Example: cab37311-d338-4125-8307-12658e9c029e change id |
{- "data": {
- "id": "35172a4c-8d33-4d0b-82af-4c656e35f44a",
- "type": "change",
- "attributes": {
- "created_by": "elenora.brown",
- "action": "default",
- "status_code": "success",
- "initial_step_tree": null,
- "metadata": {
- "driver": "hacking"
}, - "automated": false,
- "approved_by": [ ],
- "created_at": "2023-10-24T03:48:14.398507Z",
- "started_at": "2023-10-24T03:42:57.341661Z",
- "finished_at": "2023-10-24T03:45:05.279953Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "81330c7054a4b3b6931bda016b14131c061e13e1",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "171afd6e-c714-48be-be37-dc88eab1fcbd",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/171afd6e-c714-48be-be37-dc88eab1fcbd"
}
}, - "root_step": {
- "data": {
- "id": "7204b242-ab4d-4fcb-99ea-866adb5f47a5",
- "type": "step"
}, - "links": {
- "related": "/api/steps/7204b242-ab4d-4fcb-99ea-866adb5f47a5"
}
}, - "steps": {
- "data": [
- {
- "id": "7204b242-ab4d-4fcb-99ea-866adb5f47a5",
- "type": "step"
}
]
}
}, - "links": {
- "self": "/api/changes/35172a4c-8d33-4d0b-82af-4c656e35f44a",
- "log_lines": "/api/changes/35172a4c-8d33-4d0b-82af-4c656e35f44a/log_lines",
- "git_remote": "/api/projects/opc/git_remotes/8c288cbf-a412-44e8-ad1a-2e31985cd7a2",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev"
}
}, - "included": [
- {
- "id": "7204b242-ab4d-4fcb-99ea-866adb5f47a5",
- "type": "step",
- "attributes": {
- "status_code": "success",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:41:57.341661Z",
- "started_at": "2023-10-24T03:42:57.341661Z",
- "finished_at": "2023-10-24T03:45:05.279953Z",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "171afd6e-c714-48be-be37-dc88eab1fcbd",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/171afd6e-c714-48be-be37-dc88eab1fcbd"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "7a12a5e8-b3c4-44aa-a09c-761a45c71106",
- "type": "properties_version"
}, - {
- "id": "ac0ee7c7-b191-4926-a9e2-dbb5dd86bbd8",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/35172a4c-8d33-4d0b-82af-4c656e35f44a",
- "log_lines": "/api/steps/7204b242-ab4d-4fcb-99ea-866adb5f47a5/log_lines",
- "self": "/api/steps/7204b242-ab4d-4fcb-99ea-866adb5f47a5"
}
}
]
}
Cancels a change running in this environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
change_id required | string Example: cab37311-d338-4125-8307-12658e9c029e change id |
{ }
Assets are available in the enterprise edition of OpsChain and allow you to represent an instance of an asset template. The template provides the available actions and a base set of properties to configure the asset. These properties can be overridden by the asset's properties as required.
Lists all assets (including archived assets) that belong to the project.
Each asset in the response includes a link to the asset's changes
endpoint for
managing changes belonging to this asset. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
filter[<query/sort filter>]= | |
download | string Example: download=assets.csv Download the project assets in CSV format with the specified file name. The assets will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [ ]
}
Creates an asset belonging to the project.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "template_name": "Oracle SOA template",
- "template_version": "2023_Q4_2"
}
}
}
{- "data": {
- "id": "3647bcdb-867c-4476-8e34-0f550ad283ac",
- "type": "asset",
- "attributes": {
- "code": "nmi11",
- "name": "veniam14",
- "description": "Vitae est laboriosam laborum.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "018169e0-d29d-42fd-abc9-79fca56e34fc",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/018169e0-d29d-42fd-abc9-79fca56e34fc"
}
}, - "settings": {
- "data": {
- "id": "2690dd0f-b654-473d-8c01-8ab52818f328",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/2690dd0f-b654-473d-8c01-8ab52818f328"
}
}, - "project": {
- "data": {
- "id": "b929a4fc-5fcd-4eb1-9f1a-28e621db096f",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "69bc5cc7-cac3-415c-9a25-67b701cb0a89",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "7f30fa29-f533-43a3-bae6-de3fea44f889",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/assets/nmi11",
- "parent": "/api/projects/opc",
- "changes": "/api/projects/opc/assets/nmi11/changes",
- "version_history": "/api/projects/opc/assets/nmi11/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Shows an asset belonging to a project.
The response includes a link to the asset's changes
endpoint for
managing changes belonging to this asset. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
{- "data": {
- "id": "f0f7c1c2-46c2-4795-b9e8-c9fb27955b67",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "6dc4a42e-221a-4b5a-80c5-853e2b95d2d3",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/6dc4a42e-221a-4b5a-80c5-853e2b95d2d3"
}
}, - "settings": {
- "data": {
- "id": "3a3399b6-d967-4dee-be56-da8200ffda3c",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/3a3399b6-d967-4dee-be56-da8200ffda3c"
}
}, - "project": {
- "data": {
- "id": "5a88282f-077a-4bd6-818d-6d9336942f19",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "3dadce8f-55b7-40c0-b741-f73b8bb0f266",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "01db8b48-1783-4946-a69b-abf7f5781240",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "parent": "/api/projects/opc",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - "included": [
- {
- "id": "01db8b48-1783-4946-a69b-abf7f5781240",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "created_at": "2023-10-24T03:48:06.610676Z",
- "updated_at": "2023-10-24T03:48:06.610676Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}, - {
- "id": "3dadce8f-55b7-40c0-b741-f73b8bb0f266",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "initializing",
- "created_by": "kelly",
- "created_at": "2023-10-24T03:48:06.621638Z",
- "git_rev": "back-end",
- "commit_sha": "983a47e4ab6b819e2958216d1784e42c8adb4bdd"
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Updates an asset belonging to a project.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated asset",
- "archived": false
}
}
}
{- "data": {
- "id": "ca6444f8-4348-4629-bf95-67bc5cf30b89",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "tempora16",
- "description": "Sunt excepturi voluptatem accusamus.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "96639599-68dc-4b4f-a351-e7ac8054c732",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/96639599-68dc-4b4f-a351-e7ac8054c732"
}
}, - "settings": {
- "data": {
- "id": "56ad38b6-f1cd-44d8-a717-ea0e71395ac8",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/56ad38b6-f1cd-44d8-a717-ea0e71395ac8"
}
}, - "project": {
- "data": {
- "id": "bbc58700-7942-4c53-8fdf-787449969a78",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "40d8cbd5-371a-47aa-9264-e4e76e627c49",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "5b58edfc-1ed8-44b3-b877-86df46ae9e0c",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "parent": "/api/projects/opc",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Lists all assets (including archived assets) that belong to the environment.
Each asset in the response includes a link to the asset's changes
endpoint for
managing changes belonging to this asset. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
filter[<query/sort filter>]= | |
download | string Example: download=assets.csv Download the environment assets in CSV format with the specified file name. The assets will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [ ]
}
Creates an asset belonging to the environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
required | object |
{- "data": {
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "template_name": "Oracle SOA template",
- "template_version": "2023_Q4_2"
}
}
}
{- "data": {
- "id": "9000ce51-0e21-4213-b92c-bcdf6312950c",
- "type": "asset",
- "attributes": {
- "code": "1pb19",
- "name": "dolorum20",
- "description": "Quod beatae ratione vel.",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "b8ffd873-d9f7-497f-b729-603f939777a4",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/b8ffd873-d9f7-497f-b729-603f939777a4"
}
}, - "settings": {
- "data": {
- "id": "ee52f0d4-b2eb-4030-a7d2-32b66577d11f",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/ee52f0d4-b2eb-4030-a7d2-32b66577d11f"
}
}, - "project": {
- "data": {
- "id": "27d555ec-c5c3-4976-8a68-5bb768aa03bf",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "42082f32-f9e5-4a9a-befb-15f0616de494",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "4c451044-c40e-4835-bcfd-5b0f61d84d0a",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev/assets/1pb19",
- "parent": "/api/projects/opc/environments/dev",
- "changes": "/api/projects/opc/environments/dev/assets/1pb19/changes",
- "version_history": "/api/projects/opc/environments/dev/assets/1pb19/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Shows an asset belonging to an environment.
The response includes a link to the asset's changes
endpoint for
managing changes belonging to this asset. It acts like the changes endpoint.
.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
asset_code required | string Example: env_soa asset code |
{- "data": {
- "id": "ed0f5ed6-ba9c-4655-81fe-164cca858932",
- "type": "asset",
- "attributes": {
- "code": "env_soa",
- "name": "Environment asset",
- "description": "Environment asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "7733108c-c087-4b5f-b445-5d143d8feb51",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/7733108c-c087-4b5f-b445-5d143d8feb51"
}
}, - "settings": {
- "data": {
- "id": "e8f1790e-4420-480b-9d9a-b798b3296cdb",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/e8f1790e-4420-480b-9d9a-b798b3296cdb"
}
}, - "project": {
- "data": {
- "id": "a862c47f-2a77-4db0-9569-a6a5a9dd7d24",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "0beaeb00-57a5-488a-9d02-3ccf545f2315",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "f1fa74d6-60b9-40fd-b055-d7fd6921b54e",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev/assets/env_soa",
- "parent": "/api/projects/opc/environments/dev",
- "changes": "/api/projects/opc/environments/dev/assets/env_soa/changes",
- "version_history": "/api/projects/opc/environments/dev/assets/env_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - "included": [
- {
- "id": "f1fa74d6-60b9-40fd-b055-d7fd6921b54e",
- "type": "template",
- "attributes": {
- "name": "Oracle SOA template",
- "archived": false,
- "created_at": "2023-10-24T03:48:08.662079Z",
- "updated_at": "2023-10-24T03:48:08.662079Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}",
- "code": "soa",
- "description": "Oracle SOA Suite 12c (12.2.1.4.0)"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/templates/soa",
- "template_versions": "/api/projects/opc/templates/soa/versions"
}, - "meta": null
}, - {
- "id": "0beaeb00-57a5-488a-9d02-3ccf545f2315",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "initializing",
- "created_by": "sam",
- "created_at": "2023-10-24T03:48:08.672883Z",
- "git_rev": "digital",
- "commit_sha": "0db7c8149e1b32b7cda821c4a14e705d31227208"
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Updates an asset belonging to an environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
asset_code required | string Example: env_soa asset code |
required | object |
{- "data": {
- "attributes": {
- "name": "Modified",
- "description": "The updated asset",
- "archived": false
}
}
}
{- "data": {
- "id": "db6b4d24-2deb-46e0-8276-1f647e0177a3",
- "type": "asset",
- "attributes": {
- "code": "env_soa",
- "name": "est23",
- "description": "Deserunt dolore debitis non.",
- "archived": true
}, - "relationships": {
- "properties": {
- "data": {
- "id": "78dadbc4-dd2b-42ef-a7e1-153ee7c8e8d5",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/78dadbc4-dd2b-42ef-a7e1-153ee7c8e8d5"
}
}, - "settings": {
- "data": {
- "id": "f912bf51-6fb5-4fea-9239-5c4c5319b3a0",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/f912bf51-6fb5-4fea-9239-5c4c5319b3a0"
}
}, - "project": {
- "data": {
- "id": "37ef1ef8-4036-44bb-8c1f-6d6c0086cc23",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "24331262-fb38-44ec-80d1-0b96ecc46b29",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "756279df-57d7-4cdc-99d5-247a7e26ac5e",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev/assets/env_soa",
- "parent": "/api/projects/opc/environments/dev",
- "changes": "/api/projects/opc/environments/dev/assets/env_soa/changes",
- "version_history": "/api/projects/opc/environments/dev/assets/env_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}
}
Archives an asset belonging to an environment.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
asset_code required | string Example: env_soa asset code |
{ }
Asset templates provide the available actions and a base set of repository properties that will be used to configure the asset.
Lists the template versions that have been assigned to the asset.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
filter[<query/sort filter>]= |
{- "data": [
- {
- "id": "70d600fa-dbec-4507-a390-6631a6cfea8d",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2023-10-24T03:48:09.973443Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "7bc73e7a-1d65-4a2d-a178-22c0d7de2a94",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "c9453376-6e1c-4058-bf35-fead2a5d8a5b",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/70d600fa-dbec-4507-a390-6631a6cfea8d",
- "asset": "/api/projects/opc/assets/prj_soa"
}
}
]
}
Shows the project asset's current template version history record.
project_code required | string Example: opc project code |
asset_code required | string Example: prj_soa asset code |
id required | string Example: 6d1fa401-f34f-42fc-9a7c-073347a6eafc version history id |
{- "data": {
- "id": "7bde3b69-0623-4dc0-8bec-f0f2ce1bb7f0",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2023-10-24T03:48:10.110368Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "a98b9326-be38-4365-b060-e79bf4bdf274",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "b3fda5de-7a27-45c4-9b90-e5c6c6dc745d",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/assets/prj_soa/version_history/7bde3b69-0623-4dc0-8bec-f0f2ce1bb7f0",
- "asset": "/api/projects/opc/assets/prj_soa"
}
}, - "included": [
- {
- "id": "a98b9326-be38-4365-b060-e79bf4bdf274",
- "type": "asset",
- "attributes": {
- "code": "prj_soa",
- "name": "Project asset",
- "description": "Project asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "6f574377-0734-41f8-9ba1-a3e7e7cefadb",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/6f574377-0734-41f8-9ba1-a3e7e7cefadb"
}
}, - "settings": {
- "data": {
- "id": "b65b66c2-c890-4daa-8229-95c022efe485",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/b65b66c2-c890-4daa-8229-95c022efe485"
}
}, - "project": {
- "data": {
- "id": "135537ba-9421-41ae-ad97-cde745f311cd",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "b3fda5de-7a27-45c4-9b90-e5c6c6dc745d",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "93e1b917-ecfa-42b8-8921-fd5a52c988f9",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/assets/prj_soa",
- "parent": "/api/projects/opc",
- "changes": "/api/projects/opc/assets/prj_soa/changes",
- "version_history": "/api/projects/opc/assets/prj_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - {
- "id": "b3fda5de-7a27-45c4-9b90-e5c6c6dc745d",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "initializing",
- "created_by": "carter",
- "created_at": "2023-10-24T03:48:10.077975Z",
- "git_rev": "virtual",
- "commit_sha": "376e87e96bd77c74dad51a7241c835d04a8d1465"
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Lists the template versions that have been assigned to an environment asset.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
asset_code required | string Example: env_soa asset code |
filter[<query/sort filter>]= |
{- "data": [
- {
- "id": "11ce79ff-5349-46a7-8f0a-be354f37a641",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2023-10-24T03:48:10.307880Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "6f37937d-7cef-44bf-a4ce-ae588990b1c5",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "3d35e170-00df-47ce-ac9f-5b348da93b28",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/environments/dev/assets/env_soa/version_history/11ce79ff-5349-46a7-8f0a-be354f37a641",
- "asset": "/api/projects/opc/environments/dev/assets/env_soa"
}
}
]
}
Shows the environment asset's current template version history record.
project_code required | string Example: opc project code |
environment_code required | string Example: dev environment code |
asset_code required | string Example: prj_soa asset code |
id required | string Example: 9d10e20f-5ad2-4e2e-8ba0-9e08efcc3fb0 version history id |
{- "data": {
- "id": "172a9944-006a-4fa7-8d15-14c34fc7d6b9",
- "type": "template_version_history",
- "attributes": {
- "active_from": "2023-10-24T03:48:10.467940Z",
- "active_to": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "f847920e-b6ed-4b3f-b55c-baf8cfb390f1",
- "type": "asset"
}
}, - "template_version": {
- "data": {
- "id": "37763143-ee35-4eaf-b86d-8709a316db0d",
- "type": "template_version"
}
}
}, - "links": {
- "template_version": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "self": "/api/projects/opc/environments/dev/assets/env_soa/version_history/172a9944-006a-4fa7-8d15-14c34fc7d6b9",
- "asset": "/api/projects/opc/environments/dev/assets/env_soa"
}
}, - "included": [
- {
- "id": "f847920e-b6ed-4b3f-b55c-baf8cfb390f1",
- "type": "asset",
- "attributes": {
- "code": "env_soa",
- "name": "Environment asset",
- "description": "Environment asset description",
- "archived": false
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4913c555-8d0a-4ba0-a0a9-5d7dee50c885",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4913c555-8d0a-4ba0-a0a9-5d7dee50c885"
}
}, - "settings": {
- "data": {
- "id": "49a53220-0fe3-4374-bed4-a93a3530d565",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/49a53220-0fe3-4374-bed4-a93a3530d565"
}
}, - "project": {
- "data": {
- "id": "38793bcc-75bb-446f-b7ee-ebb10a8b0847",
- "type": "project"
}, - "links": {
- "related": "/api/projects/opc"
}
}, - "template_version": {
- "data": {
- "id": "37763143-ee35-4eaf-b86d-8709a316db0d",
- "type": "template_version"
}, - "links": {
- "related": "/api/projects/opc/templates/soa/versions/2023_Q4_2"
}
}, - "template": {
- "data": {
- "id": "7dc295d9-1a42-4fda-b530-16a65252ffb4",
- "type": "template"
}, - "links": {
- "related": "/api/projects/opc/templates/soa"
}
}
}, - "links": {
- "self": "/api/projects/opc/environments/dev/assets/env_soa",
- "parent": "/api/projects/opc/environments/dev",
- "changes": "/api/projects/opc/environments/dev/assets/env_soa/changes",
- "version_history": "/api/projects/opc/environments/dev/assets/env_soa/version_history"
}, - "meta": {
- "can_have_changes": true,
- "can_have_children": false,
- "can_have_properties": true,
- "can_have_settings": false,
- "can_have_templates": false,
- "requires_template": true,
- "child_node_types": [ ]
}
}, - {
- "id": "37763143-ee35-4eaf-b86d-8709a316db0d",
- "type": "template_version",
- "attributes": {
- "version": "2023_Q4_2",
- "description": "Added additional configuration options",
- "state": "initializing",
- "created_by": "kraig",
- "created_at": "2023-10-24T03:48:10.438890Z",
- "git_rev": "open-source",
- "commit_sha": "e10bc6ea30660637d4a7eb2eacb6d41585e97725"
}, - "links": {
- "self": "/api/projects/opc/templates/soa/versions/2023_Q4_2",
- "template": "/api/projects/opc/templates/soa"
}
}
]
}
Endpoints to interact with git remotes.
Create a project Git remote.
project_code required | string Example: opc project code |
required | object |
{- "data": {
- "attributes": {
- "name": "github",
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "6dedb4c5-b141-43c6-8910-46c8ee9804fe",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "created_at": "2023-10-24T03:48:03.297338Z",
- "updated_at": "2023-10-24T03:48:03.297338Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/6dedb4c5-b141-43c6-8910-46c8ee9804fe"
}, - "meta": null
}
}
Lists all Git remotes for a project.
project_code required | string Example: opc project code |
{- "data": [
- {
- "id": "8fe0b035-5435-4b0b-b351-5caf2dcf0793",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "created_at": "2023-10-24T03:48:03.667167Z",
- "updated_at": "2023-10-24T03:48:03.667167Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/8fe0b035-5435-4b0b-b351-5caf2dcf0793"
}, - "meta": null
}
]
}
Shows a project Git remote.
project_code required | string Example: opc project code |
remote_id required | string Example: f6e111d6-34a8-4482-becd-02e166dc311d remote id |
{- "data": {
- "id": "71e321e3-7657-4f53-94a0-192b4ada618b",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "created_at": "2023-10-24T03:48:03.845870Z",
- "updated_at": "2023-10-24T03:48:03.845870Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/71e321e3-7657-4f53-94a0-192b4ada618b"
}, - "meta": null
}
}
Archives/unarchives a project Git remote.
project_code required | string Example: opc project code |
id_to_archive required | string Example: f6e111d6-34a8-4482-becd-02e166dc311d remote id |
required | object |
{- "data": {
- "attributes": {
- "archived": true
}
}
}
{- "data": {
- "id": "2d19a2bd-26b3-4336-8dae-28fa1835510c",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "created_at": "2023-10-24T03:48:04.009454Z",
- "updated_at": "2023-10-24T03:48:04.033567Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/2d19a2bd-26b3-4336-8dae-28fa1835510c"
}, - "meta": null
}
}
Update the credentials of a project Git remote.
project_code required | string Example: opc project code |
id_to_update required | string Example: f6e111d6-34a8-4482-becd-02e166dc311d remote id |
required | object |
{- "data": {
- "attributes": {
- "user": "limepoint",
- "password": "password",
- "ssh_key_data": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----\n"
}
}
}
{- "data": {
- "id": "f341ff6f-781a-42da-addb-9220036aa10b",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": false,
- "created_at": "2023-10-24T03:48:04.307451Z",
- "updated_at": "2023-10-24T03:48:04.326929Z",
- "user": "{{hidden}}",
- "password": "{{hidden}}",
- "ssh_key_data": "{{hidden}}"
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/f341ff6f-781a-42da-addb-9220036aa10b"
}, - "meta": null
}
}
Deletes a project Git remote if it has no changes, otherwise it removes the credentials.
project_code required | string Example: opc project code |
id_to_delete required | string Example: f6e111d6-34a8-4482-becd-02e166dc311d remote id |
{- "data": {
- "id": "ab92c07e-3c42-4f3b-b1f3-39a9df623cdd",
- "type": "git_remote",
- "attributes": {
- "name": "github",
- "archived": true,
- "created_at": "2023-10-24T03:48:04.613242Z",
- "updated_at": "2023-10-24T03:48:04.740871Z",
- "user": null,
- "password": null,
- "ssh_key_data": null
}, - "links": {
- "project": "/api/projects/opc",
- "self": "/api/projects/opc/git_remotes/ab92c07e-3c42-4f3b-b1f3-39a9df623cdd"
}, - "meta": {
- "credentials_removed": true,
- "messages": [
- "This cannot be deleted as it is used by a change. Its credentials have been removed."
]
}
}
}
Endpoints to interact with properties.
Shows a properties JSON.
properties_id required | string Example: ab058642-b544-4092-9a0d-a35f92487cbf properties id |
{- "data": {
- "id": "b2125d8e-37a5-4889-b62e-884cde5a03bd",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/b2125d8e-37a5-4889-b62e-884cde5a03bd",
- "current_version": "/api/properties/b2125d8e-37a5-4889-b62e-884cde5a03bd/versions/1",
- "properties_versions": "/api/properties/b2125d8e-37a5-4889-b62e-884cde5a03bd/versions"
}
}
}
Updates a properties JSON if the included version matches the current properties version.
id_to_update required | string Example: ab058642-b544-4092-9a0d-a35f92487cbf properties id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1
}
}
}
{- "data": {
- "id": "a1b78ffb-5d84-46c2-a3f4-f24fad4d1041",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/a1b78ffb-5d84-46c2-a3f4-f24fad4d1041",
- "current_version": "/api/properties/a1b78ffb-5d84-46c2-a3f4-f24fad4d1041/versions/2",
- "properties_versions": "/api/properties/a1b78ffb-5d84-46c2-a3f4-f24fad4d1041/versions"
}
}
}
Updates a properties JSON, without any version checking (always updates).
id_to_set required | string Example: ab058642-b544-4092-9a0d-a35f92487cbf properties id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}
}
}
{- "data": {
- "id": "4e5f7540-8843-4a64-bbdd-614c5e6cab6d",
- "type": "properties",
- "attributes": {
- "data": {
- "any_key": "with updated value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 2
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/properties/4e5f7540-8843-4a64-bbdd-614c5e6cab6d",
- "current_version": "/api/properties/4e5f7540-8843-4a64-bbdd-614c5e6cab6d/versions/2",
- "properties_versions": "/api/properties/4e5f7540-8843-4a64-bbdd-614c5e6cab6d/versions"
}
}
}
Endpoints to interact with the version history for properties.
Lists all versions of an OpsChain properties.
properties_id required | string Example: ab058642-b544-4092-9a0d-a35f92487cbf properties id |
{- "data": [
- {
- "id": "92ea6150-bf8e-4fa1-a795-d094f1266e18",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "owner_type": "node"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "00cfe38f-a251-4f40-b9dd-9558763b8a33",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/00cfe38f-a251-4f40-b9dd-9558763b8a33"
}
}
}, - "links": {
- "properties_versions": "/api/properties/00cfe38f-a251-4f40-b9dd-9558763b8a33/versions",
- "self": "/api/properties/00cfe38f-a251-4f40-b9dd-9558763b8a33/versions/1"
}
}
]
}
Shows an OpsChain properties version.
properties_id required | string Example: ab058642-b544-4092-9a0d-a35f92487cbf properties id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "d266d0b3-afd2-4482-9cc9-1edd3669765b",
- "type": "properties_version",
- "attributes": {
- "data": {
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}, - "version": 1,
- "owner_type": "node"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "97acf898-d12e-4e90-9fc2-7769fb87b5e4",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/97acf898-d12e-4e90-9fc2-7769fb87b5e4"
}
}
}, - "links": {
- "properties_versions": "/api/properties/97acf898-d12e-4e90-9fc2-7769fb87b5e4/versions",
- "self": "/api/properties/97acf898-d12e-4e90-9fc2-7769fb87b5e4/versions/1"
}
}
}
Shows an OpsChain settings version.
settings_id required | string Example: 88dec4ed-a05a-4cce-8c25-66152b83f65c settings id |
version_number required | integer Example: 1 version number |
{- "data": {
- "id": "09608d3a-48cd-4358-a9a0-4088d4a8e912",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1
}, - "relationships": {
- "settings": {
- "data": {
- "id": "a6238199-bf63-47c3-9a96-181f6c0d5811",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/a6238199-bf63-47c3-9a96-181f6c0d5811"
}
}
}, - "links": {
- "settings_versions": "/api/settings/a6238199-bf63-47c3-9a96-181f6c0d5811/versions",
- "self": "/api/settings/a6238199-bf63-47c3-9a96-181f6c0d5811/versions/1"
}
}
}
Endpoints to interact with changes.
Lists all changes.
filter[<query/sort filter>]= | |
download | string Example: download=changes.csv Download changes in CSV format with the specified file name. The changes will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "d2304e49-b33c-4ea4-a070-38bbc28982fc",
- "type": "change",
- "attributes": {
- "created_by": "luther",
- "action": "default",
- "status_code": "success",
- "initial_step_tree": null,
- "metadata": {
- "alarm": "indexing"
}, - "automated": false,
- "approved_by": [ ],
- "created_at": "2023-10-24T03:48:00.441285Z",
- "started_at": "2023-10-24T03:39:52.521336Z",
- "finished_at": "2023-10-24T03:43:56.348166Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "591e8b53516d6351dc03c530630d0b9c5856429a",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "4d7ffda0-3c60-4480-9184-ae0c68f7ec1c",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/4d7ffda0-3c60-4480-9184-ae0c68f7ec1c"
}
}, - "root_step": {
- "data": {
- "id": "27caceaa-9fb4-40b6-9774-c5a0b5f01a10",
- "type": "step"
}, - "links": {
- "related": "/api/steps/27caceaa-9fb4-40b6-9774-c5a0b5f01a10"
}
}, - "steps": {
- "data": [
- {
- "id": "27caceaa-9fb4-40b6-9774-c5a0b5f01a10",
- "type": "step"
}
]
}
}, - "links": {
- "self": "/api/changes/d2304e49-b33c-4ea4-a070-38bbc28982fc",
- "log_lines": "/api/changes/d2304e49-b33c-4ea4-a070-38bbc28982fc/log_lines",
- "git_remote": "/api/projects/opc/git_remotes/419dcc42-8aa2-400c-96d4-d2721de00239",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev"
}
}
], - "meta": {
- "has_any": true
}
}
Creates a change.
required | object |
{- "data": {
- "attributes": {
- "git_remote_name": "github",
- "git_rev": "main",
- "environment_code": "dev",
- "project_code": "opc",
- "action": "default",
- "metadata": {
- "pixel": "connecting"
}
}
}
}
{- "data": {
- "id": "44f3a9d1-782e-4d22-9a6a-e086bfaf09c4",
- "type": "change",
- "attributes": {
- "created_by": "isis_gulgowski",
- "action": "default",
- "status_code": "initializing",
- "initial_step_tree": null,
- "metadata": {
- "feed": "parsing"
}, - "automated": false,
- "approved_by": [ ],
- "created_at": "2023-10-24T03:48:00.810233Z",
- "started_at": null,
- "finished_at": null,
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": null,
- "requires_approval_from": null
}, - "relationships": {
- "root_step": {
- "data": {
- "id": "7fdf6f07-a388-4cfa-9286-9046aea03202",
- "type": "step"
}, - "links": {
- "related": "/api/steps/7fdf6f07-a388-4cfa-9286-9046aea03202"
}
}, - "steps": {
- "data": [
- {
- "id": "7fdf6f07-a388-4cfa-9286-9046aea03202",
- "type": "step"
}
]
}
}, - "links": {
- "self": "/api/changes/44f3a9d1-782e-4d22-9a6a-e086bfaf09c4",
- "log_lines": "/api/changes/44f3a9d1-782e-4d22-9a6a-e086bfaf09c4/log_lines",
- "git_remote": "/api/projects/opc/git_remotes/c0365bb7-42e4-4de1-bb8b-bfc50a8f6373",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev"
}
}, - "included": [
- {
- "id": "7fdf6f07-a388-4cfa-9286-9046aea03202",
- "type": "step",
- "attributes": {
- "status_code": "initializing",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:48:00.812298Z",
- "started_at": null,
- "finished_at": null,
- "requires_approval_from": null
}, - "relationships": {
- "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [ ]
}
}, - "links": {
- "parent": "/api/changes/44f3a9d1-782e-4d22-9a6a-e086bfaf09c4",
- "log_lines": "/api/steps/7fdf6f07-a388-4cfa-9286-9046aea03202/log_lines",
- "self": "/api/steps/7fdf6f07-a388-4cfa-9286-9046aea03202"
}
}
]
}
Shows a change.
change_id required | string Example: cab37311-d338-4125-8307-12658e9c029e change id |
{- "data": {
- "id": "5a44a671-d4bf-4ec3-b40f-8df1ec9d9450",
- "type": "change",
- "attributes": {
- "created_by": "erinn",
- "action": "default",
- "status_code": "success",
- "initial_step_tree": null,
- "metadata": {
- "bus": "transmitting"
}, - "automated": true,
- "approved_by": [ ],
- "created_at": "2023-10-24T03:48:01.107826Z",
- "started_at": "2023-10-24T03:41:50.887384Z",
- "finished_at": "2023-10-24T03:43:52.956208Z",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "git_remote_name": "github",
- "git_rev": "main",
- "commit_sha": "34c16b740db74a0994b77a327d565282331ce837",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a691b3e2-1589-4739-8eb0-9934dbb149d1",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a691b3e2-1589-4739-8eb0-9934dbb149d1"
}
}, - "root_step": {
- "data": {
- "id": "2602e52a-93c1-4e2a-8301-90e013ea634c",
- "type": "step"
}, - "links": {
- "related": "/api/steps/2602e52a-93c1-4e2a-8301-90e013ea634c"
}
}, - "steps": {
- "data": [
- {
- "id": "2602e52a-93c1-4e2a-8301-90e013ea634c",
- "type": "step"
}
]
}
}, - "links": {
- "self": "/api/changes/5a44a671-d4bf-4ec3-b40f-8df1ec9d9450",
- "log_lines": "/api/changes/5a44a671-d4bf-4ec3-b40f-8df1ec9d9450/log_lines",
- "git_remote": "/api/projects/opc/git_remotes/eca2512d-54e6-4dbd-8744-2b2c66e78ce1",
- "project": "/api/projects/opc",
- "parent": "/api/projects/opc/environments/dev"
}
}, - "included": [
- {
- "id": "2602e52a-93c1-4e2a-8301-90e013ea634c",
- "type": "step",
- "attributes": {
- "status_code": "success",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:40:50.887384Z",
- "started_at": "2023-10-24T03:41:50.887384Z",
- "finished_at": "2023-10-24T03:43:52.956208Z",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "a691b3e2-1589-4739-8eb0-9934dbb149d1",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/a691b3e2-1589-4739-8eb0-9934dbb149d1"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "8718fdd3-26d8-4d3f-8f07-f1b2e93a2139",
- "type": "properties_version"
}, - {
- "id": "3081171e-6cf4-4fa8-b7ce-8b6e1b15d26a",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/5a44a671-d4bf-4ec3-b40f-8df1ec9d9450",
- "log_lines": "/api/steps/2602e52a-93c1-4e2a-8301-90e013ea634c/log_lines",
- "self": "/api/steps/2602e52a-93c1-4e2a-8301-90e013ea634c"
}
}
]
}
{- "data": [
- {
- "id": "a8ef0a32-9748-41f0-9c38-669731ae18a9",
- "type": "automated_change_rule",
- "attributes": {
- "action": "program",
- "created_by": "raisa",
- "cron_schedule": "51 11 9 11 *",
- "new_commits_only": true,
- "git_rev": "multi-byte",
- "repeat": true,
- "created_at": "2023-10-24T03:47:58.897407Z",
- "next_run_at": "2023-11-09T00:51:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "links": {
- "self": "/api/automated_change_rules/a8ef0a32-9748-41f0-9c38-669731ae18a9"
}
}
], - "meta": {
- "has_any": true
}
}
Creates an automated change rule.
required | object |
{- "data": {
- "attributes": {
- "git_remote_name": "github",
- "git_rev": "digital",
- "environment_code": "dev",
- "project_code": "opc",
- "action": "copy",
- "cron_schedule": "39 20 24 8 *",
- "new_commits_only": false,
- "repeat": true
}
}
}
{- "data": {
- "id": "805325c6-b481-4c3a-9c94-73b9d1855b16",
- "type": "automated_change_rule",
- "attributes": {
- "action": "different_action",
- "created_by": "leandro",
- "cron_schedule": "57 7 24 3 *",
- "new_commits_only": false,
- "git_rev": "multi-byte",
- "repeat": false,
- "created_at": "2023-10-24T03:47:59.211477Z",
- "next_run_at": "2024-03-23T20:57:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "links": {
- "self": "/api/automated_change_rules/805325c6-b481-4c3a-9c94-73b9d1855b16"
}
}
}
Shows an automated change rule.
automated_change_id required | string Example: b7fd8d5e-49be-4b29-a8c0-a2468beb7683 automated change id |
{- "data": {
- "id": "ff52ab87-caef-4a1c-816f-0086eee9b737",
- "type": "automated_change_rule",
- "attributes": {
- "action": "override",
- "created_by": "ignacio.heller",
- "cron_schedule": "50 7 26 4 *",
- "new_commits_only": true,
- "git_rev": "haptic",
- "repeat": false,
- "created_at": "2023-10-24T03:47:59.750928Z",
- "next_run_at": "2024-04-25T21:50:00.000000Z",
- "environment_code": "dev",
- "environment_name": "Development",
- "project_name": "OpsChain",
- "project_code": "opc",
- "git_remote_name": "github"
}, - "links": {
- "self": "/api/automated_change_rules/ff52ab87-caef-4a1c-816f-0086eee9b737"
}
}
}
Endpoints to interact with change steps.
Shows a change step.
step_id required | string Example: 7db86fdf-ad71-45ba-8d65-693cc6622f59 step id |
{- "data": {
- "id": "5ea1e515-4c44-4d08-8968-acc82bc296f9",
- "type": "step",
- "attributes": {
- "status_code": "success",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:42:17.799895Z",
- "started_at": "2023-10-24T03:43:17.799895Z",
- "finished_at": "2023-10-24T03:47:11.757376Z",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "143379d5-ef29-4a3f-8957-e000e34cf103",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/143379d5-ef29-4a3f-8957-e000e34cf103"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "0e89354d-f2a2-476f-bfbf-19fe36235738",
- "type": "properties_version"
}, - {
- "id": "e40e1316-6560-4051-8c8e-6e6f9aa78e68",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/bbb2da24-d594-4a12-8cbf-c0f7f4d1959c",
- "log_lines": "/api/steps/5ea1e515-4c44-4d08-8968-acc82bc296f9/log_lines",
- "self": "/api/steps/5ea1e515-4c44-4d08-8968-acc82bc296f9"
}
}, - "included": [
- {
- "id": "0e89354d-f2a2-476f-bfbf-19fe36235738",
- "type": "properties_version",
- "attributes": {
- "data": { },
- "version": 1,
- "owner_type": "node"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "b9e6289f-618a-42e7-81d7-cf33448388cf",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/b9e6289f-618a-42e7-81d7-cf33448388cf"
}
}
}, - "links": {
- "properties_versions": "/api/properties/b9e6289f-618a-42e7-81d7-cf33448388cf/versions",
- "self": "/api/properties/b9e6289f-618a-42e7-81d7-cf33448388cf/versions/1"
}
}, - {
- "id": "e40e1316-6560-4051-8c8e-6e6f9aa78e68",
- "type": "properties_version",
- "attributes": {
- "data": { },
- "version": 1,
- "owner_type": "node"
}, - "relationships": {
- "properties": {
- "data": {
- "id": "cc622a2d-4d99-4ffc-9536-bd644fa7fac6",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/cc622a2d-4d99-4ffc-9536-bd644fa7fac6"
}
}
}, - "links": {
- "properties_versions": "/api/properties/cc622a2d-4d99-4ffc-9536-bd644fa7fac6/versions",
- "self": "/api/properties/cc622a2d-4d99-4ffc-9536-bd644fa7fac6/versions/1"
}
}, - {
- "id": "143379d5-ef29-4a3f-8957-e000e34cf103",
- "type": "properties",
- "attributes": {
- "data": { },
- "version": 1
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/steps/5ea1e515-4c44-4d08-8968-acc82bc296f9"
}
}
}, - "links": {
- "self": "/api/properties/143379d5-ef29-4a3f-8957-e000e34cf103",
- "current_version": "/api/properties/143379d5-ef29-4a3f-8957-e000e34cf103/versions/1",
- "properties_versions": "/api/properties/143379d5-ef29-4a3f-8957-e000e34cf103/versions"
}
}
]
}
Continues a "waiting" change step.
step_id required | string Example: e5b800d4-af87-46b7-9943-04eeaf5dc0e8 step id |
{- "data": {
- "id": "927e419b-3639-4af6-9e8f-39dc012eb4b7",
- "type": "step",
- "attributes": {
- "status_code": "success",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:38:51.578526Z",
- "started_at": "2023-10-24T03:39:51.578526Z",
- "finished_at": "2023-10-24T03:48:21.070397Z",
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "1f545957-c1bb-4d5b-986c-1b36bdb21bc0",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/1f545957-c1bb-4d5b-986c-1b36bdb21bc0"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "d12569b1-00d9-43ab-bbc6-fd4cd9ce24e1",
- "type": "properties_version"
}, - {
- "id": "88fe44b7-ae1f-4d01-9ec2-046333602599",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/ab2cf110-3629-4cdc-aa16-95cf09c53ceb",
- "log_lines": "/api/steps/927e419b-3639-4af6-9e8f-39dc012eb4b7/log_lines",
- "self": "/api/steps/927e419b-3639-4af6-9e8f-39dc012eb4b7"
}
}
}
Approves a change step that needs approval.
step_id required | string Example: 8ce7e4f6-bfdb-4ca0-a27b-79df4b7da0b3 step id |
{- "data": {
- "id": "fbcd8b99-911b-480b-aea4-b08d07df5916",
- "type": "step",
- "attributes": {
- "status_code": "queued",
- "action": "default",
- "step_type": "standard",
- "approved_by": [ ],
- "continued_by": [ ],
- "child_execution_strategy": "sequential",
- "created_at": "2023-10-24T03:39:29.983035Z",
- "started_at": "2023-10-24T03:40:29.983035Z",
- "finished_at": null,
- "requires_approval_from": null
}, - "relationships": {
- "properties": {
- "data": {
- "id": "543ce8bd-d90e-4b8c-a26c-dc9dcd787c22",
- "type": "properties"
}, - "links": {
- "related": "/api/properties/543ce8bd-d90e-4b8c-a26c-dc9dcd787c22"
}
}, - "children": {
- "data": [ ]
}, - "properties_versions": {
- "data": [
- {
- "id": "5576f6c1-51ef-4e05-a78c-6b4c6a08c283",
- "type": "properties_version"
}, - {
- "id": "a588e527-f0fb-4e2f-8ee7-c19359d21934",
- "type": "properties_version"
}
]
}
}, - "links": {
- "parent": "/api/changes/7a415e6c-7bde-4e7c-abf4-895eab02d93a",
- "log_lines": "/api/steps/fbcd8b99-911b-480b-aea4-b08d07df5916/log_lines",
- "self": "/api/steps/fbcd8b99-911b-480b-aea4-b08d07df5916"
}
}
}
List the log lines for a change.
change_id required | string Example: cab37311-d338-4125-8307-12658e9c029e |
filter[<query/sort filter>]= | |
download | string Example: download=change.log Download the log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "5e1dd34d-72c5-4fb2-9fde-978438a2c56d",
- "type": "log_line",
- "attributes": {
- "change_id": "78ec401e-cff1-400e-a10d-85fa5c31b833",
- "step_id": "81fbda35-0744-4a6a-af13-f32f7aae1c4f",
- "message": "Et ut velit iste.",
- "logged_at": "2023-10-23T00:00:00.000000Z"
}
}
]
}
List the log lines for a change step.
step_id required | string Example: 7db86fdf-ad71-45ba-8d65-693cc6622f59 |
filter[<query/sort filter>]= | |
download | string Example: download=step.log Download the log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "7007f39b-dffb-4a8a-a5a5-5da5b96301e2",
- "type": "log_line",
- "attributes": {
- "change_id": "91f7453b-5717-4199-94fa-9c08a280406c",
- "step_id": "52520c64-288f-4e95-b684-c22ce821882c",
- "message": "Placeat rem laboriosam non.",
- "logged_at": "2023-10-23T00:00:00.000000Z"
}
}
]
}
List filtered log lines.
filter[<query/sort filter>]= | |
limit | integer [ 1 .. 10000 ] Default: 1000 Example: limit=50 Limit the number of log lines returned |
download | string Example: download=opschain.log Download the filtered log lines wth the specified file name. The logs will be ordered from oldest to newest when this parameter is specified, irrespective of the sort order requested. |
{- "data": [
- {
- "id": "50d7f250-938a-404c-8aae-2e8d6a9ba6a3",
- "type": "log_line",
- "attributes": {
- "change_id": "69dd9e97-5820-41f2-8a25-23cdb93351ea",
- "step_id": "14a0aacf-075d-43e2-9044-ddc7c046536d",
- "message": "Et quas nostrum aut.",
- "logged_at": "2023-10-23T00:00:00.000000Z"
}
}
]
}
Endpoints to interact with events.
Lists all events.
filter[<query/sort filter>]= | |
limit | integer [ 1 .. 1000 ] Default: 10 Example: limit=50 Limit the number of events returned |
{- "data": [
- {
- "id": "aa3f05a0-29df-4987-87a6-a7d1d6553018",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "marinda.carter",
- "system": false,
- "type": "my custom event",
- "created_at": "2023-10-24T03:48:02.707451Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/events/aa3f05a0-29df-4987-87a6-a7d1d6553018"
}
}
]
}
Creates an event.
required | object |
{- "data": {
- "attributes": {
- "type": "custom event",
- "any_key": "with a value",
- "another_key": "with a different value",
- "nested": {
- "key": "nested value"
}
}
}
}
{- "data": {
- "id": "a266ae0d-be3e-4c9c-9984-1e1a378c5bdd",
- "type": "event",
- "attributes": {
- "some": "event data",
- "username": "elton",
- "system": false,
- "type": "my event",
- "created_at": "2023-10-24T03:48:02.835808Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": null
}
}
}, - "links": {
- "self": "/api/events/a266ae0d-be3e-4c9c-9984-1e1a378c5bdd"
}
}
}
Shows an event.
event_id required | string Example: f4172be0-60a6-452b-a0b4-53ae11643ce3 event id |
{- "data": {
- "id": "15736d22-89f7-4149-a5f5-ff9bece90080",
- "type": "event",
- "attributes": {
- "nested": {
- "key": "nested value"
}, - "any_key": "with a value",
- "another_key": "with a different value",
- "username": "chadwick",
- "system": false,
- "type": "my custom event",
- "created_at": "2023-10-24T03:48:03.065678Z"
}, - "relationships": {
- "source": {
- "links": {
- "source": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/events/15736d22-89f7-4149-a5f5-ff9bece90080"
}
}
}
Endpoints to interact with settings.
Shows the current settings.
settings_id required | string Example: 88dec4ed-a05a-4cce-8c25-66152b83f65c settings id |
{- "data": {
- "id": "b5a483b2-4793-4cf7-954b-54aa1e5296a5",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/b5a483b2-4793-4cf7-954b-54aa1e5296a5",
- "current_version": "/api/settings/b5a483b2-4793-4cf7-954b-54aa1e5296a5/versions/1",
- "settings_versions": "/api/settings/b5a483b2-4793-4cf7-954b-54aa1e5296a5/versions"
}
}
}
Updates a settings JSON if the included version matches the current settings version.
id_to_update required | string Example: 88dec4ed-a05a-4cce-8c25-66152b83f65c settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 1
}
}
}
{- "data": {
- "id": "91407d82-8840-4857-899c-96f7d59efc84",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/91407d82-8840-4857-899c-96f7d59efc84",
- "current_version": "/api/settings/91407d82-8840-4857-899c-96f7d59efc84/versions/2",
- "settings_versions": "/api/settings/91407d82-8840-4857-899c-96f7d59efc84/versions"
}
}
}
Updates a settings JSON, without any version checking (always updates).
id_to_set required | string Example: 88dec4ed-a05a-4cce-8c25-66152b83f65c settings id |
required | object |
{- "data": {
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}
}
}
}
{- "data": {
- "id": "71204a03-6ea9-47f4-aa72-dc314c9d36b1",
- "type": "settings",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5,
}, - "version": 2
}, - "relationships": {
- "owner": {
- "links": {
- "owner": "/api/projects/opc"
}
}
}, - "links": {
- "self": "/api/settings/71204a03-6ea9-47f4-aa72-dc314c9d36b1",
- "current_version": "/api/settings/71204a03-6ea9-47f4-aa72-dc314c9d36b1/versions/2",
- "settings_versions": "/api/settings/71204a03-6ea9-47f4-aa72-dc314c9d36b1/versions"
}
}
}
Endpoints to interact with the version history for settings.
Lists all versions of an OpsChain settings.
settings_id required | string Example: 88dec4ed-a05a-4cce-8c25-66152b83f65c settings id |
{- "data": [
- {
- "id": "d66b89a8-4f38-4621-a4ba-61b58056b48b",
- "type": "settings_version",
- "attributes": {
- "data": {
- "change_log_retention_days": 10,
- "event_retention_days": 5
}, - "version": 1
}, - "relationships": {
- "settings": {
- "data": {
- "id": "e2797f6f-cd0a-4a5c-b8ff-70f7b0a508de",
- "type": "settings"
}, - "links": {
- "related": "/api/settings/e2797f6f-cd0a-4a5c-b8ff-70f7b0a508de"
}
}
}, - "links": {
- "settings_versions": "/api/settings/e2797f6f-cd0a-4a5c-b8ff-70f7b0a508de/versions",
- "self": "/api/settings/e2797f6f-cd0a-4a5c-b8ff-70f7b0a508de/versions/1"
}
}
]
}