API

SecretVersion

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}/redact create Success
POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}/revoke create Success
POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions create Success
GET /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id} load Success
GET /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions load Success
PATCH /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id} patch Success
DELETE /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id} remove Success
PUT /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id} update Success

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:

secret_version, err := client.SecretVersion(nil).Load(map[string]any{"organization_id": "example", "secret_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(secret_version)
created, err := client.SecretVersion(nil).Create(map[string]any{"organization_id": "example", "secret_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.SecretVersion(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "secret_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.SecretVersion(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "secret_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.SecretVersion(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example", "secret_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 secret_version, err = client:SecretVersion():load({ organization_id = "example", secret_id = "example" })
local created, err = client:SecretVersion():create({ organization_id = "example", secret_id = "example" })
local updated, err = client:SecretVersion():update({ id = "example_id", organization_id = "example", secret_id = "example" })
local patched, err = client:SecretVersion():patch({ id = "example_id", organization_id = "example", secret_id = "example" })
local removed, err = client:SecretVersion():remove({ id = "example_id", organization_id = "example", secret_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$secret_version = $client->SecretVersion()->load(["organization_id" => "example", "secret_id" => "example"]);
$created = $client->SecretVersion()->create(["organization_id" => "example", "secret_id" => "example"]);
$updated = $client->SecretVersion()->update(["id" => "example_id", "organization_id" => "example", "secret_id" => "example"]);
$patched = $client->SecretVersion()->patch(["id" => "example_id", "organization_id" => "example", "secret_id" => "example"]);
$client->SecretVersion()->remove(["id" => "example_id", "organization_id" => "example", "secret_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

secret_version = client.SecretVersion().load({"organization_id": "example", "secret_id": "example"})
created = client.SecretVersion().create({ "organization_id": "example", "secret_id": "example" })
updated = client.SecretVersion().update({"id": "example_id", "organization_id": "example", "secret_id": "example"})
patched = client.SecretVersion().patch({"id": "example_id", "organization_id": "example", "secret_id": "example"})
client.SecretVersion().remove({"id": "example_id", "organization_id": "example", "secret_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

secret_version = client.SecretVersion.load({ "organization_id" => "example", "secret_id" => "example" })
created = client.SecretVersion.create({ "organization_id" => "example", "secret_id" => "example" })
updated = client.SecretVersion.update({ "id" => "example_id", "organization_id" => "example", "secret_id" => "example" })
patched = client.SecretVersion.patch({ "id" => "example_id", "organization_id" => "example", "secret_id" => "example" })
client.SecretVersion.remove({ "id" => "example_id", "organization_id" => "example", "secret_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const secret_version = await client.SecretVersion().load({ organization_id: "example", secret_id: "example" })
const created = await client.SecretVersion().create({ organization_id: "example", secret_id: "example" })
const updated = await client.SecretVersion().update({ id: "example_id", organization_id: "example", secret_id: "example" })
const patched = await client.SecretVersion().patch({ id: "example_id", organization_id: "example", secret_id: "example" })
await client.SecretVersion().remove({ id: "example_id", organization_id: "example", secret_id: "example" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}/redact

Operation ID: redact_api_v1_organization_secret_version.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}/revoke

Operation ID: revoke_api_v1_organization_secret_version.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions

Operation ID: post_api_v1_identity_organizations_organization_id_secrets_secret_id_versions.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}

Operation ID: api_v1_organization_secret_version.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions

Operation ID: api_v1_organization_secret_versions.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}

Operation ID: patch_api_v1_identity_organizations_organization_id_secrets_secret_id_versions_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}

Operation ID: delete_api_v1_identity_organizations_organization_id_secrets_secret_id_versions_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/identity/organizations/{organization_id}/secrets/{secret_id}/versions/{id}

Operation ID: put_api_v1_identity_organizations_organization_id_secrets_secret_id_versions_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
secret_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway