Asks whether an amount would be accepted on a metered asset and what it would cost. Meters nothing, charges nothing and holds nothing; returns the consumption state as it would stand. Only the commit binds.
const url = 'https://example.com/api/v1/provision/usage/try-preallocate/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/provision/usage/try-preallocate/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Active license session.
Metric name.
Query Parameters
Section titled “Query Parameters”Quantity to test, in the metric’s unit of measurement.
Responses
Section titled “Responses”OK
object
Defines the enforcement behavior applied by the resource controller or interceptor when a specific usage tier threshold is reached. Ordered from least to most restrictive.
Why a consumption the quota tiers allowed could not be settled against the balance funding the overage. Accompanies a Deny decision so a refusal that is about money rather than about the quota can be told apart.
object
Defines the enforcement behavior applied by the resource controller or interceptor when a specific usage tier threshold is reached. Ordered from least to most restrictive.
Why a consumption the quota tiers allowed could not be settled against the balance funding the overage. Accompanies a Deny decision so a refusal that is about money rather than about the quota can be told apart.
Example
{ "quotaUsageLevel": "None", "quotaUsagePolicy": "None", "reason": "None"}object
Defines the enforcement behavior applied by the resource controller or interceptor when a specific usage tier threshold is reached. Ordered from least to most restrictive.
Why a consumption the quota tiers allowed could not be settled against the balance funding the overage. Accompanies a Deny decision so a refusal that is about money rather than about the quota can be told apart.
Example
{ "quotaUsageLevel": "None", "quotaUsagePolicy": "None", "reason": "None"}Bad Request
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}