Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. IDMC REST API
  3. REST API resource quick references
  4. Platform REST API version 2 resources
  5. Platform REST API version 3 resources
  6. Data Integration REST API
  7. Cloud Data Integration for PowerCenter (CDI-PC) REST API
  8. Data Ingestion and Replication REST API
  9. Customer Managed REST API
  10. RunAJob utility
  11. ParamSetCli utility
  12. REST API codes

REST API Reference

REST API Reference

Getting all tokens for an organization

Getting all tokens for an organization

If you have Kubernetes DevOps engineers privileges, you can list all the tokens for the organization.

GET request

To list all tokens for the organization, use the following URI:
/public/core/v3/containerImageToken
Include the following parameter:
Parameter
Type
Description
orgId
String
Organization ID to see the generated tokens.
The following table lists the potential error codes for a request:
HTTP status code
Description
401
Unauthenticated or unauthorized.
403
Privilege get.k8s.repository.token is required for accessing this API.

GET response

If successful, a list of all the tokens for the organization is returned.

GET response examples

To list available images for download, use the following request:
GET <baseApiUrl>/public/core/v3/containerImageToken Content-type: application/json Accept: application/json INFA-SESSION-ID: <SessionId>
If successful, you might receive a "200 OK" response like the following example:
[ { "orgId": "52ZSTB0IDK6dXxaEQLUaQu", "userId": "admin", "tokenId": "<token ID>", "expirationTime": "2022-10-31T07:06:59.000Z" }, { "orgId": "52ZSTB0IDK6dXxaEQLUaQu", "userId": "admin", "tokenId": "<token ID>", "expirationTime": "2022-10-31T07:06:59.000Z" } ]
If you have insufficient privileges, you might receive a "403 Forbidden" response like the following example:
{ "error": { "code": "AIS_007", "message": "Privilege - view.k8s.agent.config required for accessing this API.", "debugMessage": "Privilege - view.k8s.agent.config required for accessing this API.", "requestId": "l2EpwkFoqkEjrEJURclPw2", "details": null } }

0 COMMENTS

We’d like to hear from you!