Palo Alto Networks Cloud Accounts (All) API

You can use the APIs in this category to perform operations that are nonspecific to cloud account types, such as listing all the cloud accounts, listing supported features, and deleting an account. For operations that are specific to the cloud type or cloud provider, see: * [Cloud Accounts (AWS)](/prisma-cloud/api/cspm/cloud-accounts-aws/) * [Cloud Accounts (Azure)](/prisma-cloud/api/cspm/cloud-accounts-azure/) * [Cloud Accounts (GCP)](/prisma-cloud/api/cspm/cloud-accounts-gcp/) * [Cloud Accounts (OCI and Alibaba)](/prisma-cloud/api/cspm/cloud-accounts-oci-and-alibaba/)

OpenAPI Specification

palo-alto-networks-cloud-accounts-all-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Palo Alto Networks Cloud Accounts (All) API
  version: '1.0'
  description: 'Operations tagged Cloud Accounts (All) across 3 of this provider''s published API definitions: palo-alto-cspm-cloudaccountonboardingmicroservices-openapi.json, palo-alto-cspm-cloudaccountsmicroservice-openapi.json, palo-alto-cspm-datasecurityonboardingmicroservice-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.prismacloud.io
- url: https://api2.prismacloud.io
- url: https://api3.prismacloud.io
- url: https://api4.prismacloud.io
- url: https://api.anz.prismacloud.io
- url: https://api.eu.prismacloud.io
- url: https://api2.eu.prismacloud.io
- url: https://api.gov.prismacloud.io
- url: https://api.prismacloud.cn
- url: https://api.ca.prismacloud.io
- url: https://api.sg.prismacloud.io
- url: https://api.uk.prismacloud.io
- url: https://api.ind.prismacloud.io
- url: https://api.jp.prismacloud.io
- url: https://api.fr.prismacloud.io
tags:
- name: Cloud Accounts (All)
  description: "You can use the APIs in this category to perform operations that are nonspecific to cloud account types, such as listing all the cloud accounts, listing supported features, and deleting an account.\n\nFor operations that are specific to the cloud type or cloud provider, see:\n* [Cloud Accounts (AWS)](/prisma-cloud/api/cspm/cloud-accounts-aws/)\n* [Cloud Accounts (Azure)](/prisma-cloud/api/cspm/cloud-accounts-azure/) \n* [Cloud Accounts (GCP)](/prisma-cloud/api/cspm/cloud-accounts-gcp/)\n* [Cloud Accounts (OCI and Alibaba)](/prisma-cloud/api/cspm/cloud-accounts-oci-and-alibaba/)\n"
