Created
October 30, 2024 18:29
-
-
Save rssnyder/d6eaf2cb5e2117b4585af31912b817b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline: | |
name: catalog ingestion api | |
identifier: catalog_ingestion_api | |
projectIdentifier: idp | |
orgIdentifier: default | |
tags: {} | |
stages: | |
- stage: | |
name: add data | |
identifier: add_data | |
description: "" | |
type: Custom | |
spec: | |
execution: | |
steps: | |
- step: | |
type: Http | |
name: Http_1 | |
identifier: Http_1 | |
spec: | |
url: https://app.harness.io/gateway/v1/catalog/custom-properties/entity | |
method: POST | |
headers: | |
- key: x-api-key | |
value: <+secrets.getValue("account.api")> | |
- key: Harness-Account | |
value: <+account.identifier> | |
- key: Content-Type | |
value: application/json | |
inputVariables: | |
- name: entity_ref | |
value: <+input> | |
type: String | |
- name: property | |
value: <+input> | |
type: String | |
- name: value | |
value: <+input> | |
type: String | |
outputVariables: [] | |
requestBody: |- | |
{ | |
"entity_ref": "<+spec.inputVariables.entity_ref>", | |
"properties": [ | |
{ | |
"property": "<+spec.inputVariables.property>", | |
"value": "<+spec.inputVariables.value>" | |
} | |
] | |
} | |
assertion: <+httpResponseCode> < 400 | |
timeout: 10s | |
tags: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment