CertificateTag
A certificate's tags: list, add, replace, change or remove them.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/certificate/issued-certs/{id}/tags |
create |
Created |
GET |
/certificate/issued-certs/{id}/tags |
list |
OK |
PATCH |
/certificate/issued-certs/{id}/tags |
patch |
Created |
DELETE |
/certificate/issued-certs/{id}/tags |
remove |
OK |
PUT |
/certificate/issued-certs/{id}/tags |
update |
Created |
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:
certificate_tags, err := client.CertificateTag(nil).List(map[string]any{"certificate_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(certificate_tags)
created, err := client.CertificateTag(nil).Create(map[string]any{"certificate_id": "example", "tag": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.CertificateTag(nil).Update(map[string]any{"certificate_id": "example", "tags": []any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.CertificateTag(nil).Patch(map[string]any{"certificate_id": "example", "add": []any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
removed, err := client.CertificateTag(nil).Remove(map[string]any{"certificate_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 certificate_tags, err = client:CertificateTag():list({ certificate_id = "example" })
local created, err = client:CertificateTag():create({ certificate_id = "example", tag = "example" })
local updated, err = client:CertificateTag():update({ certificate_id = "example", tags = {} })
local patched, err = client:CertificateTag():patch({ certificate_id = "example", add = {} })
local removed, err = client:CertificateTag():remove({ certificate_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$certificate_tags = $client->CertificateTag()->list(["certificate_id" => "example"]);
$created = $client->CertificateTag()->create(["certificate_id" => "example", "tag" => "example"]);
$updated = $client->CertificateTag()->update(["certificate_id" => "example", "tags" => []]);
$patched = $client->CertificateTag()->patch(["certificate_id" => "example", "add" => []]);
$client->CertificateTag()->remove(["certificate_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
certificate_tags = client.CertificateTag().list({"certificate_id": "example"})
created = client.CertificateTag().create({ "certificate_id": "example", "tag": "example" })
updated = client.CertificateTag().update({"certificate_id": "example", "tags": []})
patched = client.CertificateTag().patch({"certificate_id": "example", "add": []})
client.CertificateTag().remove({"certificate_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
certificate_tags = client.CertificateTag.list({ "certificate_id" => "example" })
created = client.CertificateTag.create({ "certificate_id" => "example", "tag" => "example" })
updated = client.CertificateTag.update({ "certificate_id" => "example", "tags" => [] })
patched = client.CertificateTag.patch({ "certificate_id" => "example", "add" => [] })
client.CertificateTag.remove({ "certificate_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const certificate_tags = await client.CertificateTag().list({ certificate_id: "example" })
const created = await client.CertificateTag().create({ certificate_id: "example", tag: "example" })
const updated = await client.CertificateTag().update({ certificate_id: "example", tags: [] })
const patched = await client.CertificateTag().patch({ certificate_id: "example", add: [] })
await client.CertificateTag().remove({ certificate_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
add |
array |
Yes | Add |
message |
string |
Yes | Message |
remove |
array |
Yes | Remove |
tag |
string |
Yes | Tag |
tags |
array |
Yes | Tags |
create
POST /certificate/issued-certs/{id}/tags
Operation ID: postCertificateIssuedCertsIdTags.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
tag |
string |
Yes |
Responses
201: Created
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 /certificate/issued-certs/{id}/tags
Operation ID: getCertificateIssuedCertsIdTags.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: OK
application/json
The response is array of 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 |
patch
PATCH /certificate/issued-certs/{id}/tags
Operation ID: patchCertificateIssuedCertsIdTags.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
add |
array of string |
Yes | |
remove |
array of string |
Yes |
Responses
201: Created
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 |
remove
DELETE /certificate/issued-certs/{id}/tags
Operation ID: deleteCertificateIssuedCertsIdTags.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
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 |
update
PUT /certificate/issued-certs/{id}/tags
Operation ID: putCertificateIssuedCertsIdTags.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
tags |
array of string |
Yes |
Responses
201: Created
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 |