{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-table-service-properties-schema.json",
  "title": "TableServiceProperties",
  "description": "The properties of a storage account’s Table service.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-storage-accounts-tableservices-api-openapi.yml#/components/schemas/TableServiceProperties",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/TableServicePropertiesProperties",
      "description": "The properties of a storage account’s Table service.",
      "x-ms-client-flatten": true,
      "x-ms-client-name": "TableServiceProperties"
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "AllowedMethods": {
      "type": "string",
      "enum": [
        "DELETE",
        "GET",
        "HEAD",
        "MERGE",
        "POST",
        "OPTIONS",
        "PUT",
        "PATCH",
        "CONNECT",
        "TRACE"
      ],
      "x-ms-enum": {
        "name": "AllowedMethods",
        "modelAsString": true,
        "values": [
          {
            "name": "DELETE",
            "value": "DELETE"
          },
          {
            "name": "GET",
            "value": "GET"
          },
          {
            "name": "HEAD",
            "value": "HEAD"
          },
          {
            "name": "MERGE",
            "value": "MERGE"
          },
          {
            "name": "POST",
            "value": "POST"
          },
          {
            "name": "OPTIONS",
            "value": "OPTIONS"
          },
          {
            "name": "PUT",
            "value": "PUT"
          },
          {
            "name": "PATCH",
            "value": "PATCH"
          },
          {
            "name": "CONNECT",
            "value": "CONNECT"
          },
          {
            "name": "TRACE",
            "value": "TRACE"
          }
        ]
      }
    },
    "CorsRule": {
      "type": "object",
      "description": "Specifies a CORS rule for the Blob service.",
      "properties": {
        "allowedOrigins": {
          "type": "array",
          "description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains",
          "items": {
            "type": "string"
          }
        },
        "allowedMethods": {
          "type": "array",
          "description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.",
          "items": {
            "$ref": "#/$defs/AllowedMethods"
          }
        },
        "maxAgeInSeconds": {
          "type": "integer",
          "format": "int32",
          "description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
        },
        "exposedHeaders": {
          "type": "array",
          "description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients.",
          "items": {
            "type": "string"
          }
        },
        "allowedHeaders": {
          "type": "array",
          "description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "allowedOrigins",
        "allowedMethods",
        "maxAgeInSeconds",
        "exposedHeaders",
        "allowedHeaders"
      ]
    },
    "CorsRules": {
      "type": "object",
      "description": "Sets the CORS rules. You can include up to five CorsRule elements in the request.",
      "properties": {
        "corsRules": {
          "type": "array",
          "description": "The List of CORS rules. You can include up to five CorsRule elements in the request.",
          "items": {
            "$ref": "#/$defs/CorsRule"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "TableServicePropertiesProperties": {
      "type": "object",
      "description": "The properties of a storage account’s Table service.",
      "properties": {
        "cors": {
          "$ref": "#/$defs/CorsRules",
          "description": "Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service."
        }
      }
    }
  }
}