Comment on page
Module
This endpoint is used to create, update, search or delete module information inside a Terrakube organization.
To use this endpoint you should have "manageModule" access at team level and a Terrakube organization
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.type | string | Should be the VCS Connection Id (OPTIONAL) |
{
"data": {
"type": "module",
"attributes": {
"name": "Terrakube module",
"description": "Module Description",
"provider": "Terraform Provider",
"source": "https://github.com/AzBuilder/terraform-sample-repository.git"
},
"relationships": {
"vcs": {
"data": {
"type": "vcs",
"id": "{{vcsId}}"
}
}
}
}
}
get
/organization/{organizationId}/module/{moduleId}
post
/organization/{organizationId}/module
delete
/organization/{organizationId}/module/{moduleId}
patch
/organization/{organizationId}/module/{moduleId}
Last modified 1yr ago