paths:
  /account/{accountId}/config/status:
    get:
      tags:
      - Cloud Accounts (All)
      summary: Get Account Status
      description: Returns the list of Prisma Cloud Security Capabilities whose status is either warning or error for the specified account ID. The response also contains suggestions to remediate the error or warning.
      operationId: list-cloud-account-status-details
      parameters:
      - name: accountId
        in: path
        description: Cloud account ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccountConfigStatusView'
        '400':
          description: bad_request
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud:
    get:
      tags:
      - Cloud Accounts (All)
      summary: Get all Cloud Accounts
      description: Get summary details of all the cloud accounts onboarded onto Prisma Cloud. This endpoint returns a list view without the features array. To get complete details of a specific cloud account including features, see [Get Cloud Account Details](/prisma-cloud/api/cspm/get-cloud-account).
      operationId: get-cloud-accounts
      parameters:
      - name: excludeAccountGroupDetails
        in: query
        description: true = Exclude account group details. Default is false.
        required: false
        schema:
          type: boolean
      - name: includePendingAccounts
        in: query
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccountListViewModel'
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/name:
    get:
      tags:
      - Cloud Accounts (All)
      summary: List Cloud Account Names - GET
      description: "You can use this endpoint to GET the account IDs and names of accounts that:\n\n *Belongs to a specific account group\n\n *Belongs to a specific account type \n\n *Is active. For precise filtering, use the [List Cloud Account Names -POST](https://pan.dev/prisma-cloud/api/cspm/get-cloud-account-names-by-post/) endpoint."
      operationId: get-cloud-account-names
      parameters:
      - name: onlyActive
        in: query
        description: Returns IDs and names of active accounts only. Default is false.
        required: false
        schema:
          type: boolean
      - name: accountGroupIds
        in: query
        description: Returns IDs and names of accounts that belong to the specified account group IDs
        required: false
        explode: true
        schema:
          type: array
          items:
            type: string
      - name: cloudType
        in: query
        description: Returns IDs and names of accounts that belong to the specified cloudType and accountGroup
        required: false
        schema:
          type: string
      - name: includeOthers
        in: query
        description: Returns none cloudAccount and none cloudAccountId in response if includeOthers is true
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccountIdentity'
      x-microservice: 'true'
      x-public: 'true'
      security:
      - x-redlock-auth: []
    post:
      tags:
      - Cloud Accounts (All)
      summary: List Cloud Account Names - POST
      description: Get the list of cloud account names and Ids that match custom filtering criteria where the filter criteria can be defined in the filter key and filter value parameter of the request.
      operationId: get-cloud-account-names-by-post
      parameters:
      - name: onlyActive
        in: query
        description: Returns IDs and names of active accounts only. Default is false.
        required: false
        schema:
          type: boolean
      - name: cloudType
        in: query
        description: Returns IDs and names of accounts that belong to the specified cloudType and accountGroup
        required: false
        schema:
          type: string
      - name: includeOthers
        in: query
        description: Returns none cloudAccount and none cloudAccountId in response if includeOthers is true
        required: false
        schema:
          type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountListRequestModel'
        description: Cloud Account Groups
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccountIdentity'
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/type:
    get:
      tags:
      - Cloud Accounts (All)
      summary: List Cloud Types
      description: Returns the list of cloud account types supported by Prisma Cloud. You can also filter the cloud account types that you have onboarded.
      operationId: get-cloud-types
      parameters:
      - name: onlyAccessible
        in: query
        description: '**true** = return only cloud types to which the user has access and for which he has onboarded cloud accounts. Default is **false**.'
        required: false
        schema:
          type: boolean
      - name: includeOthers
        in: query
        description: returns other cloudType in response if includeOthers is true
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  type: string
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/{cloud_type}/{id}:
    get:
      tags:
      - Cloud Accounts (All)
      summary: Get Cloud Account Details
      description: Returns details of a Cloud Account based on cloud type and cloud ID. To get details of all the cloud accounts onboarded to Prisma Cloud, see [Get all Cloud Accounts](/prisma-cloud/api/cspm/get-cloud-accounts).
      operationId: get-cloud-account
      parameters:
      - name: cloud_type
        in: path
        description: Cloud Type
        required: true
        schema:
          type: string
          enum:
          - aws
          - azure
          - gcp
          - alibaba_cloud
          - oci
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      - name: includeGroupInfo
        in: query
        description: true = Include account group info. Default is false.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/CloudAccountModel'
      security:
      - x-redlock-auth: []
      x-public: 'true'
    delete:
      tags:
      - Cloud Accounts (All)
      summary: Delete Cloud Account
      description: Deletes an onboarded cloud account based on the specified Cloud Account ID and Cloud Type.
      operationId: delete-cloud-account
      parameters:
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      - name: cloud_type
        in: path
        description: Cloud Type
        required: true
        schema:
          type: string
          enum:
          - aws
          - azure
          - gcp
          - alibaba_cloud
          - oci
      responses:
        '200':
          description: successful operation
        '400':
          description: invalid_cloud_type / bad_request
        '403':
          description: cannot_delete_org_child
        '404':
          description: invalid_cloud_type / invalid_account_id_format
      security:
      - x-redlock-auth: []
      x-public: 'true'
    patch:
      tags:
      - Cloud Accounts (All)
      summary: Update Cloud Account Details
      description: Update the cloud account details such as cloud account status, auto consent state, status of children's accounts, and account group. In addition, you can also enable or disable the ingestion of data from the cloud account.
      operationId: patch-cloud-account
      parameters:
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      - name: cloud_type
        in: path
        description: Cloud Type
        required: true
        schema:
          type: string
          enum:
          - aws
          - azure
          - gcp
          - alibaba_cloud
          - oci
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloudAccountPatchModel'
        description: Cloud Account Patch
        required: true
      responses:
        '200':
          description: successful operation
        '400':
          description: invalid_account_id_format / invalid_account_patch
        '404':
          description: invalid_cloud_type / invalid_account_id_format
        '405':
          description: cloud_account_already_enabled / cloud_account_already_disabled
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/{cloud_type}/{id}/project:
    get:
      tags:
      - Cloud Accounts (All)
      summary: Get Cloud Org Accounts
      description: Get summary details of all the cloud accounts onboarded onto Prisma Cloud as children of an organization that belongs to a specific cloud type. This endpoint returns a list view without the features array. To get complete details of a specific cloud account including features, see [Get Cloud Account Details](https://pan.dev/prisma-cloud/api/cspm/get-cloud-account/).
      operationId: get-cloud-org-accounts
      parameters:
      - name: cloud_type
        in: path
        description: Cloud Type
        required: true
        schema:
          type: string
          enum:
          - aws
          - azure
          - gcp
          - alibaba_cloud
          - oci
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      - name: excludeAccountGroupDetails
        in: query
        description: true = Exclude account group details. Default is false.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccountListViewModel'
        '400':
          description: not_found / not_an_org
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/{id}/owners:
    get:
      tags:
      - Cloud Accounts (All)
      summary: List Cloud Account Owners
      description: Returns the email addresses of all owners for the specified cloud account ID.
      operationId: get-cloud-account-owners
      parameters:
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  type: string
        '400':
          description: invalid_account_id_format
        '404':
          description: invalid_account_id_format
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cloud/{id}/status/{enabled}:
    patch:
      tags:
      - Cloud Accounts (All)
      summary: Update Cloud Account Status
      description: Enable or disable data ingestion from a cloud account and its children by cloud account ID.
      operationId: update-cloud-account-status
      parameters:
      - name: id
        in: path
        description: Account ID
        required: true
        schema:
          type: string
      - name: enabled
        in: path
        description: Status To Set
        required: true
        schema:
          type: boolean
      - name: updateChildren
        in: query
        description: Allows for updating status of children cloud accounts if any. Default is false.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: successful operation
        '400':
          description: invalid_account_id_format / invalid_account_patch
        '404':
          description: invalid_account_id_format
      security:
      - x-redlock-auth: []
      x-public: 'true'
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cas/api/v1/org/{id}/features:
    put:
      tags:
      - Cloud Accounts (All)
      summary: Update Feature State for Members of an Organization
      description: Enable or disable the feature for list of member accounts linked to an organization.
      operationId: save-Bulk-Cloud-Account-Feature
      parameters:
      - name: id
        in: path
        description: ' For AWS, specify organization id.


          For GCP, specify organization id or masterServiceAccount id.


          For Azure, specify tenant id.


          '
        required: true
        schema:
          type: string
          example: null
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloudAccountBulkFeatureRequest'
        required: true
      responses:
        '200':
          description: Successfully saved/updated cloud account feature for the given member accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Invalid Account Id/Member Ids cannot be empty or null/Member account list should be less than 500 in a single request/Feature {0} is not allowed/Invalid feature state {0} for feature {1}/Organisation Id {0} is not onboarded/AccountType of {0} is invalid, should be either of Organisation / Master Service Account / Tenant/Members account {0} do not belong to {1}/Compute features are not supported for {0}/Feature {0} is not present for given account,/For feature = {0}, parent feature state is {1}/Organisation / Master Service Account / Tenant Id {0} should not be part of memberIds list/AccountType of member account {0} is invalid. Member accountType should be of type {1}/
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '401':
          description: Unauthorized Access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '403':
          description: Tenant License Expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '404':
          description: Tenant not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '405':
          description: Wrong Http Method
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '425':
          description: Too Early to access the resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
        '429':
          description: Rate Limit Exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestAPIErrorResponse'
      x-public: 'true'
      security:
      - x-redlock-auth: []
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /cas/v1/features/cloud/{cloud_type}:
    post:
      tags:
      - Cloud Accounts (All)
      summary: Fetch Supported Features For Cloud Type
      description: "Lists the features supported for the specified cloud type and account type. \n\n The response contains *supportedFeatures* key whose value contains supported feature names. This feature name can be used in the onboarding APIs to enable the required features.\n\n  **NOTE**: The supportedFeatures returns \"Cloud Visibility Compliance and Governance\" string by default. Do not explicitly pass this string as a feature in the request body param in any cloud account API(Like in Add AWS Cloud Account, Update AWS Cloud Account,Generate and Download the AWS CFT Template, etc)."
      operationId: fetch-supported-features
      parameters:
      - name: cloud_type
        in: path
        required: true
        schema:
          type: string
          example: null
          enum:
          - aws
          - azure
          - gcp
          - alibaba
          - oci
          - ibm
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FeaturesAvailableRequest'
        required: true
      responses:
        '200':
          description: Features supported for the cloud type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeaturesAvailableResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized Access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Tenant License Expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '405':
          description: Wrong Http Method
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '425':
          description: Too Early to access the resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate Limit Exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-public: 'true'
      security:
      - x-redlock-auth: []
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
  /config/v3/account:
    post:
      summary: Save Account Config With Given Attributes
      description: Saves account config with the values provided in the JSON payload and returns the config.
      operationId: save-account-config
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountConfig'
      responses:
        '200':
          description: success
          content:
            application/json: {}
        '400':
          description: bad_request
      x-public: 'true'
      security:
      - x-redlock-auth: []
      tags:
      - Cloud Accounts (All)
    servers:
    - url: https://api.prismacloud.io
    - url: https://api2.prismacloud.io
    - url: https://api3.prismacloud.io
    - url: https://api4.prismacloud.io
    - url: https://api.anz.prismacloud.io
    - url: https://api.eu.prismacloud.io
    - url: https://api2.eu.prismacloud.io
    - url: https://api.gov.prismacloud.io
    - url: https://api.prismacloud.cn
    - url: https://api.ca.prismacloud.io
    - url: https://api.sg.prismacloud.io
    - url: https://api.uk.prismacloud.io
    - url: https://api.ind.prismacloud.io
    - url: https://api.jp.prismacloud.io
    - url: https://api.fr.prismacloud.io
components:
  schemas:
    CloudAccountListViewModel:
      type: object
      properties:
        parentAccountId:
          type: string
        name:
          type: string
          description: Name
        cloudType:
          type: string
          description: Cloud Type
          readOnly: true
          enum:
          - ALL
          - AWS
          - AZURE
          - GCP
          - ALIBABA_CLOUD
          - OCI
          - OTHER
        accountType:
          type: string
          description: Cloud Account Type
          readOnly: true
          enum:
          - ACCOUNT
          - MASTER_SERVICE_ACCOUNT
          - COMPARTMENT
          - ORGANIZATION
          - TENANT
        enabled:
          type: boolean
          description: Enabled
        lastModifiedTs:
          type: integer
          format: int64
          description: Time account was last updated
          readOnly: true
        lastModifiedBy:
          type: string
          description: Last Modified By
          readOnly: true
        storageScanEnabled:
          type: boolean
          description: Storage Scan Enabled
        storageUUID:
          type: string
          description: Storage UUID
        protectionMode:
          type: string
          description: Protection Mode
          readOnly: true
          enum:
          - MONITOR
          - MONITOR_AND_PROTECT
        cloudAccountOwner:
          type: string
          description: Cloud account owner
        deploymentType:
          type: string
          description: Deployment Type
          enum:
          - AZURE
          - AZURE_GOVERNMENT
          - AZURE_CHINA
          - AWS
          - AWS_GOVERNMENT
          - AWS_CHINA
          - OCI
          - OCI_GOVERNMENT
          - OCI_CHINA
          - GCP
          - GCP_GOVERNMENT
          - GCP_CHINA
          - ALIBABA_CLOUD
          - ALIBABA_CLOUD_GOVERNMENT
          - ALIBABA_CLOUD_CHINA
          - ALIBABA_CLOUD_FINANCE
        associatedAccountGroupsCount:
          type: integer
          format: int32
          description: Associated Account Groups Count with this cloud account
        accountGroupInfos:
          type: array
          description: Account group details of groups associated with this account
          items:
            $ref: '#/components/schemas/AccountGroupInfo'
        cloudAccountOwnerCount:
          type: integer
          format: int32
          description: Cloud account owner count
          readOnly: true
        groups:
          type: array
          description: Groups
          readOnly: true
          items:
            type: object
            additionalProperties:
              type: object
        status:
          type: string
          description: Account Config Status
        numberOfChildAccounts:
          type: integer
          format: int32
        accountId:
          type: string
          description: Account ID
        addedOn:
          type: integer
          format: int64
          description: Added On
          readOnly: true
        groupIds:
          type: array
          description: Group Ids
          readOnly: true
          items:
            type: string
      description: Model for Cloud Account List View - used by list endpoints that do not return the features array
    AccountListRequestModel:
      type: object
      required:
      - timeRange
      properties:
        accountIds:
          type: array
          description: List of account IDs
          items:
            type: string
        accountGroupIds:
          type: array
          description: List of account group IDs
          items:
            type: string
        aggregate:
          type: boolean
          description: true = aggregate
        filterKey:
          type: string
          description: Filter key
        filterValue:
          type: string
          description: Filter value
        groupBy:
          type: string
          description: Group items by this value
        limit:
          type: int

# --- truncated at 32 KB (51 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/openapi/palo-alto-networks-cloud-accounts-all-api-openapi.yml