{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-grafana/json-schema/amazon-managed-grafana-list-workspace-service-accounts-response-schema.json",
  "title": "ListWorkspaceServiceAccountsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-grafana-serviceaccounts-api-openapi.yml#/components/schemas/ListWorkspaceServiceAccountsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of service accounts."
    },
    "serviceAccounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServiceAccountSummary"
      },
      "description": "An array of structures containing information about the service accounts."
    },
    "workspaceId": {
      "type": "string",
      "description": "The workspace to which the service accounts are associated."
    }
  },
  "required": [
    "serviceAccounts",
    "workspaceId"
  ],
  "$defs": {
    "ServiceAccountSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID of the service account."
        },
        "name": {
          "type": "string",
          "description": "The name of the service account."
        },
        "isDisabled": {
          "type": "string",
          "description": "Returns true if the service account is disabled. Service accounts can be disabled and enabled in the Amazon Managed Grafana console."
        },
        "grafanaRole": {
          "type": "string",
          "description": "The role of the service account, which sets the permission level used when calling Grafana APIs."
        }
      },
      "required": [
        "id",
        "name",
        "isDisabled",
        "grafanaRole"
      ]
    }
  }
}