{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ManagedAccount",
  "title": "ManagedAccount",
  "type": "object",
  "description": "Snowflake account object.",
  "properties": {
    "name": {
      "$ref": "./common.yaml#/components/schemas/Identifier",
      "description": "Name of the account."
    },
    "cloud": {
      "type": "string",
      "readOnly": true,
      "description": "Cloud in which the managed account is located. For reader accounts, this is always the same as the cloud for the provider account.",
      "example": "example_value"
    },
    "region": {
      "type": "string",
      "readOnly": true,
      "description": "Region in which the managed account is located. For reader accounts, this is always the same as the region for the provider account.",
      "example": "example_value"
    },
    "locator": {
      "type": "string",
      "readOnly": true,
      "description": "Legacy identifier for the account.",
      "example": "example_value"
    },
    "created_on": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Date and time the account was created.",
      "example": "2026-01-15T10:30:00Z"
    },
    "url": {
      "type": "string",
      "readOnly": true,
      "description": "Account URL that is used to connect to the account, in the account name format. The account identifier in this format follows the pattern <orgname>-<account_name>.",
      "example": "https://www.example.com"
    },
    "account_locator_url": {
      "type": "string",
      "readOnly": true,
      "description": "Account URL that is used to connect to the account, in the legacy account locator format.",
      "example": "https://www.example.com"
    },
    "comment": {
      "type": "string",
      "description": "Optional comment in which to store information related to the account.",
      "example": "example_value"
    },
    "admin_name": {
      "type": "string",
      "description": "Name of the account administrator.",
      "writeOnly": true,
      "nullable": true,
      "example": "example_value"
    },
    "admin_password": {
      "type": "string",
      "description": "Password for the account administrator.",
      "writeOnly": true,
      "nullable": true,
      "format": "password",
      "example": "example_value"
    },
    "account_type": {
      "type": "string",
      "description": "Type of the account.",
      "enum": [
        "READER"
      ],
      "default": "READER",
      "example": "READER"
    }
  },
  "required": [
    "name",
    "admin_name",
    "admin_password",
    "account_type"
  ]
}