Skip to content

Authors the per-NHI rotation policy.

PUT
/v1/m/governance/nhi/{ref}/policy
curl --request PUT \
--url https://example.com/v1/m/governance/nhi/example/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "criticality": "example", "max_age_seconds": 1, "rotated_at": "example", "rotation_target": "example" }'

Authors the per-NHI rotation policy. Write-tier, self-audited.

ref
required
string

Path parameter ref.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
Any of:
object
criticality
Any of:

Case-insensitive after trimming: low, medium, high, or critical; empty leaves the stored value unchanged.

string
max_age_seconds
Any of:

A value above zero updates the policy; zero leaves it unchanged.

integer format: int64
<= 31536000
rotated_at
Any of:

When non-blank, must parse as an RFC3339 timestamp; empty leaves it unchanged.

string
rotation_target
Any of:

When non-blank, a credential-free actuator target capped at 128 bytes; empty leaves it unchanged.

string
Example generated
{
"criticality": "example",
"max_age_seconds": 1,
"rotated_at": "example",
"rotation_target": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}