Scope
A scope is a list of statements, set when the key is issued. A key with no scope may do everything its user may do.POST /v2/iam/api_keys
connection.*, the key still could not touch connections unless a granted role allowed them. A read-only user who scopes a key to every action gets a read-only key.
Networks
A key also names the networks it accepts requests from. A request from any other address answers401.
POST /v2/iam/api_keys
/v2/iam/service_accounts/{id}/tokens.
Key Rules
The organization’s guardrail can require a scope on every API key and cap how long an API key or a service account token lives, throughrequire_scope and max_lifetime_days in /v2/iam/settings.
Keys Without a Scope
/v2/api_keys keeps working. A key issued there has no scope and does whatever its user may do.