Skip to main content

Create resource

Creates a resource in a project

Path Parameters
    projectId string required

    project uuid or name

Query Parameters
    id string

    Autogenerated if skipped.

Request Body required
    name string required

    The name of the resource. Must be unique within the project.
    Example: my-resource

    title string

    The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty.

    namespace string required

    The namespace of the resource. The resource namespace are created when permissions for that resource is created in Frontier. If namespace doesn't exists the request will fail.
    Example: compute/instance

    principal format namespace:uuid or just uuid for user

    UserID or ServiceUserID that should be marked as owner of the resource. If not provided, the current logged in user will be made the resource owner.
    Example: user:92f69c3a-334b-4f25-90b8-4d4f3be6b825

    metadata object
Responses

A successful response.


Schema
    resource object
    id string
    name string

    Name of the resource. Must be unique within the project.

    createdAt date-time

    The time the resource was created.

    updatedAt date-time

    The time the resource was last updated.

    urn string
    projectId string
    namespace string
    principal string
    metadata object
    title string
Loading...