Skip to content

Commit 4a112f4

Browse files
OAS Update
1 parent a63b379 commit 4a112f4

File tree

1 file changed

+138
-0
lines changed

1 file changed

+138
-0
lines changed

services/postgres-flex/v3alpha1/postgres-flex.json

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,31 @@
711711
],
712712
"type": "object"
713713
},
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+
},
714739
"ListUser": {
715740
"properties": {
716741
"id": {
@@ -4158,6 +4183,119 @@
41584183
}
41594184
}
41604185
},
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+
},
41614299
"/v3alpha1/projects/{projectId}/regions/{region}/instances/{instanceId}/users": {
41624300
"get": {
41634301
"description": "List available users for an instance.",

0 commit comments

Comments
 (0)