|
2894 | 2894 | } |
2895 | 2895 | } |
2896 | 2896 | } |
| 2897 | + }, |
| 2898 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/guardrailsversions": { |
| 2899 | + "get": { |
| 2900 | + "tags": [ |
| 2901 | + "guardrailsVersions" |
| 2902 | + ], |
| 2903 | + "operationId": "GuardrailsVersions_List", |
| 2904 | + "summary": "List available guardrails versions.", |
| 2905 | + "parameters": [ |
| 2906 | + { |
| 2907 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 2908 | + }, |
| 2909 | + { |
| 2910 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 2911 | + }, |
| 2912 | + { |
| 2913 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 2914 | + }, |
| 2915 | + { |
| 2916 | + "$ref": "#/parameters/ResourceNameParameter" |
| 2917 | + } |
| 2918 | + ], |
| 2919 | + "responses": { |
| 2920 | + "200": { |
| 2921 | + "description": "OK", |
| 2922 | + "schema": { |
| 2923 | + "$ref": "#/definitions/ListGuardrailsVersionsResponse" |
| 2924 | + } |
| 2925 | + }, |
| 2926 | + "default": { |
| 2927 | + "description": "Error details", |
| 2928 | + "schema": { |
| 2929 | + "$ref": "#/definitions/CloudError" |
| 2930 | + } |
| 2931 | + } |
| 2932 | + }, |
| 2933 | + "x-ms-examples": { |
| 2934 | + "List Guardrails versions": { |
| 2935 | + "$ref": "./examples/GuardrailsVersions_List.json" |
| 2936 | + } |
| 2937 | + } |
| 2938 | + } |
2897 | 2939 | } |
2898 | 2940 | }, |
2899 | 2941 | "definitions": { |
|
7064 | 7106 | "required": [ |
7065 | 7107 | "enabled" |
7066 | 7108 | ] |
| 7109 | + }, |
| 7110 | + "GuardrailsProfile": { |
| 7111 | + "type": "object", |
| 7112 | + "properties": { |
| 7113 | + "systemExcludedNamespaces": { |
| 7114 | + "readOnly": true, |
| 7115 | + "type": "array", |
| 7116 | + "description": "List of namespaces specified by AKS to be excluded from Guardrails", |
| 7117 | + "items": { |
| 7118 | + "type": "string" |
| 7119 | + } |
| 7120 | + }, |
| 7121 | + "version": { |
| 7122 | + "type": "string", |
| 7123 | + "description": "The version of constraints to use" |
| 7124 | + }, |
| 7125 | + "level": { |
| 7126 | + "type": "string", |
| 7127 | + "enum": [ |
| 7128 | + "Off", |
| 7129 | + "Warning", |
| 7130 | + "Enforcement" |
| 7131 | + ], |
| 7132 | + "x-ms-enum": { |
| 7133 | + "name": "level", |
| 7134 | + "modelAsString": true |
| 7135 | + }, |
| 7136 | + "description": "The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces" |
| 7137 | + }, |
| 7138 | + "excludedNamespaces": { |
| 7139 | + "description": "List of namespaces excluded from guardrails checks", |
| 7140 | + "type": "array", |
| 7141 | + "items": { |
| 7142 | + "type": "string" |
| 7143 | + } |
| 7144 | + } |
| 7145 | + }, |
| 7146 | + "required": [ |
| 7147 | + "level", |
| 7148 | + "version" |
| 7149 | + ], |
| 7150 | + "description": "The Guardrails profile." |
| 7151 | + }, |
| 7152 | + "ListGuardrailsVersionsResponse": { |
| 7153 | + "type": "object", |
| 7154 | + "properties": { |
| 7155 | + "version": { |
| 7156 | + "readOnly": true, |
| 7157 | + "type": "string" |
| 7158 | + }, |
| 7159 | + "isPreview": { |
| 7160 | + "type": "boolean", |
| 7161 | + "description": "Describes whether this version is in preview" |
| 7162 | + }, |
| 7163 | + "default": { |
| 7164 | + "type": "boolean", |
| 7165 | + "description": "Describes whether this version is default" |
| 7166 | + } |
| 7167 | + } |
7067 | 7168 | } |
7068 | 7169 | }, |
7069 | 7170 | "parameters": { |
|
0 commit comments