For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workspace

This endpoint is used to create, update, search or delete workspace information inside a Terrakube organization.

Entity fields:

Path
Type
Description

data.type

string

Should be "workspace"

data.attributes.name

string

Unique workspace for an Terrakube organization

data.attributes.branch

boolean

Git branch to be used

data.attributes.source

boolean

Git repository to be used

data.attributes.terraformVersion

boolean

Terraform version to run the workspace

data.relationships.vcs.data.type

string

Should be "vcs" (OPTIONAL)

data.relationships.vcs.data.id

string

Should be the VCS Connection Id (OPTIONAL)

data.relationships.project.data.type

string

Should be "project" (OPTIONAL)

data.relationships.project.data.id

string

Project ID to assign this workspace to (OPTIONAL)

Example:

{
    "data": {
        "type": "workspace",
        "attributes": {
            "branch": "main",
            "name": "Terrakube Workspace",
            "source": "https://github.com/AzBuilder/terraform-sample-repository.git",
            "terraformVersion": "0.15.0"
        },
        "relationships": {
            "vcs": {
                "data": {
                    "type": "vcs",
                    "id": "{{vcsIdGitHub}}"
                }
            }
        }
    }
}

Supported Operations

get

Returns an instance of type workspace

Path parameters
organizationIdstringRequired

organization Identifier

workspaceIdstringRequired

workspace Identifier

Query parameters
Responses
200

Successful response

application/vnd.api+json
get/organization/{organizationId}/workspace/{workspaceId}
200

Successful response

post

Creates an item of type workspace and adds it to workspace

Path parameters
organizationIdstringRequired

organization Identifier

Body
Responses
201

Successful response

application/vnd.api+json
post/organization/{organizationId}/workspace
201

Successful response

delete

Deletes an instance of type workspace

Path parameters
organizationIdstringRequired

organization Identifier

workspaceIdstringRequired

workspace Identifier

Responses
204

Successful response

No content

delete/organization/{organizationId}/workspace/{workspaceId}
204

Successful response

No content

patch

Modifies an instance of type workspace

Path parameters
organizationIdstringRequired

organization Identifier

workspaceIdstringRequired

workspace Identifier

Body
Responses
204

Successful response

No content

patch/organization/{organizationId}/workspace/{workspaceId}
204

Successful response

No content

For a complete list of organization operation please visit the OpenAPI specification

Last updated

Was this helpful?