github.com/jaylevin/jenkins-library@v1.230.4/documentation/docs/steps/apiProviderUpload.md (about) 1 # ${docGenStepName} 2 3 ## ${docGenDescription} 4 5 With this step, you can add a new entity to the API Providers. An API Provider is a concept in API Management, capability of SAP Integration Suite, which defines the connection details for services running on specific hosts whose details you want to access. 6 7 You use an API provider to define not only the details of the host you want an application to reach, but also to define any further details that are necessary to establish the connection, for example, proxy settings.For more details, see the blog [API Providers](https://blogs.sap.com/2017/07/27/blog-series-api-providers/) 8 9 To consume the ApiProviderUpload step, proceed as follows: 10 11 * Copy the SAP API management service key from the SAP BTP cockpit. Go to instance and subscriptions → service API Management, API portal, which was created under apiportal-apiaccess plan. 12 * Store your service key created for API Management in the Jenkins server as a secret text. 13 * Create a new Jenkins pipeline designated for the ApiKeyValueMapUpload step. 14 * Create a api provider json file in the jenkins worksapce relative file path, as an input for ApiKeyValueMapUpload step. 15 * 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/) 16 * Use the ApiProviderUpload step to create a new API provider in the API portal. 17 * If API provider already exists, then delete it and execute the piper step again, which will create a new API provider. 18 * ApiProviderUpload only supports create operation. 19 20 ## Prerequisites 21 22 ## ${docGenParameters} 23 24 ## ${docGenConfiguration} 25 26 ## ${docJenkinsPluginDependencies} 27 28 ## Example 29 30 Configuration example for a `Jenkinsfile`: 31 32 ```groovy 33 apiProviderUpload script: this 34 ``` 35 36 Configuration example for a YAML file(for example `.pipeline/config.yaml`): 37 38 ```yaml 39 steps: 40 <...> 41 apiKeyValueMapUpload: 42 apimApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY' 43 filePath: MY_API_PROVIDER_JSON_FILE_PATH 44 ```