|
711 | 711 | ],
|
712 | 712 | "type": "object"
|
713 | 713 | },
|
| 714 | + "ListRolesResponse": { |
| 715 | + "properties": { |
| 716 | + "roles": { |
| 717 | + "description": "List of all role names available in the instance", |
| 718 | + "example": [ |
| 719 | + "createdb", |
| 720 | + "nocreatedb", |
| 721 | + "nocreaterole", |
| 722 | + "login", |
| 723 | + "nologin", |
| 724 | + "replication" |
| 725 | + ], |
| 726 | + "items": { |
| 727 | + "description": "The name of the role", |
| 728 | + "example": "createdb", |
| 729 | + "type": "string" |
| 730 | + }, |
| 731 | + "type": "array" |
| 732 | + } |
| 733 | + }, |
| 734 | + "required": [ |
| 735 | + "roles" |
| 736 | + ], |
| 737 | + "type": "object" |
| 738 | + }, |
714 | 739 | "ListUser": {
|
715 | 740 | "properties": {
|
716 | 741 | "id": {
|
|
4158 | 4183 | }
|
4159 | 4184 | }
|
4160 | 4185 | },
|
| 4186 | + "/v3alpha1/projects/{projectId}/regions/{region}/instances/{instanceId}/roles": { |
| 4187 | + "get": { |
| 4188 | + "description": "List available roles for an instance.", |
| 4189 | + "operationId": "listRolesRequest", |
| 4190 | + "parameters": [ |
| 4191 | + { |
| 4192 | + "$ref": "#/components/parameters/project" |
| 4193 | + }, |
| 4194 | + { |
| 4195 | + "$ref": "#/components/parameters/region" |
| 4196 | + }, |
| 4197 | + { |
| 4198 | + "$ref": "#/components/parameters/instance" |
| 4199 | + } |
| 4200 | + ], |
| 4201 | + "responses": { |
| 4202 | + "200": { |
| 4203 | + "content": { |
| 4204 | + "application/json": { |
| 4205 | + "schema": { |
| 4206 | + "$ref": "#/components/schemas/ListRolesResponse" |
| 4207 | + } |
| 4208 | + } |
| 4209 | + }, |
| 4210 | + "description": "OK: Contains a list of all roles for a specific instance." |
| 4211 | + }, |
| 4212 | + "400": { |
| 4213 | + "content": { |
| 4214 | + "application/json": { |
| 4215 | + "examples": { |
| 4216 | + "badRequestError": { |
| 4217 | + "$ref": "#/components/examples/badRequestError" |
| 4218 | + } |
| 4219 | + }, |
| 4220 | + "schema": { |
| 4221 | + "$ref": "#/components/schemas/Error" |
| 4222 | + } |
| 4223 | + } |
| 4224 | + }, |
| 4225 | + "description": "Bad Request" |
| 4226 | + }, |
| 4227 | + "401": { |
| 4228 | + "content": { |
| 4229 | + "application/json": { |
| 4230 | + "examples": { |
| 4231 | + "unauthorizedError": { |
| 4232 | + "$ref": "#/components/examples/unauthorizedError" |
| 4233 | + } |
| 4234 | + }, |
| 4235 | + "schema": { |
| 4236 | + "$ref": "#/components/schemas/Error" |
| 4237 | + } |
| 4238 | + } |
| 4239 | + }, |
| 4240 | + "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4241 | + }, |
| 4242 | + "403": { |
| 4243 | + "content": { |
| 4244 | + "application/json": { |
| 4245 | + "examples": { |
| 4246 | + "forbiddenError": { |
| 4247 | + "$ref": "#/components/examples/forbiddenError" |
| 4248 | + } |
| 4249 | + }, |
| 4250 | + "schema": { |
| 4251 | + "$ref": "#/components/schemas/Error" |
| 4252 | + } |
| 4253 | + } |
| 4254 | + }, |
| 4255 | + "description": "Forbidden: No access for the requested resource." |
| 4256 | + }, |
| 4257 | + "404": { |
| 4258 | + "content": { |
| 4259 | + "application/json": { |
| 4260 | + "examples": { |
| 4261 | + "notFoundError": { |
| 4262 | + "$ref": "#/components/examples/notFoundError" |
| 4263 | + } |
| 4264 | + }, |
| 4265 | + "schema": { |
| 4266 | + "$ref": "#/components/schemas/Error" |
| 4267 | + } |
| 4268 | + } |
| 4269 | + }, |
| 4270 | + "description": "Not found: The requested resource was not found." |
| 4271 | + }, |
| 4272 | + "500": { |
| 4273 | + "content": { |
| 4274 | + "application/json": { |
| 4275 | + "examples": { |
| 4276 | + "internalServerError": { |
| 4277 | + "$ref": "#/components/examples/internalServerError" |
| 4278 | + } |
| 4279 | + }, |
| 4280 | + "schema": { |
| 4281 | + "$ref": "#/components/schemas/Error" |
| 4282 | + } |
| 4283 | + } |
| 4284 | + }, |
| 4285 | + "description": "Internal Server Error: An internal occurred while processing the request. Please contact the support or try again later." |
| 4286 | + } |
| 4287 | + }, |
| 4288 | + "summary": "List Roles", |
| 4289 | + "x-stackit-authorization": { |
| 4290 | + "actions": [ |
| 4291 | + "postgres-flex.role.list" |
| 4292 | + ], |
| 4293 | + "resource-id": "projectId", |
| 4294 | + "resource-id-type": "dynamic", |
| 4295 | + "resource-type": "project" |
| 4296 | + } |
| 4297 | + } |
| 4298 | + }, |
4161 | 4299 | "/v3alpha1/projects/{projectId}/regions/{region}/instances/{instanceId}/users": {
|
4162 | 4300 | "get": {
|
4163 | 4301 | "description": "List available users for an instance.",
|
|
0 commit comments