diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.json index 0167703f6..4eb76d6ac 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHM=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "commandGroups": [{"name": "cognitiveservices account costcontrol", "commands": [{"name": "list", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHM=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHM=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "commandGroups": [{"name": "cognitiveservices account costcontrol", "commands": [{"name": "list", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHM=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.xml index 6e83e4c91..cc7497c28 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHM=/2026-09-15-preview.xml @@ -72,25 +72,25 @@ - + - + - + - + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.json index cf8a60bc0..2e51ee8f4 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "commandGroups": [{"name": "cognitiveservices account costcontrol", "commands": [{"name": "show", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Header.If-None-Match", "options": ["if-none-match"], "help": {"short": "Proceeds only when the current entity tag does not match this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "string", "var": "$resource.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "An optional human-readable name for the cost control."}, "format": {"maxLength": 128}}, {"type": "array", "var": "$resource.properties.rules", "options": ["rules"], "group": "Properties", "help": {"short": "The rules enforced by the cost control."}, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "args": [{"type": "float64", "var": "$resource.properties.rules[].amount", "options": ["amount"], "required": true, "help": {"short": "The maximum consumption allowed by this rule, expressed in the selected unit."}, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "var": "$resource.properties.rules[].counterKey", "options": ["counter-key"], "required": true, "help": {"short": "The built-in dimension used to partition consumption. The initial preview supports exactly one dimension."}, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "args": [{"type": "string", "var": "$resource.properties.rules[].counterKey[].attribute", "options": ["attribute"], "help": {"short": "The request attribute used by a custom dimension. This property is required for custom dimensions and must be omitted for built-in dimensions."}, "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "var": "$resource.properties.rules[].counterKey[].type", "options": ["type"], "required": true, "help": {"short": "The kind of request dimension."}, "enum": {"items": [{"name": "account", "value": "account"}, {"name": "agent", "value": "agent"}, {"name": "custom", "value": "custom"}, {"name": "identity", "value": "identity"}, {"name": "project", "value": "project"}, {"name": "session", "value": "session"}]}}]}}, {"type": "object", "var": "$resource.properties.rules[].match", "options": ["match"], "help": {"short": "Trusted request attributes and allowed values used to select matching requests."}, "args": [{"type": "array", "var": "$resource.properties.rules[].match.foundry.caller.agent.id", "options": ["foundry-caller-agent-id"], "help": {"short": "The stable Foundry agent IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.foundry.caller.identity.oid", "options": ["foundry-caller-identity-oid"], "help": {"short": "The authenticated principal object IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.foundry.caller.session.id", "options": ["foundry-caller-session-id"], "help": {"short": "The Foundry session IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.foundry.project.id", "options": ["foundry-project-id"], "help": {"short": "The Foundry project resource IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "var": "$resource.properties.rules[].name", "options": ["name"], "required": true, "help": {"short": "The stable rule identifier, unique within the cost control without regard to case."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "var": "$resource.properties.rules[].period", "options": ["period"], "help": {"short": "The calendar-aligned UTC renewal period. This property is required for recurring rules and omitted for non-recurring rules."}, "enum": {"items": [{"name": "day", "value": "day"}, {"name": "hour", "value": "hour"}, {"name": "minute", "value": "minute"}, {"name": "month", "value": "month"}, {"name": "week", "value": "week"}, {"name": "year", "value": "year"}]}}, {"type": "boolean", "var": "$resource.properties.rules[].recurring", "options": ["recurring"], "help": {"short": "Whether the cost control renews. The default is true."}, "default": {"value": true}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].thresholds", "options": ["thresholds"], "help": {"short": "The actions evaluated as consumption approaches the configured amount."}, "format": {"maxLength": 10}, "item": {"type": "object", "args": [{"type": "string", "var": "$resource.properties.rules[].thresholds[].action", "options": ["action"], "help": {"short": "The action taken when the threshold is reached. The default is audit."}, "default": {"value": "audit"}, "enum": {"items": [{"name": "alert", "value": "alert"}, {"name": "audit", "value": "audit"}, {"name": "block", "value": "block"}]}}, {"type": "string", "var": "$resource.properties.rules[].thresholds[].type", "options": ["type"], "required": true, "help": {"short": "How the threshold value is interpreted."}, "enum": {"items": [{"name": "absolute", "value": "absolute"}, {"name": "percentage", "value": "percentage"}]}}, {"type": "float64", "var": "$resource.properties.rules[].thresholds[].value", "options": ["value"], "required": true, "help": {"short": "The threshold value. Percentage values range from 0 through 100, and absolute values cannot exceed the rule amount."}, "format": {"minimum": 0.0}}]}}, {"type": "string", "var": "$resource.properties.rules[].unit", "options": ["unit"], "required": true, "help": {"short": "The unit used for the cost control amount and absolute thresholds."}, "enum": {"items": [{"name": "usd", "value": "usd"}]}}]}}]}], "operations": [{"operationId": "CostControls_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}, {"type": "string", "name": "If-None-Match", "arg": "$Header.If-None-Match"}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "arg": "$resource.properties.displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "arg": "$resource.properties.rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "arg": "$resource.properties.rules[].amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "arg": "$resource.properties.rules[].counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "arg": "$resource.properties.rules[].counterKey[].attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].counterKey[].type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "arg": "$resource.properties.rules[].match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "arg": "$resource.properties.rules[].match.foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "arg": "$resource.properties.rules[].match.foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "arg": "$resource.properties.rules[].match.foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "arg": "$resource.properties.rules[].match.foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "arg": "$resource.properties.rules[].name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "arg": "$resource.properties.rules[].period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring", "arg": "$resource.properties.rules[].recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "arg": "$resource.properties.rules[].thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "arg": "$resource.properties.rules[].thresholds[].action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].thresholds[].type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "arg": "$resource.properties.rules[].thresholds[].value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "arg": "$resource.properties.rules[].unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Header.If-None-Match", "options": ["if-none-match"], "help": {"short": "Proceeds only when the current entity tag does not match this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "An optional human-readable name for the cost control."}, "format": {"maxLength": 128}}, {"type": "array", "var": "$resource.properties.rules", "options": ["rules"], "group": "Properties", "help": {"short": "The rules enforced by the cost control."}, "format": {"maxLength": 50, "minLength": 1}, "item": {"nullable": true, "type": "object", "args": [{"type": "float64", "var": "$resource.properties.rules[].amount", "options": ["amount"], "help": {"short": "The maximum consumption allowed by this rule, expressed in the selected unit."}, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "var": "$resource.properties.rules[].counterKey", "options": ["counter-key"], "help": {"short": "The built-in dimension used to partition consumption. The initial preview supports exactly one dimension."}, "format": {"maxLength": 1, "minLength": 1}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.rules[].counterKey[].attribute", "options": ["attribute"], "help": {"short": "The request attribute used by a custom dimension. This property is required for custom dimensions and must be omitted for built-in dimensions."}, "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "var": "$resource.properties.rules[].counterKey[].type", "options": ["type"], "help": {"short": "The kind of request dimension."}, "enum": {"items": [{"name": "account", "value": "account"}, {"name": "agent", "value": "agent"}, {"name": "custom", "value": "custom"}, {"name": "identity", "value": "identity"}, {"name": "project", "value": "project"}, {"name": "session", "value": "session"}]}}]}}, {"nullable": true, "type": "object", "var": "$resource.properties.rules[].match", "options": ["match"], "help": {"short": "Trusted request attributes and allowed values used to select matching requests."}, "args": [{"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.foundry.caller.agent.id", "options": ["foundry-caller-agent-id"], "help": {"short": "The stable Foundry agent IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.foundry.caller.identity.oid", "options": ["foundry-caller-identity-oid"], "help": {"short": "The authenticated principal object IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.foundry.caller.session.id", "options": ["foundry-caller-session-id"], "help": {"short": "The Foundry session IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.foundry.project.id", "options": ["foundry-project-id"], "help": {"short": "The Foundry project resource IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "var": "$resource.properties.rules[].name", "options": ["name"], "help": {"short": "The stable rule identifier, unique within the cost control without regard to case."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"nullable": true, "type": "string", "var": "$resource.properties.rules[].period", "options": ["period"], "help": {"short": "The calendar-aligned UTC renewal period. This property is required for recurring rules and omitted for non-recurring rules."}, "enum": {"items": [{"name": "day", "value": "day"}, {"name": "hour", "value": "hour"}, {"name": "minute", "value": "minute"}, {"name": "month", "value": "month"}, {"name": "week", "value": "week"}, {"name": "year", "value": "year"}]}}, {"nullable": true, "type": "boolean", "var": "$resource.properties.rules[].recurring", "options": ["recurring"], "help": {"short": "Whether the cost control renews. The default is true."}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].thresholds", "options": ["thresholds"], "help": {"short": "The actions evaluated as consumption approaches the configured amount."}, "format": {"maxLength": 10}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.rules[].thresholds[].action", "options": ["action"], "help": {"short": "The action taken when the threshold is reached. The default is audit."}, "enum": {"items": [{"name": "alert", "value": "alert"}, {"name": "audit", "value": "audit"}, {"name": "block", "value": "block"}]}}, {"type": "string", "var": "$resource.properties.rules[].thresholds[].type", "options": ["type"], "help": {"short": "How the threshold value is interpreted."}, "enum": {"items": [{"name": "absolute", "value": "absolute"}, {"name": "percentage", "value": "percentage"}]}}, {"type": "float64", "var": "$resource.properties.rules[].thresholds[].value", "options": ["value"], "help": {"short": "The threshold value. Percentage values range from 0 through 100, and absolute values cannot exceed the rule amount."}, "format": {"minimum": 0.0}}]}}, {"type": "string", "var": "$resource.properties.rules[].unit", "options": ["unit"], "help": {"short": "The unit used for the cost control amount and absolute thresholds."}, "enum": {"items": [{"name": "usd", "value": "usd"}]}}]}}]}], "operations": [{"operationId": "CostControls_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "arg": "$resource.properties.displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "arg": "$resource.properties.rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "arg": "$resource.properties.rules[].amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "arg": "$resource.properties.rules[].counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "arg": "$resource.properties.rules[].counterKey[].attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].counterKey[].type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "arg": "$resource.properties.rules[].match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "arg": "$resource.properties.rules[].match.foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "arg": "$resource.properties.rules[].match.foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "arg": "$resource.properties.rules[].match.foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "arg": "$resource.properties.rules[].match.foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "arg": "$resource.properties.rules[].name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "arg": "$resource.properties.rules[].period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring", "arg": "$resource.properties.rules[].recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "arg": "$resource.properties.rules[].thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "arg": "$resource.properties.rules[].thresholds[].action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].thresholds[].type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "arg": "$resource.properties.rules[].thresholds[].value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "arg": "$resource.properties.rules[].unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}], "clientFlatten": true}}}}, {"operationId": "CostControls_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}, {"type": "string", "name": "If-None-Match", "arg": "$Header.If-None-Match"}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "foundry.caller.agent.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.identity.oid", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.caller.session.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "foundry.project.id", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "commandGroups": [{"name": "cognitiveservices account costcontrol", "commands": [{"name": "show", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CostControls_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Header.If-None-Match", "options": ["if-none-match"], "help": {"short": "Proceeds only when the current entity tag does not match this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "string", "var": "$resource.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "An optional human-readable name for the cost control."}, "format": {"maxLength": 128}}, {"type": "array", "var": "$resource.properties.rules", "options": ["rules"], "group": "Properties", "help": {"short": "The rules enforced by the cost control."}, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "args": [{"type": "float64", "var": "$resource.properties.rules[].amount", "options": ["amount"], "required": true, "help": {"short": "The maximum consumption allowed by this rule, expressed in the selected unit."}, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "var": "$resource.properties.rules[].counterKey", "options": ["counter-key"], "required": true, "help": {"short": "The built-in dimension used to partition consumption. The initial preview supports exactly one dimension."}, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "args": [{"type": "string", "var": "$resource.properties.rules[].counterKey[].attribute", "options": ["attribute"], "help": {"short": "The request attribute used by a custom dimension. This property is required for custom dimensions and must be omitted for built-in dimensions."}, "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "var": "$resource.properties.rules[].counterKey[].type", "options": ["type"], "required": true, "help": {"short": "The kind of request dimension."}, "enum": {"items": [{"name": "account", "value": "account"}, {"name": "agent", "value": "agent"}, {"name": "custom", "value": "custom"}, {"name": "identity", "value": "identity"}, {"name": "project", "value": "project"}, {"name": "session", "value": "session"}]}}]}}, {"type": "object", "var": "$resource.properties.rules[].match", "options": ["match"], "help": {"short": "Trusted request attributes and allowed values used to select matching requests."}, "args": [{"type": "array", "var": "$resource.properties.rules[].match.agentIds", "options": ["agent-ids"], "help": {"short": "The stable Foundry agent IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.identityObjectIds", "options": ["identity-object-ids"], "help": {"short": "The authenticated principal object IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.projectIds", "options": ["project-ids"], "help": {"short": "The Foundry project resource IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "var": "$resource.properties.rules[].match.sessionIds", "options": ["session-ids"], "help": {"short": "The Foundry session IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "var": "$resource.properties.rules[].name", "options": ["name"], "required": true, "help": {"short": "The stable rule identifier, unique within the cost control without regard to case."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "var": "$resource.properties.rules[].period", "options": ["period"], "help": {"short": "The calendar-aligned UTC renewal period. This property is required for recurring rules and omitted for non-recurring rules."}, "enum": {"items": [{"name": "day", "value": "day"}, {"name": "hour", "value": "hour"}, {"name": "minute", "value": "minute"}, {"name": "month", "value": "month"}, {"name": "week", "value": "week"}, {"name": "year", "value": "year"}]}}, {"type": "boolean", "var": "$resource.properties.rules[].recurring", "options": ["recurring"], "help": {"short": "Whether the cost control renews. The default is true."}, "default": {"value": true}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].thresholds", "options": ["thresholds"], "help": {"short": "The actions evaluated as consumption approaches the configured amount."}, "format": {"maxLength": 10}, "item": {"type": "object", "args": [{"type": "string", "var": "$resource.properties.rules[].thresholds[].action", "options": ["action"], "help": {"short": "The action taken when the threshold is reached. The default is audit."}, "default": {"value": "audit"}, "enum": {"items": [{"name": "alert", "value": "alert"}, {"name": "audit", "value": "audit"}, {"name": "block", "value": "block"}]}}, {"type": "string", "var": "$resource.properties.rules[].thresholds[].type", "options": ["type"], "required": true, "help": {"short": "How the threshold value is interpreted."}, "enum": {"items": [{"name": "absolute", "value": "absolute"}, {"name": "percentage", "value": "percentage"}]}}, {"type": "float64", "var": "$resource.properties.rules[].thresholds[].value", "options": ["value"], "required": true, "help": {"short": "The threshold value. Percentage values range from 0 through 100, and absolute values cannot exceed the rule amount."}, "format": {"minimum": 0.0}}]}}, {"type": "string", "var": "$resource.properties.rules[].unit", "options": ["unit"], "required": true, "help": {"short": "The unit used for the cost control amount and absolute thresholds."}, "enum": {"items": [{"name": "usd", "value": "usd"}]}}]}}]}], "operations": [{"operationId": "CostControls_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}, {"type": "string", "name": "If-None-Match", "arg": "$Header.If-None-Match"}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "arg": "$resource.properties.displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "arg": "$resource.properties.rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "arg": "$resource.properties.rules[].amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "arg": "$resource.properties.rules[].counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "arg": "$resource.properties.rules[].counterKey[].attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].counterKey[].type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "arg": "$resource.properties.rules[].match", "props": [{"type": "array", "name": "agentIds", "arg": "$resource.properties.rules[].match.agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "arg": "$resource.properties.rules[].match.identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "arg": "$resource.properties.rules[].match.projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "arg": "$resource.properties.rules[].match.sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "arg": "$resource.properties.rules[].name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "arg": "$resource.properties.rules[].period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring", "arg": "$resource.properties.rules[].recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "arg": "$resource.properties.rules[].thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "arg": "$resource.properties.rules[].thresholds[].action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].thresholds[].type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "arg": "$resource.properties.rules[].thresholds[].value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "arg": "$resource.properties.rules[].unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2026-09-15-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cognitiveservices/accounts/{}/costcontrols/{}", "version": "2026-09-15-preview", "swagger": "mgmt-plane/cognitiveservices/ResourceProviders/Microsoft.CognitiveServices/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMve2FjY291bnROYW1lfS9jb3N0Q29udHJvbHMve2Nvc3RDb250cm9sTmFtZX0=/V/MjAyNi0wOS0xNS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Header.If-Match", "options": ["if-match"], "help": {"short": "Proceeds only when the current entity tag matches this value."}}, {"type": "string", "var": "$Header.If-None-Match", "options": ["if-none-match"], "help": {"short": "Proceeds only when the current entity tag does not match this value."}}, {"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of Cognitive Services account."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "var": "$Path.costControlName", "options": ["n", "name", "cost-control-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the CostControl"}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "An optional human-readable name for the cost control."}, "format": {"maxLength": 128}}, {"type": "array", "var": "$resource.properties.rules", "options": ["rules"], "group": "Properties", "help": {"short": "The rules enforced by the cost control."}, "format": {"maxLength": 50, "minLength": 1}, "item": {"nullable": true, "type": "object", "args": [{"type": "float64", "var": "$resource.properties.rules[].amount", "options": ["amount"], "help": {"short": "The maximum consumption allowed by this rule, expressed in the selected unit."}, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "var": "$resource.properties.rules[].counterKey", "options": ["counter-key"], "help": {"short": "The built-in dimension used to partition consumption. The initial preview supports exactly one dimension."}, "format": {"maxLength": 1, "minLength": 1}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.rules[].counterKey[].attribute", "options": ["attribute"], "help": {"short": "The request attribute used by a custom dimension. This property is required for custom dimensions and must be omitted for built-in dimensions."}, "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "var": "$resource.properties.rules[].counterKey[].type", "options": ["type"], "help": {"short": "The kind of request dimension."}, "enum": {"items": [{"name": "account", "value": "account"}, {"name": "agent", "value": "agent"}, {"name": "custom", "value": "custom"}, {"name": "identity", "value": "identity"}, {"name": "project", "value": "project"}, {"name": "session", "value": "session"}]}}]}}, {"nullable": true, "type": "object", "var": "$resource.properties.rules[].match", "options": ["match"], "help": {"short": "Trusted request attributes and allowed values used to select matching requests."}, "args": [{"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.agentIds", "options": ["agent-ids"], "help": {"short": "The stable Foundry agent IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.identityObjectIds", "options": ["identity-object-ids"], "help": {"short": "The authenticated principal object IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.projectIds", "options": ["project-ids"], "help": {"short": "The Foundry project resource IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].match.sessionIds", "options": ["session-ids"], "help": {"short": "The Foundry session IDs to match."}, "format": {"maxLength": 20, "minLength": 1}, "item": {"nullable": true, "type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "var": "$resource.properties.rules[].name", "options": ["name"], "help": {"short": "The stable rule identifier, unique within the cost control without regard to case."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"nullable": true, "type": "string", "var": "$resource.properties.rules[].period", "options": ["period"], "help": {"short": "The calendar-aligned UTC renewal period. This property is required for recurring rules and omitted for non-recurring rules."}, "enum": {"items": [{"name": "day", "value": "day"}, {"name": "hour", "value": "hour"}, {"name": "minute", "value": "minute"}, {"name": "month", "value": "month"}, {"name": "week", "value": "week"}, {"name": "year", "value": "year"}]}}, {"nullable": true, "type": "boolean", "var": "$resource.properties.rules[].recurring", "options": ["recurring"], "help": {"short": "Whether the cost control renews. The default is true."}}, {"nullable": true, "type": "array", "var": "$resource.properties.rules[].thresholds", "options": ["thresholds"], "help": {"short": "The actions evaluated as consumption approaches the configured amount."}, "format": {"maxLength": 10}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.rules[].thresholds[].action", "options": ["action"], "help": {"short": "The action taken when the threshold is reached. The default is audit."}, "enum": {"items": [{"name": "alert", "value": "alert"}, {"name": "audit", "value": "audit"}, {"name": "block", "value": "block"}]}}, {"type": "string", "var": "$resource.properties.rules[].thresholds[].type", "options": ["type"], "help": {"short": "How the threshold value is interpreted."}, "enum": {"items": [{"name": "absolute", "value": "absolute"}, {"name": "percentage", "value": "percentage"}]}}, {"type": "float64", "var": "$resource.properties.rules[].thresholds[].value", "options": ["value"], "help": {"short": "The threshold value. Percentage values range from 0 through 100, and absolute values cannot exceed the rule amount."}, "format": {"minimum": 0.0}}]}}, {"type": "string", "var": "$resource.properties.rules[].unit", "options": ["unit"], "help": {"short": "The unit used for the cost control amount and absolute thresholds."}, "enum": {"items": [{"name": "usd", "value": "usd"}]}}]}}]}], "operations": [{"operationId": "CostControls_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "arg": "$resource.properties.displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "arg": "$resource.properties.rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "arg": "$resource.properties.rules[].amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "arg": "$resource.properties.rules[].counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "arg": "$resource.properties.rules[].counterKey[].attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].counterKey[].type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "arg": "$resource.properties.rules[].match", "props": [{"type": "array", "name": "agentIds", "arg": "$resource.properties.rules[].match.agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "arg": "$resource.properties.rules[].match.identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "arg": "$resource.properties.rules[].match.projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "arg": "$resource.properties.rules[].match.sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "arg": "$resource.properties.rules[].name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "arg": "$resource.properties.rules[].period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring", "arg": "$resource.properties.rules[].recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "arg": "$resource.properties.rules[].thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "arg": "$resource.properties.rules[].thresholds[].action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "arg": "$resource.properties.rules[].thresholds[].type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "arg": "$resource.properties.rules[].thresholds[].value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "arg": "$resource.properties.rules[].unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}], "clientFlatten": true}}}}, {"operationId": "CostControls_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/costControls/{costControlName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", "maxLength": 64, "minLength": 2}}, {"type": "string", "name": "costControlName", "arg": "$Path.costControlName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-09-15-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "header": {"params": [{"type": "string", "name": "If-Match", "arg": "$Header.If-Match"}, {"type": "string", "name": "If-None-Match", "arg": "$Header.If-None-Match"}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "header": {"items": [{"name": "ETag"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "string", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "displayName", "format": {"maxLength": 128}}, {"type": "array", "name": "rules", "required": true, "format": {"maxLength": 50, "minLength": 1}, "item": {"type": "object", "props": [{"type": "float64", "name": "amount", "required": true, "format": {"minimum": 0.0, "exclusiveMinimum": true}}, {"type": "array", "name": "counterKey", "required": true, "format": {"maxLength": 1, "minLength": 1}, "item": {"type": "object", "props": [{"type": "string", "name": "attribute", "format": {"pattern": "^[a-zA-Z][a-zA-Z0-9_.-]{0,127}$", "maxLength": 128}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "account"}, {"value": "agent"}, {"value": "custom"}, {"value": "identity"}, {"value": "project"}, {"value": "session"}]}}]}}, {"type": "object", "name": "match", "props": [{"type": "array", "name": "agentIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "identityObjectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "projectIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}, {"type": "array", "name": "sessionIds", "format": {"maxLength": 20, "minLength": 1}, "item": {"type": "string", "format": {"minLength": 1}}}]}, {"type": "string", "name": "name", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$", "maxLength": 64}}, {"type": "string", "name": "period", "enum": {"items": [{"value": "day"}, {"value": "hour"}, {"value": "minute"}, {"value": "month"}, {"value": "week"}, {"value": "year"}]}}, {"default": {"value": true}, "type": "boolean", "name": "recurring"}, {"nullable": true, "type": "array", "name": "thresholds", "format": {"maxLength": 10}, "item": {"type": "object", "props": [{"default": {"value": "audit"}, "type": "string", "name": "action", "enum": {"items": [{"value": "alert"}, {"value": "audit"}, {"value": "block"}]}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "absolute"}, {"value": "percentage"}]}}, {"type": "float64", "name": "value", "required": true, "format": {"minimum": 0.0}}]}}, {"type": "string", "name": "unit", "required": true, "enum": {"items": [{"value": "usd"}]}}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"readOnly": true, "type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.xml index 85ea65749..97c1a5f80 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb2duaXRpdmVzZXJ2aWNlcy9hY2NvdW50cy97fS9jb3N0Y29udHJvbHMve30=/2026-09-15-preview.xml @@ -79,25 +79,25 @@ - + - + - + - + @@ -300,29 +300,29 @@ - + - + - - + + - - + + @@ -442,25 +442,25 @@ - + - + - + - + @@ -556,25 +556,25 @@ - + - + - + - + @@ -721,29 +721,29 @@ - + - + - - + + - - + + @@ -865,25 +865,25 @@ - + - + - + - + @@ -1005,25 +1005,25 @@ - + - + - + - + @@ -1150,25 +1150,25 @@ - + - + - + - +