Create platform permission
Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance.
Request Body required
- Array [
- ]
bodies object[]
The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters.
The namespace of the permission. The namespace should be in service/resource format.
Example:compute/guardian
The metadata object for permissions that can hold key value pairs.
The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty.
Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be app
as it's reserved for core permissions.
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
- Array [
- ]
permissions object[]
The time the permission was created.
The time the permission was last updated.
Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
{
"permissions": [
{
"id": "string",
"name": "string",
"title": "string",
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z",
"namespace": "string",
"metadata": {},
"key": "compute.instance.get"
}
]
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}