Skip to main content

make_license_key

Function make_license_key 

Source
pub async fn make_license_key(
    client: &Client,
    key_id: &str,
    intermediate_jwt: Option<String>,
    validity: Duration,
    organization_id: String,
    environment_id: String,
    max_credit_consumption_rate: f64,
    allow_credit_consumption_override: bool,
    expiration_behavior: ExpirationBehavior,
    entitlements: Vec<String>,
) -> Result<String>
Expand description

Signs a license key with key_id.

When key_id is an intermediate key, intermediate_jwt must be the intermediate JWT for it, which is embedded in the license key’s header.