All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AppBuild | Post /1.5/apps/{app}/build | |
AppCnameAdd | Post /1.0/apps/{app}/cname | |
AppCnameDelete | Delete /1.0/apps/{app}/cname | |
AppCreate | Post /1.0/apps | |
AppDelete | Delete /1.0/apps/{app} | |
AppDeploy | Post /1.0/apps/{app}/deploy | |
AppGet | Get /1.0/apps/{app} | |
AppGetCertificates | Get /1.24/apps/{app}/certificate | |
AppList | Get /1.0/apps | |
AppQuotaChange | Put /1.0/apps/{app}/quota | |
AppQuotaGet | Get /1.0/apps/{app}/quota | |
AppRestart | Post /1.0/apps/{app}/restart | |
AppRouterAdd | Post /1.5/apps/{app}/routers | |
AppRouterDelete | Delete /1.5/apps/{app}/routers/{router} | |
AppRouterList | Get /1.5/apps/{app}/routers | |
AppRouterUpdate | Put /1.5/apps/{app}/routers/{router} | |
AppRun | Post /1.0/apps/{app}/run | |
AppSetCertIssuer | Put /1.24/apps/{app}/certissuer | |
AppSetRoutable | Post /1.8/apps/{app}/routable | |
AppStart | Post /1.0/apps/{app}/start | |
AppStop | Post /1.0/apps/{app}/stop | |
AppTeamGrant | Put /1.0/apps/{app}/teams/{team} | |
AppTeamRevoke | Delete /1.0/apps/{app}/teams/{team} | |
AppUnsetCertIssuer | Delete /1.24/apps/{app}/certissuer | |
AppUpdate | Put /1.0/apps/{app} | |
AutoScaleAdd | Post /1.9/apps/{app}/units/autoscale | |
AutoScaleInfo | Get /1.9/apps/{app}/units/autoscale | |
AutoScaleRemove | Delete /1.9/apps/{app}/units/autoscale | |
CertificatUnset | Delete /1.0/apps/{app}/certificate | |
CertificateSet | Put /1.0/apps/{app}/certificate | |
EnvGet | Get /1.0/apps/{app}/env | |
EnvSet | Post /1.0/apps/{app}/env | |
EnvUnset | Delete /1.0/apps/{app}/env | |
UnitsAdd | Put /1.0/apps/{app}/units | |
UnitsRemove | Delete /1.0/apps/{app}/units |
AppBuild(ctx, app, tag, optional)
Build a Tsuru app image (a regular container image) following the deploy's workflow but don't roll it out to the provisioner. That ends up with a container image that can be pulled by the user or used to deploy the app later.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | Application name | |
tag | string | Container image's tag reference. It must be a valid tag reference according to container image's name specification. Examples: `staging`, `feature-abc`, `42.1.0` | |
optional | *AppBuildOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a AppBuildOpts struct
Name | Type | Description | Notes |
---|
file | *optional.Interface of os.File***optional.os.File| App's source files (tarball compressed with gzip). NOTE 1: When `dockerfile` field is set, this field contains the container build context files. NOTE 2: Cannot be presented mutually with `archive-url` or `image`. | archiveUrl | optional.String| HTTP URL to app's source files. NOTE 1: Tsuru API must be able to download the file over HTTP and the downloaded file must be a tarball compressed with gzip. NOTE 2: Cannot be presented mutually with `dockerfile`, `file` or `image`. Example: `https://my-org.example.com/my-app/v42.tar.gz`. | image | optional.String| Container image name. It must be a valid container image name according to container image's name specification. NOTE: Cannot be presented mutually with `archive-url`, `dockerfile` or `file`. Example: `registry.example.com/my-org/my-app:v42` | dockerfile | optional.String| Content of container file (Dockerfile). It must be a valid file according to Dockerfile reference. NOTE: Cannot be presented mutually with `archive-url` or `image`. Example: ``` FROM alpine:3.16 RUN set -x \\ apk add --update --no-cache curl ca-certificates COPY ./app.sh ./tsuru.yaml /var/my-app/ WORKDIR /var/my-app EXPOSE 8888/tcp ENTRYPOINT [\"/var/my-app/app.sh\"] CMD [\"--port\", \"8888\"] ``` |
(empty response body)
- Content-Type: multipart/form-data
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppCnameAdd(ctx, app, appCName)
adds a cname to app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appCName | AppCName |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppCnameDelete(ctx, app, appCName)
remove cname from app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appCName | AppCName |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppCreateResponse AppCreate(ctx, inputApp)
Create a new app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
inputApp | InputApp |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppDelete(ctx, app)
Delete a tsuru app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
(empty response body)
- Content-Type: Not defined
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppDeploy(ctx, app, optional)
Build a new Tsuru app image and roll it out to the provisioner.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | Application name | |
optional | *AppDeployOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a AppDeployOpts struct
Name | Type | Description | Notes |
---|
newVersion | optional.Bool| Whether should create a new version while preserving the old ones in the provisioner. | [default to false] overrideVersions | optional.Bool| Whether should replace all versions in the provisioner by this new one. | [default to false] message | optional.String| Message to describe the deploy. Example: `Updating the driver connector of MongoDB (vX.Y.Z)` | origin | optional.String| The type of client who originates the deploy. | file | *optional.Interface of os.File***optional.os.File| App's source files (tarball compressed with gzip). NOTE 1: When `dockerfile` field is set, this field contains the container build context files. NOTE 2: Cannot be presented mutually with `archive-url` or `image`. | archiveUrl | optional.String| HTTP URL to app's source files. NOTE 1: Tsuru API must be able to download the file over HTTP and the downloaded file must be a tarball compressed with gzip. NOTE 2: Cannot be presented mutually with `dockerfile`, `file` or `image`. Example: `https://my-org.example.com/my-app/v42.tar.gz`. | image | optional.String| Container image name. It must be a valid container image name according to container image's name specification. NOTE: Cannot be presented mutually with `archive-url`, `dockerfile` or `file`. Example: `registry.example.com/my-org/my-app:v42` | dockerfile | optional.String| Content of container file (Dockerfile). It must be a valid file according to Dockerfile reference. NOTE: Cannot be presented mutually with `archive-url` or `image`. Example: ``` FROM alpine:3.16 RUN set -x \\ apk add --update --no-cache curl ca-certificates COPY ./app.sh ./tsuru.yaml /var/my-app/ WORKDIR /var/my-app EXPOSE 8888/tcp ENTRYPOINT [\"/var/my-app/app.sh\"] CMD [\"--port\", \"8888\"] ``` |
(empty response body)
- Content-Type: multipart/form-data
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
App AppGet(ctx, app)
Get info about a tsuru app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppCertificates AppGetCertificates(ctx, app)
Get the certificate for the app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | Application name |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]MiniApp AppList(ctx, optional)
List apps.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *AppListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a AppListOpts struct
Name | Type | Description | Notes |
---|---|---|---|
locked | optional.Bool | Filter applications by lock status. | |
name | optional.String | Filter applications by name. | |
owner | optional.String | Filter applications by owner. | |
platform | optional.String | Filter applications by platform. | |
pool | optional.String | Filter applications by pool. | |
status | optional.String | Filter applications by unit status. | |
tag | optional.Interface of []string | Filter applications by tag. | |
teamOwner | optional.String | Filter applications by team owner. | |
simplified | optional.Bool | Returns applications without units list. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppQuotaChange(ctx, app, limit)
Changes the maximum limit of units allowed for use.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
limit | float32 | Number of units allowed for use by the current app. Negative number indicates unlimited. |
(empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Quota AppQuotaGet(ctx, app)
Shows app usage info and its quota limit.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppRestart(ctx, app, appStartStop)
Restart App.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appStartStop | AppStartStop |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppRouterAdd(ctx, app, appRouter)
adds a router to app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appRouter | AppRouter |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppRouterDelete(ctx, app, router)
Delete a tsuru app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
router | string | Router name |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AppRouter AppRouterList(ctx, app)
list routers from an app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppRouterUpdate(ctx, app, router, appRouter)
update a router
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
router | string | Router name | |
appRouter | AppRouter |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppRun(ctx, app, appRunOpts)
run commands inside an app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appRunOpts | AppRunOpts | Options to run commands inside an app |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppSetCertIssuer(ctx, app, certIssuerSetData)
Set the certificate issuer for the app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | Application name | |
certIssuerSetData | CertIssuerSetData |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppSetRoutable(ctx, app, setRoutableArgs)
Sets a version as routable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
setRoutableArgs | SetRoutableArgs |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppStart(ctx, app, appStartStop)
Start App.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appStartStop | AppStartStop |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppStop(ctx, app, appStartStop)
Stop App.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
appStartStop | AppStartStop |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppTeamGrant(ctx, app, team)
grant access to a team
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
team | string | Team name |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppTeamRevoke(ctx, app, team)
grant access to a team
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
team | string | Team name |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppUnsetCertIssuer(ctx, app, cname)
Unset the certificate issuer for the app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | Application name | |
cname | string | Certificate CNAME |
(empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppUpdate(ctx, app, updateApp)
Update a tsuru app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
updateApp | UpdateApp |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutoScaleAdd(ctx, app, autoScaleSpec)
Add new unit autoscale spec.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
autoScaleSpec | AutoScaleSpec |
(empty response body)
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AutoScaleSpec AutoScaleInfo(ctx, app)
List autoscales for app.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AutoScaleRemove(ctx, app, process)
Remove unit autoscale spec.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
process | string |
(empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificatUnset(ctx, app)
Unset app certificate.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. |
(empty response body)
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateSet(ctx, app, certificateSetData)
Create a certificate
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
certificateSetData | CertificateSetData |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]EnvVar EnvGet(ctx, app, optional)
Get app environment variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
optional | *EnvGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a EnvGetOpts struct
Name | Type | Description | Notes |
---|
env | optional.String| Environment variable name. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnvSet(ctx, app, envSetData)
Set new environment variable.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
envSetData | EnvSetData | Environment variables. |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnvUnset(ctx, app, env, norestart)
Unset app environment variables.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
env | []string | ||
norestart | bool |
(empty response body)
- Content-Type: Not defined
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UnitsAdd(ctx, app, unitsDelta)
Add units to app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
unitsDelta | UnitsDelta | number of units to add |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UnitsRemove(ctx, app, unitsDelta)
Remove units from app
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
app | string | App name. | |
unitsDelta | UnitsDelta | number of units to remove |
(empty response body)
- Content-Type: application/json
- Accept: application/x-json-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]