Create and manage Cognos Analytics JDBC Drivers, deployments and images on IBM® Cloud Pak for Data by using the Cognos Analytics Artifacts REST API. Introduction The Cognos Analytics Artifacts API is used to create and maintain artifacts that can be used to access databases through JDBC, deployments that can be imported or exported, plus images that can be displayed in reports and dashboards. Endpoint URLs The service endpoint is based on your IBM Cloud Pak deployment URL. bash https://{cpdclusterhost}/cognosanalytics/{tetherednamespace}/artifacts/v1/{method} For example, if your instance is deployed at https://www.example.com:31843, you can access the APIs at https://www.example.com:31843/cognosanalytics/{tetherednamespace}/artifacts/v1/{method}. Example request to endpoint bash curl -H "Authorization: Bearer {token}" -X {requestmethod} "https://{cpdclusterhost}/cognosanalytics/{tetherednamespace}/artifacts/v1/{method}" Replace {token}, {requestmethod}, {tetherednamespace} and {method} in this example with the values for you particular API call. Authentication To authenticate to the API, pass a bearer access token or platform API key token in an Authorization header. If Identity and Access Management IAM are not enabled, you can generate a token by using your username and password against the Get authorization tokenhttps://cloud.ibm.com/apidocs/cloud-pak-data/cloud-pak-data-5.0.0getauthorizationtoken endpoint. If IAM is enabled, you can generate a token by using your username and password against the /idprovider/v1/auth/identitytoken endpoint. With a platform API key, you can access everything that you would typically be able to access when you log in to the Cloud Pak for Data web client. To generate a platform API key through the user experience: 1. Log in to the web client. 2. From the toolbar, click your avatar. 3. Click Profile and settings. 4. Click API key Generate new key. 5. Click Generate. 6. Click Copy and save your key somewhere safe. You cannot recover this key if you lose it. Alternatively, you can call the Generate API keyhttps://cloud.ibm.com/apidocs/cloud-pak-data/cloud-pak-data-5.0.0getapikey method. Note: this method must be called with bearer access token authorization. When you get the API Key from the user experience or from the generate API Key method, you must base64 encode Method Path Summary GET /drivers Get information about all uploaded drivers POST /drivers Upload a driver GET /drivers/{id} Download information about a driver DELETE /drivers/{id} Delete a driver GET /drivers/{id}/filenames/{fileid} Download a file from a driver GET /deployments Get information about all deployment files POST /deployments Upload a deployment file GET /deployments/{id} Download a deployment file DELETE /deployments/{id} Delete a deployment file GET /images Get information about all image files POST /images Upload a list of images GET /images/{imageId} Download an image DELETE /images/{imageId} Delete an image