|
7215 | 7215 | } |
7216 | 7216 | } |
7217 | 7217 | }, |
| 7218 | + "/api/v2/policybinding": { |
| 7219 | + "get": { |
| 7220 | + "description": "List all policy bindings. Only available in Kubermatic Enterprise Edition", |
| 7221 | + "produces": [ |
| 7222 | + "application/json" |
| 7223 | + ], |
| 7224 | + "tags": [ |
| 7225 | + "admin" |
| 7226 | + ], |
| 7227 | + "operationId": "listPolicyBinding", |
| 7228 | + "responses": { |
| 7229 | + "200": { |
| 7230 | + "description": "PolicyBinding", |
| 7231 | + "schema": { |
| 7232 | + "type": "array", |
| 7233 | + "items": { |
| 7234 | + "$ref": "#/definitions/PolicyBinding" |
| 7235 | + } |
| 7236 | + } |
| 7237 | + }, |
| 7238 | + "401": { |
| 7239 | + "$ref": "#/responses/empty" |
| 7240 | + }, |
| 7241 | + "403": { |
| 7242 | + "$ref": "#/responses/empty" |
| 7243 | + }, |
| 7244 | + "default": { |
| 7245 | + "description": "errorResponse", |
| 7246 | + "schema": { |
| 7247 | + "$ref": "#/definitions/errorResponse" |
| 7248 | + } |
| 7249 | + } |
| 7250 | + } |
| 7251 | + }, |
| 7252 | + "post": { |
| 7253 | + "description": "Create policy binding. Only available in Kubermatic Enterprise Edition", |
| 7254 | + "consumes": [ |
| 7255 | + "application/json" |
| 7256 | + ], |
| 7257 | + "produces": [ |
| 7258 | + "application/json" |
| 7259 | + ], |
| 7260 | + "tags": [ |
| 7261 | + "admin" |
| 7262 | + ], |
| 7263 | + "operationId": "createPolicyBinding", |
| 7264 | + "parameters": [ |
| 7265 | + { |
| 7266 | + "type": "string", |
| 7267 | + "x-go-name": "Name", |
| 7268 | + "name": "name", |
| 7269 | + "in": "query" |
| 7270 | + } |
| 7271 | + ], |
| 7272 | + "responses": { |
| 7273 | + "200": { |
| 7274 | + "description": "PolicyBinding", |
| 7275 | + "schema": { |
| 7276 | + "$ref": "#/definitions/PolicyBinding" |
| 7277 | + } |
| 7278 | + }, |
| 7279 | + "401": { |
| 7280 | + "$ref": "#/responses/empty" |
| 7281 | + }, |
| 7282 | + "403": { |
| 7283 | + "$ref": "#/responses/empty" |
| 7284 | + }, |
| 7285 | + "default": { |
| 7286 | + "description": "errorResponse", |
| 7287 | + "schema": { |
| 7288 | + "$ref": "#/definitions/errorResponse" |
| 7289 | + } |
| 7290 | + } |
| 7291 | + } |
| 7292 | + } |
| 7293 | + }, |
| 7294 | + "/api/v2/policybinding/{binding_name}": { |
| 7295 | + "get": { |
| 7296 | + "description": "Get policy binding. Only available in Kubermatic Enterprise Edition", |
| 7297 | + "produces": [ |
| 7298 | + "application/json" |
| 7299 | + ], |
| 7300 | + "tags": [ |
| 7301 | + "admin" |
| 7302 | + ], |
| 7303 | + "operationId": "getPolicyBinding", |
| 7304 | + "parameters": [ |
| 7305 | + { |
| 7306 | + "type": "string", |
| 7307 | + "x-go-name": "PolicyBindingName", |
| 7308 | + "name": "binding_name", |
| 7309 | + "in": "path", |
| 7310 | + "required": true |
| 7311 | + } |
| 7312 | + ], |
| 7313 | + "responses": { |
| 7314 | + "200": { |
| 7315 | + "description": "PolicyBinding", |
| 7316 | + "schema": { |
| 7317 | + "$ref": "#/definitions/PolicyBinding" |
| 7318 | + } |
| 7319 | + }, |
| 7320 | + "401": { |
| 7321 | + "$ref": "#/responses/empty" |
| 7322 | + }, |
| 7323 | + "403": { |
| 7324 | + "$ref": "#/responses/empty" |
| 7325 | + }, |
| 7326 | + "default": { |
| 7327 | + "description": "errorResponse", |
| 7328 | + "schema": { |
| 7329 | + "$ref": "#/definitions/errorResponse" |
| 7330 | + } |
| 7331 | + } |
| 7332 | + } |
| 7333 | + }, |
| 7334 | + "delete": { |
| 7335 | + "description": "Delete policy binding. Only available in Kubermatic Enterprise Edition", |
| 7336 | + "tags": [ |
| 7337 | + "admin" |
| 7338 | + ], |
| 7339 | + "operationId": "deletePolicyBinding", |
| 7340 | + "parameters": [ |
| 7341 | + { |
| 7342 | + "type": "string", |
| 7343 | + "x-go-name": "PolicyBindingName", |
| 7344 | + "name": "binding_name", |
| 7345 | + "in": "path", |
| 7346 | + "required": true |
| 7347 | + } |
| 7348 | + ], |
| 7349 | + "responses": { |
| 7350 | + "200": { |
| 7351 | + "$ref": "#/responses/empty" |
| 7352 | + }, |
| 7353 | + "401": { |
| 7354 | + "$ref": "#/responses/empty" |
| 7355 | + }, |
| 7356 | + "403": { |
| 7357 | + "$ref": "#/responses/empty" |
| 7358 | + }, |
| 7359 | + "default": { |
| 7360 | + "description": "errorResponse", |
| 7361 | + "schema": { |
| 7362 | + "$ref": "#/definitions/errorResponse" |
| 7363 | + } |
| 7364 | + } |
| 7365 | + } |
| 7366 | + }, |
| 7367 | + "patch": { |
| 7368 | + "description": "Patch policy binding. Only available in Kubermatic Enterprise Edition", |
| 7369 | + "consumes": [ |
| 7370 | + "application/json" |
| 7371 | + ], |
| 7372 | + "produces": [ |
| 7373 | + "application/json" |
| 7374 | + ], |
| 7375 | + "tags": [ |
| 7376 | + "admin" |
| 7377 | + ], |
| 7378 | + "operationId": "patchPolicyBinding", |
| 7379 | + "parameters": [ |
| 7380 | + { |
| 7381 | + "type": "string", |
| 7382 | + "x-go-name": "Name", |
| 7383 | + "name": "name", |
| 7384 | + "in": "query" |
| 7385 | + }, |
| 7386 | + { |
| 7387 | + "type": "string", |
| 7388 | + "x-go-name": "PolicyBindingName", |
| 7389 | + "name": "binding_name", |
| 7390 | + "in": "path", |
| 7391 | + "required": true |
| 7392 | + } |
| 7393 | + ], |
| 7394 | + "responses": { |
| 7395 | + "200": { |
| 7396 | + "description": "PolicyBinding", |
| 7397 | + "schema": { |
| 7398 | + "$ref": "#/definitions/PolicyBinding" |
| 7399 | + } |
| 7400 | + }, |
| 7401 | + "401": { |
| 7402 | + "$ref": "#/responses/empty" |
| 7403 | + }, |
| 7404 | + "403": { |
| 7405 | + "$ref": "#/responses/empty" |
| 7406 | + }, |
| 7407 | + "default": { |
| 7408 | + "description": "errorResponse", |
| 7409 | + "schema": { |
| 7410 | + "$ref": "#/definitions/errorResponse" |
| 7411 | + } |
| 7412 | + } |
| 7413 | + } |
| 7414 | + } |
| 7415 | + }, |
7218 | 7416 | "/api/v2/policytemplate": { |
7219 | 7417 | "get": { |
7220 | | - "description": "List all Policy Templates. Only available in Kubermatic Enterprise Edition", |
| 7418 | + "description": "List all policy templates. Only available in Kubermatic Enterprise Edition", |
7221 | 7419 | "produces": [ |
7222 | 7420 | "application/json" |
7223 | 7421 | ], |
|
7250 | 7448 | } |
7251 | 7449 | }, |
7252 | 7450 | "post": { |
7253 | | - "description": "Create Policy Template. Only available in Kubermatic Enterprise Edition", |
| 7451 | + "description": "Create policy template. Only available in Kubermatic Enterprise Edition", |
7254 | 7452 | "consumes": [ |
7255 | 7453 | "application/json" |
7256 | 7454 | ], |
|
7293 | 7491 | }, |
7294 | 7492 | "/api/v2/policytemplate/{template_name}": { |
7295 | 7493 | "get": { |
7296 | | - "description": "Get Policy Template. Only available in Kubermatic Enterprise Edition", |
| 7494 | + "description": "Get policy template. Only available in Kubermatic Enterprise Edition", |
7297 | 7495 | "produces": [ |
7298 | 7496 | "application/json" |
7299 | 7497 | ], |
|
7332 | 7530 | } |
7333 | 7531 | }, |
7334 | 7532 | "delete": { |
7335 | | - "description": "Delete Policy Template. Only available in Kubermatic Enterprise Edition", |
| 7533 | + "description": "Delete policy template. Only available in Kubermatic Enterprise Edition", |
7336 | 7534 | "produces": [ |
7337 | 7535 | "application/json" |
7338 | 7536 | ], |
|
7368 | 7566 | } |
7369 | 7567 | }, |
7370 | 7568 | "patch": { |
7371 | | - "description": "Patch Policy Template. Only available in Kubermatic Enterprise Edition", |
| 7569 | + "description": "Patch policy template. Only available in Kubermatic Enterprise Edition", |
7372 | 7570 | "consumes": [ |
7373 | 7571 | "application/json" |
7374 | 7572 | ], |
|
37779 | 37977 | }, |
37780 | 37978 | "x-go-package": "k8s.io/api/core/v1" |
37781 | 37979 | }, |
| 37980 | + "PolicyBinding": { |
| 37981 | + "description": "PolicyBinding binds a PolicyTemplate to specific clusters/projects and\noptionally enables or disables it (if the template is not enforced).", |
| 37982 | + "type": "object", |
| 37983 | + "properties": { |
| 37984 | + "name": { |
| 37985 | + "type": "string", |
| 37986 | + "x-go-name": "Name" |
| 37987 | + } |
| 37988 | + }, |
| 37989 | + "x-go-package": "k8c.io/dashboard/v2/pkg/api/v2" |
| 37990 | + }, |
37782 | 37991 | "PolicyRule": { |
37783 | 37992 | "description": "PolicyRule holds information that describes a policy rule, but does not contain information\nabout who the rule applies to or which namespace the rule applies to.", |
37784 | 37993 | "type": "object", |
|
0 commit comments