interface Secret {
    createdAt?: Date;
    description?: string;
    ephemeralPolicy?: Secret.v1alpha1.EphemeralPolicy;
    id: string;
    isManaged: boolean;
    isProtected: boolean;
    name: string;
    path: string;
    projectId: string;
    region: Region;
    status: Secret.v1alpha1.SecretStatus;
    tags: string[];
    type: Secret.v1alpha1.SecretType;
    updatedAt?: Date;
    versionCount: number;
}

Properties

createdAt?: Date

Date and time of the secret's creation.

description?: string

Updated description of the secret.

ephemeralPolicy?: Secret.v1alpha1.EphemeralPolicy

(Optional.) Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.

id: string

ID of the secret.

isManaged: boolean

Returns true for secrets that are managed by another product.

isProtected: boolean

Returns true for protected secrets that cannot be deleted.

name: string

Name of the secret.

path: string

Location of the secret in the directory structure.

projectId: string

ID of the Project containing the secret.

region: Region

Region of the secret.

  • ready: the secret can be read, modified and deleted. locked: no action can be performed on the secret. This status can only be applied and removed by Scaleway.
tags: string[]

List of the secret's tags.

See Secret.Type enum for description of values.

updatedAt?: Date

Last update of the secret.

versionCount: number

Number of versions for this secret.