APIs and subscriptions
Weik.io 2026.2Create gateways, deploy and promote API versions, and give callers access through subscriptions.
On this page
- Commands on this page
- weikio gateway create
- weikio gateway set
- weikio gateway diff
- weikio get gateways
- weikio describe gateway
- weikio get apim-instances
- weikio delete gateway
- weikio rename gateway
- weikio api deploy
- weikio api promote
- weikio api rollback
- weikio api undeploy
- weikio api set-gateways
- weikio api set-rules
- weikio get api-deployments
- weikio get apis
- weikio describe api
- weikio get apiversions
- weikio describe apiversion
- weikio delete api
- weikio rename api
- weikio delete apiversion
- weikio get subscriptions
- weikio subscription create
- weikio subscription set
- weikio subscription key
- weikio subscription rotate-key
- weikio subscription disable
- weikio subscription enable
- weikio delete subscription
- Exit codes
- See also
An API is published as versions, and an API deployment serves one version in one environment on one or more gateways. A gateway is an entrance of one environment with its hostnames, the networks that may call it, its client certificate rules and its rate limits, and the platform obtains and renews the certificate of every hostname unless you upload one.
A subscription gives a caller access to APIs on one gateway, with an API key, a query parameter, basic credentials, an OpenID Connect token, a client certificate or no credential at all. The key is shown once and only its hash is stored.
Commands on this page#
| Command | What it does |
|---|---|
weikio gateway create |
Create a gateway in an environment. |
weikio gateway set |
Change a gateway, keeping the fields you don’t set. |
weikio gateway diff |
Compare the rules of two gateways. |
weikio get gateways |
List the gateways. |
weikio describe gateway |
Show a gateway with its rules, certificates and what uses it. |
weikio get apim- |
List the APIM instances, with their entrances and the gateway revisions they serve. |
weikio delete gateway |
Delete a gateway. |
weikio rename gateway |
Rename a gateway. |
weikio api deploy |
Deploy an API version to an environment’s gateways. |
weikio api promote |
Deploy what one environment serves to another, keeping the target’s gateways and overrides. |
weikio api rollback |
Roll a deployment back to the definition it served before. |
weikio api undeploy |
Undeploy an API version from an environment. |
weikio api set- |
Change the gateways of a deployment, keeping its definition. |
weikio api set- |
Make a gateway’s rules stricter for one deployment. |
weikio get api- |
List a project’s API deployments, in every environment unless -- is given. |
weikio get apis |
List the APIs of a project. |
weikio describe api |
Show an API with its versions, deployments, calls of the last day and subscriptions. |
weikio get apiversions |
List the versions of one API. |
weikio describe apiversion |
Show an API version with its routes and clusters. |
weikio delete api |
Delete an API with its versions. |
weikio rename api |
Rename an API. |
weikio delete apiversion |
Delete one version of an API. |
weikio get subscriptions |
List a project’s subscriptions with their calls of the last day. |
weikio subscription create |
Create a subscription in one environment. |
weikio subscription set |
Change the given fields of a subscription. |
weikio subscription key |
Create a subscription’s first credential and print it once. |
weikio subscription rotate- |
Replace the credential of a subscription and print the new one once. |
weikio subscription disable |
Disable a subscription. |
weikio subscription enable |
Enable a subscription. |
weikio delete subscription |
Delete a subscription. |
The flags every command accepts, such as --env, --project, -o and --context, are on the CLI reference page and are left out of the tables below.
weikio gateway create#
Create a gateway in an environment. --networks is required, so no gateway is left open by a forgotten flag. Give it internet to admit any caller. The reply says who can reach the gateway and where each hostname’s certificate comes from.
weikio gateway create <name> [--env E] --networks internet|CIDR,... [--hostname H ...] [--display-name S] [--served-by hub|site] [--entrance N ...] [--projects p,...] [--default] [--like G] [--relay-from G,...] [--client-certificate none|optional|required] [--authority A=CA.pem[,CA.pem] ...] [--caller-limit N/W] [--subscription-limit N/W] [--upstream-networks CIDR,...] [--max-request-size SIZE] [--server-certificate NAME=CHAIN.pem,KEY.pem ...] [--certificate-source automatic|public|platform|uploaded|AUTHORITY] [-y]| Argument or flag | What it does |
|---|---|
<name> |
The gateway to create. |
-- |
A gateway to copy networks, entrances, client certificate rules, limits, upstreams and request size from. |
-- |
The gateway’s display name, or “” to remove it. |
-- |
A hostname callers use to reach the gateway, repeated for each hostname. |
-- |
Who may call: internet, or address ranges such as 10.0.0.0/8, comma separated. |
-- |
Who serves it: hub, or site for site agents with the capability gateway=<name>. |
-- |
An entrance the gateway listens on. Repeat for each, by default the hub’s entrance when the hub has one. |
-- |
The projects that may use the gateway, comma separated, or “” for any project. |
-- |
Make it a default gateway, used by deployments and subscriptions of its projects that don’t choose one. |
-- |
The hub gateways of the same environment that may relay calls into this site gateway, comma separated. |
-- |
A certificate for its hostnames, as NAME=CHAIN.pem,KEY.pem, repeated for each certificate. |
-- |
Who signs its hostnames: automatic, public (the installation’s public authority), platform, uploaded, or a certificate authority’s name. |
-- |
Client certificate: none, optional or required. |
-- |
An authority whose client certificates the gateway accepts, as NAME=CA.pem[,CA.pem], replacing that authority's CA certificates, repeated for each authority. |
-- |
Calls allowed per caller address, as N/W, such as 600/1m. Each APIM instance counts its own. |
-- |
Calls allowed per subscription without its own limit, as N/W, such as 600/1m. Counted across all APIM instances. |
-- |
The address ranges its APIs may call, comma separated, or “” for anywhere. |
-- |
The largest request body it accepts, such as 10MB, or “” for the platform’s limit. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a platform administrator.
API: PUT /api/v1/gateways/{name}, GET /api/v1/settings/install, GET /api/v1/gateways/{like}.
Also written as weikio create gateway.
$ weikio gateway create internal --env production --hostname api.example.com --networks 10.0.0.0/8 --default -yTarget: https://hub.example, environment production (--env)
gateway internal created (environment production, revision 12)
Listens on the hub's entrance 'public' to callers in 10.0.0.0/8.
api.example.com points at this hub. Requesting its certificate from Let's Encrypt. HTTPS is served once it's issued (weikio describe gateway internal).weikio gateway set#
Change a gateway, keeping the fields you don’t set. Fields you don’t set keep their values. Adding a hostname makes the platform obtain its certificate, unless you upload one.
weikio gateway set <name> [the flags of create] [--no-default] [--remove-hostname H ...] [--remove-server-certificate NAME ...] [--projects ""] [--remove-authority A ...] [--revoke-certificate A=leaf.pem|SHA256 ...] [--unrevoke-certificate A=leaf.pem|SHA256 ...] [--no-caller-limit] [--no-subscription-limit] [--upstream-networks ""] [--max-request-size ""] [-y]| Argument or flag | What it does |
|---|---|
<name> |
The gateway. |
-- |
Make it no longer a default gateway. |
-- |
A hostname to remove, repeated for each hostname. |
-- |
An uploaded certificate to remove, by name, repeated for each certificate. |
-- |
The gateway’s display name, or “” to remove it. |
-- |
A hostname callers use to reach the gateway, repeated for each hostname. |
-- |
Who may call: internet, or address ranges such as 10.0.0.0/8, comma separated. |
-- |
Who serves it: hub, or site for site agents with the capability gateway=<name>. |
-- |
An entrance the gateway listens on. Repeat for each, by default the hub’s entrance when the hub has one. |
-- |
The projects that may use the gateway, comma separated, or “” for any project. |
-- |
Make it a default gateway, used by deployments and subscriptions of its projects that don’t choose one. |
-- |
The hub gateways of the same environment that may relay calls into this site gateway, comma separated. |
-- |
A certificate for its hostnames, as NAME=CHAIN.pem,KEY.pem, repeated for each certificate. |
-- |
Who signs its hostnames: automatic, public (the installation’s public authority), platform, uploaded, or a certificate authority’s name. |
-- |
Client certificate: none, optional or required. |
-- |
An authority whose client certificates the gateway accepts, as NAME=CA.pem[,CA.pem], replacing that authority's CA certificates, repeated for each authority. |
-- |
Calls allowed per caller address, as N/W, such as 600/1m. Each APIM instance counts its own. |
-- |
Calls allowed per subscription without its own limit, as N/W, such as 600/1m. Counted across all APIM instances. |
-- |
The address ranges its APIs may call, comma separated, or “” for anywhere. |
-- |
The largest request body it accepts, such as 10MB, or “” for the platform’s limit. |
-- |
Authority whose client certificates the gateway stops accepting, repeated for each authority. |
-- |
Client certificate the gateway refuses, as AUTHORITY=leaf.pem or AUTHORITY=SHA256 fingerprint, repeated for each certificate. |
-- |
Revoked client certificate the gateway accepts again, as AUTHORITY=leaf.pem or AUTHORITY=SHA256 fingerprint, repeated for each certificate. |
-- |
Remove the caller limit. |
-- |
Remove the limit for subscriptions that set none of their own. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a platform administrator.
API: PUT /api/v1/gateways/{name}, GET /api/v1/apim/instances.
weikio gateway diff#
Compare the rules of two gateways.
weikio gateway diff <a> <b>| Argument or flag | What it does |
|---|---|
<gateway> |
One gateway. |
<other> |
The gateway to compare it with. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/gateways/{a}/diff/{b}.
weikio get gateways#
List the gateways.
weikio get gateways [--env E]Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/gateways?environment=.
Also written as weikio get gateway.
weikio describe gateway#
Show a gateway with its rules, certificates and what uses it.
weikio describe gateway <name>| Argument or flag | What it does |
|---|---|
<name> |
The gateway. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/gateways/{name}, GET /api/v1/apim/instances.
Also written as weikio describe gateways.
weikio get apim-instances#
List the APIM instances, with their entrances and the gateway revisions they serve.
weikio get apim-instancesWho can run it: a platform administrator. A reader of an environment sees the instances that serve its gateways.
API: GET /api/v1/apim/instances.
Also written as weikio get apim-instance.
weikio delete gateway#
Delete a gateway.
weikio delete gateway <name> [-y]| Argument or flag | What it does |
|---|---|
<name> |
The gateway. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a platform administrator.
API: DELETE /api/v1/gateways/{name}.
Also written as weikio delete gateways.
weikio rename gateway#
Rename a gateway.
weikio rename gateway <name> <new-name>| Argument or flag | What it does |
|---|---|
<name> |
The gateway. |
<new- |
The new name. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a platform administrator.
API: PATCH /api/v1/gateways/{name}.
weikio api deploy#
Deploy an API version to an environment’s gateways. Without --gateways, a new deployment is served on the environment’s only gateway or on its default gateways that allow the project, and a deployment already there keeps its gateways.
weikio api deploy <p>/<api>@<v> [--env E] [--gateways G,...] [--set k=v ...] [--unset k ...] [--dry-run] [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
-- |
The gateways that serve the version, comma separated. |
-- |
An override as k=v, added to the deployment’s other overrides (repeatable). |
-- |
The name of an override to remove (repeatable). |
-- |
Print what would happen and change nothing. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
API: PUT /api/v1/environments/{environment}/projects/{project}/api-deployments/{api}/{v}, GET /api/v1/gateways?environment=.
$ weikio apply -f ./finance/apis/Target: https://hub.example, project finance (from finance/project.yaml)
api finance/invoices created
api-version finance/invoices@v1 created (type proxy, rate limit 600/1m)
api-version finance/bank-notifications@v1 created (type webhook, channel bank-notification-received)
api-deployment devtest/finance/invoices@v1 created
api-subscription devtest/finance/partner-y created
Gateways updated in: devtest.weikio api promote#
Deploy what one environment serves to another, keeping the target’s gateways and overrides. The target receives the definition the source serves, the one you tested, and keeps its own gateways, rules and overrides.
weikio api promote <p>/<api>@<v> --from E1 [--to E2] [--gateways G,...] [--dry-run] [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
-- |
The environment to copy from. |
-- |
The environment to copy into. |
-- |
The gateways that serve the version, comma separated. |
-- |
Print what would happen and change nothing. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
$ weikio api promote finance/invoices@v1 --from devtest --to production -yTarget: https://hub.example, project finance (argument), environment production (--to)
api-deployment production/finance/invoices@v1 created (gateways internal, definition 3f9a0c1e2b4d, revision 31)
Served at https://api.example.com/invoices/v1 (gateway internal).weikio api rollback#
Roll a deployment back to the definition it served before.
weikio api rollback <p>/<api>@<v> [--env E] [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
API: POST /api/v1/environments/{environment}/projects/{project}/api-deployments/{api}/{v}/rollback.
weikio api undeploy#
Undeploy an API version from an environment.
weikio api undeploy <p>/<api>@<v> [--env E] [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
API: DELETE /api/v1/environments/{environment}/projects/{project}/api-deployments/{api}/{v}.
weikio api set-gateways#
Change the gateways of a deployment, keeping its definition.
weikio api set-gateways <p>/<api>@<v> [--env E] [--add G,...] [--remove G,...] [--via HUB=SITE ...] [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
-- |
Gateways to add, comma separated. |
-- |
Gateways to remove, comma separated. |
-- |
A hub gateway that relays calls to a site gateway, as HUB=SITE, repeated as needed. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
weikio api set-rules#
Make a gateway’s rules stricter for one deployment.
weikio api set-rules <p>/<api>@<v> [--env E] --gateway G [--networks CIDR,...] [--client-certificate optional|required] [--authority A ...] [--caller-limit N/W] [--subscription-limit N/W] | --clear [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
-- |
The gateway whose rules to make stricter. |
-- |
Address ranges that may call this API, within the gateway’s own, comma separated. |
-- |
Whether callers need a client certificate: optional or required. |
-- |
A gateway authority whose client certificates this API accepts, repeated as needed. |
-- |
Calls per caller address, as N/W, such as 600/1m. |
-- |
Calls per subscription that sets no limit of its own, as N/W, such as 600/1m. |
-- |
Remove this API’s stricter rules on the gateway. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has deploy in the target environment.
weikio get api-deployments#
List a project’s API deployments, in every environment unless --env is given.
weikio get api-deployments [--env E] [--project P] [--api A]| Argument or flag | What it does |
|---|---|
-- |
Show only the deployments of this API. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/environments/{environment}/projects/{project}/api-deployments, GET /api/v1/projects/{project}/apis/{api}/deployments.
Also written as weikio get api-deployment.
$ weikio get api-deployments --api invoicesENVIRONMENT API DEFINITION GATEWAYS DEPLOYED BY DEPLOYED STATE
devtest finance/invoices@v1 3f9a0c1e2b4d devtest anna@example.com 2026-10-08 09:14 UTC -
production finance/invoices@v1 3f9a0c1e2b4d internal anna@example.com 2026-10-08 09:20 UTC -weikio get apis#
List the APIs of a project.
weikio get apis [--project P]Who can run it: a grant on the project whose role has read.
API: GET /api/v1/projects/{project}/apis, GET /api/v1/environments/{environment}/projects/{project}/api-deployments.
weikio describe api#
Show an API with its versions, deployments, calls of the last day and subscriptions.
weikio describe api <p>/<n>| Argument or flag | What it does |
|---|---|
<api> |
API as project/name. |
Who can run it: a grant on the project whose role has read.
API: GET /api/v1/projects/{project}/apis/{name}, GET /api/v1/environments/{environment}/projects/{project}/api-subscriptions?api=, GET /api/v1/metrics/summary, GET /api/v1/traces/_related.
weikio get apiversions#
List the versions of one API.
weikio get apiversions <p>/<api>| Argument or flag | What it does |
|---|---|
<api> |
API as project/name. |
Who can run it: a grant on the project whose role has read.
API: GET /api/v1/projects/{project}/apis/{api}/versions, GET /api/v1/projects/{project}/apis/{api}/deployments.
weikio describe apiversion#
Show an API version with its routes and clusters.
weikio describe apiversion <p>/<api>@<version> [--openapi]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
-- |
Print its OpenAPI document instead. |
Who can run it: a grant on the project whose role has read.
API: GET /api/v1/projects/{project}/apis/{api}/versions/{version}.
weikio delete api#
Delete an API with its versions.
weikio delete api <p>/<n> [-y]| Argument or flag | What it does |
|---|---|
<api> |
API as project/name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: DELETE /api/v1/projects/{project}/apis/{name}.
weikio rename api#
Rename an API.
weikio rename api <p>/<n> <new-name>| Argument or flag | What it does |
|---|---|
<name> |
The api, as project/name. |
<new- |
New name in the same project. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: PATCH /api/v1/projects/{project}/apis/{name}.
weikio delete apiversion#
Delete one version of an API.
weikio delete apiversion <p>/<api>@<version> [-y]| Argument or flag | What it does |
|---|---|
<apiversion> |
The version, as project/api@version. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: DELETE /api/v1/projects/{project}/apis/{api}/versions/{version}.
weikio get subscriptions#
List a project’s subscriptions with their calls of the last day.
weikio get subscriptions [--env E] [--project P] [--api A]| Argument or flag | What it does |
|---|---|
-- |
Show only subscriptions to this API. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/environments/{environment}/projects/{project}/api-subscriptions?api=, GET /api/v1/projects/{project}/api-subscriptions?api=.
$ weikio get subscriptions --env productionNAME PROJECT APIS GATEWAY TYPE ACTIVE RATE LIMIT EXPIRES CALLS 24H LIMITED LAST CALL
partner-x finance invoices internal apikey yes 60/1m - 0 0 -weikio subscription create#
Create a subscription in one environment. For apikey, queryparameter and basic, the credential is printed once as the last line, and only its hash is stored.
weikio subscription create <p>/<name> [--env E] [--gateway G] --api A[,B ...] --type apikey|queryparameter|basic|oidc|anonymous|certificate [--owner S] [--rate-limit N/W] [--expires T] [--header "k: v" ...] [--username S] [--oidc-issuer URL --oidc-audience S] [--certificate-authority A --certificate-name N]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
-- |
The subscription’s gateway, by default the environment’s only gateway, or its only default gateway that allows the project. |
-- |
The subscription’s APIs, comma separated. |
-- |
The authentication type: apikey, queryparameter, basic, oidc, anonymous or certificate. |
-- |
Who the subscription is for, by default the subscription’s name. |
-- |
The subscription’s rate limit, as N/W, such as 600/1m. |
-- |
When the subscription expires, as a duration such as 90d or a date such as 2027-01-01. |
- |
A header the gateway adds to this subscription’s requests, as “Name: value”, repeated for each header. |
-- |
The username of a basic credential, by default the subscription’s current username, or its name. |
-- |
The issuer of the caller’s tokens (type oidc). |
-- |
The audience the caller’s tokens must have (type oidc). |
-- |
The gateway authority that issues the caller’s client certificate (type certificate). |
-- |
The name in the client certificate (type certificate). |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: PUT /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}.
Also written as weikio create subscription.
$ weikio subscription create finance/partner-x --env production --api invoices --type apikey --rate-limit 60/60s -yTarget: https://hub.example, project finance (argument), environment production (--env)
api-subscription production/finance/partner-x created (gateway internal, type apikey, APIs invoices, rate limit 60/1m)
To rotate the key later:
weikio subscription rotate-key finance/partner-x --env production
API key (shown once): ****************************************$ curl -H "X-Api-Key: $PARTNER_KEY" https://api.example.com/invoices/v1/pendingweikio subscription set#
Change the given fields of a subscription.
weikio subscription set <p>/<name> --env E [--api a,b] [--owner S] [--rate-limit N/W] [--expires 90d|date] [--header "Name: value" ...] [--oidc-issuer URL] [--oidc-audience S] [--certificate-authority A] [--certificate-name N]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
-- |
The subscription’s APIs, comma separated, replacing the current APIs. |
-- |
Who the subscription is for. |
-- |
The subscription’s rate limit, as N/W, such as 600/1m. |
-- |
When the subscription expires, as a duration such as 90d or a date such as 2027-01-01. |
- |
A header the gateway adds to this subscription’s requests, as “Name: value”. Replaces the current headers, repeated for each header. |
-- |
The issuer of the caller’s tokens (type oidc). |
-- |
The audience the caller’s tokens must have (type oidc). |
-- |
The gateway authority that issues the caller’s client certificate (type certificate). |
-- |
The name in the client certificate (type certificate). |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: PUT /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}.
weikio subscription key#
Create a subscription’s first credential and print it once. Use it for a subscription that came from Git through weikio apply, where the document has no credential.
weikio subscription key <p>/<name> [--env E] [--username S]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
-- |
The username of a basic credential, by default the subscription’s current username, or its name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: POST /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}/credential.
weikio subscription rotate-key#
Replace the credential of a subscription and print the new one once.
weikio subscription rotate-key <p>/<name> [--env E] [--username S] [-y]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
-- |
The username of a basic credential, by default the subscription’s current username, or its name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: POST /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}/credential.
weikio subscription disable#
Disable a subscription.
weikio subscription disable <p>/<name> [--env E]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: PATCH /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}.
weikio subscription enable#
Enable a subscription.
weikio subscription enable <p>/<name> [--env E]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
weikio delete subscription#
Delete a subscription.
weikio delete subscription <p>/<name> [--env E] [-y]| Argument or flag | What it does |
|---|---|
<subscription> |
Subscription, as project/name. |
- |
Don’t ask for confirmation. |
-- |
Reason for the change, stored with the audit record. |
Who can run it: a grant on the project whose role has author.
API: DELETE /api/v1/environments/{environment}/projects/{project}/api-subscriptions/{name}.
Exit codes#
The commands on this page exit with the codes in the exit code table: 0 on success, 1 when the hub refuses a change, 2 for a usage error, 3 when the key is missing or not allowed, 4 when something isn’t found, 5 for a conflicting change, 6 when the hub can’t be reached and 8 when a document isn’t valid.