dcloud secrets sources update

Rename the source, replace the credential or change the refresh interval

IAM secrets:UpdateSecretSourceChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud secrets sources update id [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --nameOptional

    string

    New name, 2 to 63 lower-case letters, digits and hyphens; its credential secret is renamed to SOURCE_<NAME>_TOKEN with it. A taken name (or credential secret name) is 409. Synced secrets follow the source by id.

    Constraints: 2-63 chars, /^[a-z0-9][a-z0-9-]*$/

  • --descriptionOptional

    string

    Free-text description, up to 256 characters. Null clears it; omitted: unchanged.

    Constraints: max 256 chars

    May be null.

  • --credentialOptional

    string

    A replacement credential, 8 to 8192 characters. Verified first (rejected: 422), then written as a new version of the credential secret. Omitted: unchanged.

    Constraints: 8-8192 chars

  • --configOptional

    map of string

    Replaces the provider settings whole (the same keys as on create). Verified with the new or the stored credential first: 400 for invalid settings, 422 when the provider refuses them. Omitted: unchanged.

    Constraints: key=value

  • --refresh-interval-minutesOptional

    number

    Minutes between scheduled syncs, 5 to 1440. Omitted: unchanged.

    Constraints: integer, 5-1440

Example

dcloud secrets sources update id

Generated from the API description, the same one the API checks requests against and the CLI is built from.