726 строки
21 KiB
JSON
726 строки
21 KiB
JSON
{
|
|
"id": "https://schema.management.azure.com/schemas/2023-07-01-preview/Microsoft.ContainerStorage.json#",
|
|
"title": "Microsoft.ContainerStorage",
|
|
"description": "Microsoft ContainerStorage Resource Types",
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"resourceDefinitions": {
|
|
"pools": {
|
|
"description": "Microsoft.ContainerStorage/pools",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2023-07-01-preview"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"location": {
|
|
"description": "The geo-location where the resource lives",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Pool Object",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The resource-specific properties for this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/PoolProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"resources": {
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/pools_volumes_childResource"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/pools_snapshots_childResource"
|
|
}
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"tags": {
|
|
"description": "Resource tags.",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.ContainerStorage/pools"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"pools_snapshots": {
|
|
"description": "Microsoft.ContainerStorage/pools/snapshots",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2023-07-01-preview"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Volume Snapshot Resource",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The resource-specific properties for this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/SnapshotProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.ContainerStorage/pools/snapshots"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"pools_volumes": {
|
|
"description": "Microsoft.ContainerStorage/pools/volumes",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2023-07-01-preview"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Volume Resource",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The resource-specific properties for this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/VolumeProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"Microsoft.ContainerStorage/pools/volumes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"definitions": {
|
|
"Assignment": {
|
|
"description": "Assignment Properties",
|
|
"properties": {
|
|
"id": {
|
|
"description": "Resource id for the assigned resource",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"AzureDisk": {
|
|
"description": "Azure Disk Pool Properties",
|
|
"properties": {
|
|
"disks": {
|
|
"description": "Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/Disk"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"encryption": {
|
|
"description": "Encryption specifies the encryption configuration for the Azure Disk pool",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/Encryption"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"skuName": {
|
|
"description": "Sku name",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"Premium_LRS",
|
|
"Standard_LRS",
|
|
"StandardSSD_LRS",
|
|
"UltraSSD_LRS",
|
|
"Premium_ZRS",
|
|
"PremiumV2_LRS",
|
|
"StandardSSD_ZRS"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Disk": {
|
|
"description": "Model for disk for that pool is using",
|
|
"properties": {
|
|
"id": {
|
|
"description": "ID is the disk identifier visible to the OS. It is typically the WWN or disk ID in formats such as eui.e8238fa6bf530001001b448b45263379 or 0x5002cf6cbc5dd460",
|
|
"type": "string"
|
|
},
|
|
"reference": {
|
|
"description": "Reference is the location of the disk in an external system.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"reference"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ElasticSan": {
|
|
"description": "Elastic San Pool Properties",
|
|
"properties": {
|
|
"encryption": {
|
|
"description": "Encryption specifies the encryption configuration for the Azure Disk pool",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/Encryption"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"skuName": {
|
|
"description": "Sku name",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"Premium_LRS",
|
|
"Premium_ZRS"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Encryption": {
|
|
"description": "Encryption key properties for the pool.",
|
|
"properties": {
|
|
"identity": {
|
|
"description": "The managed service identities assigned to this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/ManagedServiceIdentity"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"keyName": {
|
|
"description": "The name of the key vault key.",
|
|
"type": "string"
|
|
},
|
|
"keyVaultUri": {
|
|
"description": "The URI of the key vault.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"keyName",
|
|
"keyVaultUri"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"EphemeralDisk": {
|
|
"description": "Ephemeral Disk Pool Properties",
|
|
"properties": {
|
|
"disks": {
|
|
"description": "Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/Disk"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"replicas": {
|
|
"description": "The number of data copies. Default 3.",
|
|
"oneOf": [
|
|
{
|
|
"default": 3,
|
|
"maximum": 3,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ManagedServiceIdentity": {
|
|
"description": "Managed service identity (system assigned and/or user assigned identities)",
|
|
"properties": {
|
|
"type": {
|
|
"description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"None",
|
|
"SystemAssigned",
|
|
"UserAssigned",
|
|
"SystemAssigned, UserAssigned"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"userAssignedIdentities": {
|
|
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/UserAssignedIdentity"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"PoolProperties": {
|
|
"description": "Pool Properties",
|
|
"properties": {
|
|
"assignments": {
|
|
"description": "List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/Assignment"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"poolType": {
|
|
"description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/PoolType"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"reclaimPolicy": {
|
|
"description": "ReclaimPolicy defines what happens to the backend storage when StoragePool is deleted",
|
|
"oneOf": [
|
|
{
|
|
"enum": [
|
|
"Delete",
|
|
"Retain"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"resources": {
|
|
"description": "Resources represent the resources the pool should have.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/Resources"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"zones": {
|
|
"description": "List of availability zones that resources can be created in.",
|
|
"oneOf": [
|
|
{
|
|
"items": {
|
|
"enum": [
|
|
"1",
|
|
"2",
|
|
"3"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"poolType"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"PoolType": {
|
|
"description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan",
|
|
"properties": {
|
|
"azureDisk": {
|
|
"description": "Disk Pool Properties",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/AzureDisk"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"elasticSan": {
|
|
"description": "Elastic San Pool Properties",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/ElasticSan"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"ephemeralDisk": {
|
|
"description": "Ephemeral Pool Properties",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/EphemeralDisk"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Requests": {
|
|
"description": "Requests for capacity for the pool.",
|
|
"properties": {
|
|
"storage": {
|
|
"description": "Requested capacity of the pool in GiB.",
|
|
"oneOf": [
|
|
{
|
|
"default": 1024,
|
|
"maximum": 65536,
|
|
"minimum": 1024,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Resources": {
|
|
"description": "Resource Requests for the pool.",
|
|
"properties": {
|
|
"requests": {
|
|
"description": "Requests for capacity for the pool.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/Requests"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SnapshotProperties": {
|
|
"description": "Volume Snapshot Properties",
|
|
"properties": {
|
|
"source": {
|
|
"description": "Reference to the source volume",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"source"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"UserAssignedIdentity": {
|
|
"description": "User assigned identity properties",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"VolumeProperties": {
|
|
"description": "Volume Properties",
|
|
"properties": {
|
|
"capacityGiB": {
|
|
"description": "Requested capacity in GiB",
|
|
"oneOf": [
|
|
{
|
|
"maximum": 65536,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"labels": {
|
|
"description": "String KV pairs indicating labels",
|
|
"oneOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"labels",
|
|
"capacityGiB"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"pools_snapshots_childResource": {
|
|
"description": "Microsoft.ContainerStorage/pools/snapshots",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2023-07-01-preview"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Volume Snapshot Resource",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The resource-specific properties for this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/SnapshotProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"snapshots"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"pools_volumes_childResource": {
|
|
"description": "Microsoft.ContainerStorage/pools/volumes",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"enum": [
|
|
"2023-07-01-preview"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "Volume Resource",
|
|
"oneOf": [
|
|
{
|
|
"maxLength": 253,
|
|
"minLength": 3,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"description": "The resource-specific properties for this resource.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/VolumeProperties"
|
|
},
|
|
{
|
|
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"volumes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"properties",
|
|
"apiVersion",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
}
|
|
} |