icon-zcspm.svg
ZCSPM

Getting Started with ZCSPM API

You can leverage the ZCSPM APIs to onboard cloud accounts, initiate configuration metadata scans for recently deployed infrastructure changes, or get a compliance summary for your current cloud deployment. ZCSPM offers different APIs at cloud account level and license level.

Account Level ZCSPM APIs

License Level ZCSPM APIs

You must complete the following prerequisites before you can access and use the ZCSPM API:

  • You must create a ZCSPM API application and configure access for selected cloud accounts:

    1. Log in to the ZCSPM portal.
    2. From the License drop-down menu, select a license.
    3. Go to Configuration > API Access, then click Create API Application.

    View the API Access page on ZCSPM

    1. On the Create API Application page:
      • API Application Name: Enter a name for the API application.
      • Select APIs to Connect: From the drop-down menu, select all ZCSPM APIs that the application needs to connect to.
      • Select APIs Scope: Move desired accounts from the Excluded Cloud Accounts section to the Included Cloud Accounts section.
      • Token Expiry: From the drop-down menu, select the expiry duration for the API token. For example, you can set the token to expire after 60 minutes.
      • Select Expiry: Enter an expiration date (i.e., dd/mm/yyyy) or select an expiration date from the calendar menu for the API application secret.
    2. Click Save.

    View the Create API Application page on ZCSPM

    1. Click the Copy icon to copy the ZCSPM Application Secret ID. You will not be able to retrieve the secret after leaving this window. Make sure you have saved the secret securely.
    • To regenerate the ZCSPM API Application Secret:

      1. Log in to the ZCSPM portal.
      2. From the License drop-down menu, select a license.
      3. Go to Configuration > API Access.
      4. From the Configure App drop-down menu, select Regenerate Secret Key.
      5. Click Continue.
      6. Click the Copy icon to copy the ZCSPM Application Secret ID.
      7. Click Done.
      Close
    1. Click Done.

    After the API application is created, you must copy and save the ZCSPM API Application Id as well. You need the application ID to generate an access token.

    Close
    1. Sign in to your account at the ZCSPM API portal.

    If you do not have a ZCSPM API account, you can sign up at the ZCSPM API portal.

    1. In the PRODUCTS tab, select Unlimited.

    View the ZCSPM API portal to subscribe to APIs

    1. Click Subscribe.
    2. After ZCSPM verifies and activates your API subscription access, it sends out an activation confirmation email.
    3. After you receive the confirmation email, select your username on the ZCSPM API portal.
    4. Click Profile.
    5. In the Your subscriptions section, select Show next to the Primary Key.

    View your subscriptions on the ZCSPM API Portal

    Close
  • You can acquire an access token either for a license or a cloud account using the Token API. You can use the acquired tokens to make requests to other ZCSPM APIs.

    Close
Related Articles
Getting Started with ZCSPM APIToken APIInitiate Scan APIOnboard Cloud Account APIUpdate Access Scope APIAudit Report APILicense Accounts APISupported Benchmarks APICloud Account Health Status APIScan Status API