github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/documentation/docs/steps/apiProviderList.md (about)

     1  # ${docGenStepName}
     2  
     3  ## ${docGenDescription}
     4  
     5  With this step, you can retrieve all the API providers from the API portal. 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 ApiProviderList 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 ApiProviderList step.
    14  * 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/)
    15  * Use the ApiProviderList step to get the api providers list from the API Portal.
    16  * ApiProviderList only supports GET operation.
    17  
    18  ## Prerequisites
    19  
    20  ## ${docGenParameters}
    21  
    22  ## ${docGenConfiguration}
    23  
    24  ## ${docJenkinsPluginDependencies}
    25  
    26  ## Example
    27  
    28  Configuration example for a `Jenkinsfile`:
    29  
    30  ```groovy
    31  apiProviderList script: this
    32  ```
    33  
    34  Configuration example for a YAML file(for example `.pipeline/config.yaml`):
    35  
    36  ```yaml
    37  steps:
    38    <...>
    39    apiProviderList:
    40      apimApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
    41      Top: MY_API_PROVIDER_GET_N_ENTITIES
    42      Skip: MY_API_PROVIDER_SKIP_N_ENTITIES
    43      Filter: MY_API_PROVIDER_FILTER_BY_ENTITY_FIELD
    44      Orderby: MY_API_PROVIDER_ORDER_BY_ENTITY_FIELD
    45      Count: MY_API_PROVIDER_ORDER_ENTITY_COUNT
    46      Search: MY_API_PROVIDER_SEARCH_BY_ENTITY_FIELD
    47      Select: MY_API_PROVIDER_SELECT_BY_ENTITY_FIELD
    48      Expand: MY_API_PROVIDER_EXPAND_BY_ENTITY_FIELD
    49  ```