Updates the specified properties of a given API key resource¶
Description¶
Updates the specified properties of a given API key resource.
Usage¶
Arguments¶
-
KeyName[required] The name of the API key resource to update.
-
DescriptionUpdates the description for the API key resource.
-
ExpireTimeUpdates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. -
NoExpiryWhether the API key should expire. Set to
trueto set the API key to have no expiration time. -
ForceUpdateThe boolean flag to be included for updating
ExpireTimeorRestrictionsdetails.Must be set to
trueto update an API key resource that has been used in the past 7 days.Falseif force update is not preferredDefault value:
False -
RestrictionsUpdates the API key restrictions for the API key resource.
Value¶
A list with the following syntax:
Request syntax¶
svc$update_key(
KeyName = "string",
Description = "string",
ExpireTime = as.POSIXct(
"2015-01-01"
),
NoExpiry = TRUE|FALSE,
ForceUpdate = TRUE|FALSE,
Restrictions = list(
AllowActions = list(
"string"
),
AllowResources = list(
"string"
),
AllowReferers = list(
"string"
),
AllowAndroidApps = list(
list(
Package = "string",
CertificateFingerprint = "string"
)
),
AllowAppleApps = list(
list(
BundleId = "string"
)
)
)
)