AcmeSubscription
An ACME subscription: list, create, get, rename or delete one, or change its domains (domains).
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/acme/subscriptions |
create |
OK |
GET |
/acme/subscriptions |
list |
OK |
GET |
/acme/subscriptions/{subscription_id} |
load |
OK |
DELETE |
/acme/subscriptions/{subscription_id} |
remove |
OK |
PATCH |
/acme/subscriptions/{subscription_id} |
update |
OK |
PATCH |
/acme/subscriptions/{subscription_id}/domains |
update |
OK |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
acme_subscriptions, err := client.AcmeSubscription(nil).List(map[string]any{"created_at": "example", "ends_at": "example", "name": "example", "provider": "example", "sharing_id": "example", "status": "example", "validation_type": "example", "year": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(acme_subscriptions)
acme_subscription, err := client.AcmeSubscription(nil).Load(map[string]any{"subscription_id": "example", "sharing_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(acme_subscription)
created, err := client.AcmeSubscription(nil).Create(map[string]any{"sharing_id": "example", "country": "example", "currency": "example", "domains": []any{}, "duration": 1, "grid": "example", "name": "example", "provider": "example", "validation_type": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.AcmeSubscription(nil).Update(map[string]any{"subscription_id": "example", "sharing_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
removed, err := client.AcmeSubscription(nil).Remove(map[string]any{"subscription_id": "example", "sharing_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local acme_subscriptions, err = client:AcmeSubscription():list({ created_at = "example", ends_at = "example", name = "example", provider = "example", sharing_id = "example", status = "example", validation_type = "example", year = "example" })
local acme_subscription, err = client:AcmeSubscription():load({ subscription_id = "example", sharing_id = "example" })
local created, err = client:AcmeSubscription():create({ sharing_id = "example", country = "example", currency = "example", domains = {}, duration = 1, grid = "example", name = "example", provider = "example", validation_type = "example" })
local updated, err = client:AcmeSubscription():update({ subscription_id = "example", sharing_id = "example" })
local removed, err = client:AcmeSubscription():remove({ subscription_id = "example", sharing_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$acme_subscriptions = $client->AcmeSubscription()->list(["created_at" => "example", "ends_at" => "example", "name" => "example", "provider" => "example", "sharing_id" => "example", "status" => "example", "validation_type" => "example", "year" => "example"]);
$acme_subscription = $client->AcmeSubscription()->load(["subscription_id" => "example", "sharing_id" => "example"]);
$created = $client->AcmeSubscription()->create(["sharing_id" => "example", "country" => "example", "currency" => "example", "domains" => [], "duration" => 1, "grid" => "example", "name" => "example", "provider" => "example", "validation_type" => "example"]);
$updated = $client->AcmeSubscription()->update(["subscription_id" => "example", "sharing_id" => "example"]);
$client->AcmeSubscription()->remove(["subscription_id" => "example", "sharing_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
acme_subscriptions = client.AcmeSubscription().list({"created_at": "example", "ends_at": "example", "name": "example", "provider": "example", "sharing_id": "example", "status": "example", "validation_type": "example", "year": "example"})
acme_subscription = client.AcmeSubscription().load({"subscription_id": "example", "sharing_id": "example"})
created = client.AcmeSubscription().create({ "sharing_id": "example", "country": "example", "currency": "example", "domains": [], "duration": 1, "grid": "example", "name": "example", "provider": "example", "validation_type": "example" })
updated = client.AcmeSubscription().update({"subscription_id": "example", "sharing_id": "example"})
client.AcmeSubscription().remove({"subscription_id": "example", "sharing_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
acme_subscriptions = client.AcmeSubscription.list({ "created_at" => "example", "ends_at" => "example", "name" => "example", "provider" => "example", "sharing_id" => "example", "status" => "example", "validation_type" => "example", "year" => "example" })
acme_subscription = client.AcmeSubscription.load({ "subscription_id" => "example", "sharing_id" => "example" })
created = client.AcmeSubscription.create({ "sharing_id" => "example", "country" => "example", "currency" => "example", "domains" => [], "duration" => 1, "grid" => "example", "name" => "example", "provider" => "example", "validation_type" => "example" })
updated = client.AcmeSubscription.update({ "subscription_id" => "example", "sharing_id" => "example" })
client.AcmeSubscription.remove({ "subscription_id" => "example", "sharing_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const acme_subscriptions = await client.AcmeSubscription().list({ created_at: "example", ends_at: "example", name: "example", provider: "example", sharing_id: "example", status: "example", validation_type: "example", year: "example" })
const acme_subscription = await client.AcmeSubscription().load({ subscription_id: "example", sharing_id: "example" })
const created = await client.AcmeSubscription().create({ sharing_id: "example", country: "example", currency: "example", domains: [], duration: 1, grid: "example", name: "example", provider: "example", validation_type: "example" })
const updated = await client.AcmeSubscription().update({ subscription_id: "example", sharing_id: "example" })
await client.AcmeSubscription().remove({ subscription_id: "example", sharing_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
country |
string |
Yes | Country |
created_at |
string |
Yes | Created At |
currency |
string |
Yes | Currency |
domains |
array |
Yes | Domains |
duration |
integer |
Yes | Duration |
eab_hmac |
string |
Yes | Eab Hmac |
eab_id |
string |
Yes | Eab Id |
ends_at |
string |
Yes | Ends At |
grid |
string |
Yes | Grid |
message |
string |
Yes | Message |
name |
string |
Yes | Name |
provider |
string |
Yes | Provider |
server_url |
string |
Yes | Server Url |
status |
string |
Yes | Status |
subscription_id |
string |
Yes | Subscription Id |
validation_type |
string |
Yes | Validation Type |
years |
string |
Yes | Years |
create
POST /acme/subscriptions
Operation ID: postAcmeSubscriptions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
sharing_id |
query |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
country |
string |
Yes | |
currency |
string |
Yes | |
domains |
array of string |
Yes | |
duration |
integer |
Yes | |
grid |
string |
Yes | |
name |
string |
Yes | |
provider |
enum: sectigo, digicert |
Yes | |
validation_type |
enum: dv, ov |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
list
GET /acme/subscriptions
Operation ID: getAcmeSubscriptions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
created_at |
query |
string |
Yes | |
ends_at |
query |
string |
Yes | |
name |
query |
string |
Yes | |
provider |
query |
string |
Yes | |
sharing_id |
query |
string |
Yes | |
status |
query |
string |
Yes | |
validation_type |
query |
string |
Yes | |
years |
query |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].created_at |
string |
Yes | |
[].eab_hmac |
string |
Yes | |
[].eab_id |
string |
Yes | |
[].ends_at |
string |
Yes | |
[].name |
string |
Yes | |
[].provider |
string |
Yes | |
[].server_url |
string |
Yes | |
[].status |
string |
Yes | |
[].subscription_id |
string |
Yes | |
[].validation_type |
string |
Yes | |
[].years |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
load
GET /acme/subscriptions/{subscription_id}
Operation ID: getAcmeSubscriptionsSubscriptionId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
subscription_id |
path |
string |
Yes | |
sharing_id |
query |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
created_at |
string |
Yes | |
eab_hmac |
string |
Yes | |
eab_id |
string |
Yes | |
ends_at |
string |
Yes | |
name |
string |
Yes | |
provider |
string |
Yes | |
server_url |
string |
Yes | |
status |
string |
Yes | |
subscription_id |
string |
Yes | |
validation_type |
string |
Yes | |
years |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
remove
DELETE /acme/subscriptions/{subscription_id}
Operation ID: deleteAcmeSubscriptionsSubscriptionId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
subscription_id |
path |
string |
Yes | |
sharing_id |
query |
string |
Yes |
Responses
200: OK
application/json
The response is string.
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
update
PATCH /acme/subscriptions/{subscription_id}
Operation ID: patchAcmeSubscriptionsSubscriptionId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
subscription_id |
path |
string |
Yes | |
sharing_id |
query |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
PATCH /acme/subscriptions/{subscription_id}/domains
Operation ID: patchAcmeSubscriptionsSubscriptionIdDomains.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
subscription_id |
path |
string |
Yes | |
sharing_id |
query |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
country |
string |
Yes | |
currency |
string |
Yes | |
domains_to_add |
array of string |
Yes | |
domains_to_delete |
array of string |
Yes | |
grid |
string |
Yes | |
provider |
string |
Yes | |
validation_type |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |