---
updatedAt: 2025-09-16T00:26:43.000Z
agentTools:
  projectIndex: https://docs.cgn.portal.checkpoint.com/llms.txt
---

# Get Accounts States

Get current AWP accounts states

# OpenAPI definition

```json
{
  "info": {
    "title": "Workload Protection",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.dome9.com/",
      "description": "US region"
    },
    {
      "url": "https://api.{region}.dome9.com/",
      "description": "Other regions",
      "variables": {
        "region": {
          "enum": [
            "eu1",
            "ap1",
            "ap2",
            "ap3",
            "cace1"
          ],
          "default": "eu1"
        }
      }
    }
  ],
  "paths": {
    "/v2/workload/agentless/{cloudProvider}/accounts/states": {
      "get": {
        "tags": [
          "Agentless"
        ],
        "summary": "Get Accounts States",
        "operationId": "Agentless_GetAccountsStates_get_/v2/workload/agentless/{cloudProvider}/accounts/states",
        "parameters": [
          {
            "name": "cloudProvider",
            "in": "path",
            "description": "Cloud provider",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "aws",
                "azure"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Dome9.Web.Api.Agentless.AccountStateViewModel"
                  }
                }
              }
            }
          }
        },
        "description": "Get current AWP accounts states"
      }
    }
  },
  "tags": [
    {
      "name": "Agentless",
      "description": "Agentless Workload Posture"
    }
  ],
  "components": {
    "schemas": {
      "Dome9.Web.Api.Agentless.AccountStateViewModel": {
        "type": "object",
        "properties": {
          "cloudAccountId": {
            "description": "The D9 cloud account id",
            "type": "string"
          },
          "agentlessProtectionEnabled": {
            "description": "A flag indicating whether AWP protection is enabled",
            "type": "boolean"
          },
          "scanMode": {
            "description": "OSne of saas, inAccount, inAccountHub, inAccountSub",
            "type": "string"
          },
          "provider": {
            "description": "The cloud provider",
            "enum": [
              "aws",
              "azure"
            ],
            "type": "string"
          },
          "shouldUpdate": {
            "description": "A flag indicating whether AWP resources should be updated",
            "type": "boolean"
          },
          "isOrgOnboarding": {
            "description": "A flag indicating whether AWP was enabled as part of the organization onboarding",
            "type": "boolean"
          },
          "isOrgOnboardingManagement": {
            "description": "A flag indicating whether AWP was enabled as part of the organization onboarding as management account",
            "type": "boolean"
          },
          "isTerraform": {
            "description": "A flag indicating whether AWP was enabled from terraform",
            "type": "boolean"
          },
          "centralizedCloudAccountId": {
            "description": "Centralized account id in case using centralized-sub accounts",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```