1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +02:00
sap-jenkins-library/documentation/docs/steps/apiKeyValueMapUpload.md
Mayur Belur Mohan 9a3b800b9d
ApiKeyValueMapUpload Command (#3407)
* ApiKeyValueMapUpload Command

* include command in metadata

* TestCase Fixes

* CodeReview Fixes

* CodeReview Fixes

* Code Review Fixes

* CodeReview Fixes

* CodeReview Fixes

* CodeReview FIxes

* CodeReview Fixes

* Documenation change

* documentation fix

* Documentation Fix

* Documentation Fix

* documentation Fix

* CodeReview Fixes

* CodeReview Fixes

* Revert changes

* Documentation Fix

* CodeReview FIxes

* Doc Fixes

* Code Review Fixes

* Code Review Fixes

* CodeReview FIxes

* Documentation Fix

* Documentation Changes

* Documentation Fix

* codereview fix

* Documentation Fix

* CodeReview Fixes

* CodeReview Fix

* Documentation FIx

* doc fix

* Doc Fix

* Documentation Fix

* codereview fix

* revert fix

* Code Review Fix

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2022-03-07 11:03:44 +01:00

45 lines
1.7 KiB
Markdown

# ${docGenStepName}
## ${docGenDescription}
With this step you can store one or more key value pairs of data stored in a group called a map or key value map.
To consume the ApiKeyValueMapUpload step, proceed as follows:
* Copy the SAP API management service key from the SAP BTP sub account cockpit, under instance and subscriptions &rarr; service API Management, API portal, which was created under apiportal-apiaccess plan.
* Store your service key created for SAP API Management in the Jenkins server as a secret text.
* Create a new Jenkins pipeline designated for the ApiKeyValueMapUpload step.
* Execute the pipeline and validate the step exection results as explained in the blog [Integration Suite Piper commands](https://blogs.sap.com/2022/01/05/orking-with-integration-suite-piper-commands/)
* Using the ApiKeyValueMapUpload step, you can create a new API key value map in the API portal.
* The ApiKeyValueMapUpload step allows you to prevent command execution in case an API key value map already exists.
* If API key value map already exists, then delete it and execute the piper step again, which will create a new API Key value Map.
* ApiKeyValueMapUpload only supports create operation.
## Prerequisites
## ${docGenParameters}
## ${docGenConfiguration}
## ${docJenkinsPluginDependencies}
## Example
Configuration example for a `Jenkinsfile`:
```groovy
apiKeyValueMapUpload script: this
```
Configuration example for a YAML file(for example `.pipeline/config.yaml`):
```yaml
steps:
<...>
apiKeyValueMapUpload:
apimApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
key: API_KEY_NAME
value: API_KEY_VALUE
keyValueMapName: API_KEY_VALUE_MAP_NAME
```