pub struct KeyCreateParams {
pub key_type: Option<String>,
pub description: Option<String>,
pub capabilities: Option<Value>,
pub expiry_seconds: Option<i64>,
pub scopes: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub issuer: Option<String>,
pub subject: Option<String>,
pub audience: Option<String>,
pub custom_claim_rules: Option<BTreeMap<String, String>>,
}Fields§
§key_type: Option<String>auth for a device registration key, client for an OAuth client,
federated for a federated identity. Omit it and the control plane
creates an auth key (Q80).
description: Option<String>Up to 50 characters of letters, digits, hyphens and spaces.
capabilities: Option<Value>Auth keys: what registering with this key produces, in Tailscale’s own
shape — {"devices": {"create": {"reusable": true, "ephemeral": false, "preauthorized": true, "tags": ["tag:example"]}}}. Sent as written.
expiry_seconds: Option<i64>Auth keys: how long the key stays usable, in seconds.
scopes: Option<Vec<String>>OAuth clients and federated identities: what tokens minted from this
credential may do, as auth_keys or devices:core:read.
The tags this credential may act as. Required when scopes includes
devices:core or auth_keys.
issuer: Option<String>Federated identities: the issuer whose JWTs are accepted.
subject: Option<String>Federated identities: the subject a JWT must claim.
audience: Option<String>Federated identities: the audience a JWT must claim.
custom_claim_rules: Option<BTreeMap<String, String>>Federated identities: claims mapped to the values they must have.
Trait Implementations§
Source§impl Debug for KeyCreateParams
impl Debug for KeyCreateParams
Source§impl<'de> Deserialize<'de> for KeyCreateParams
impl<'de> Deserialize<'de> for KeyCreateParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for KeyCreateParams
impl JsonSchema for KeyCreateParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more