Update Hard or Soft Limits for Resources

put

/metering/api/v1/cloudbucklimits/{accountId}/{entitlementId}

Define or modify hard or soft limits for resources of a given service entitlement.

Request

Supported Media Types
Path Parameters
Body ()
Limit definition.
Root Schema : CloudBuckLimits
Type: object
Title: CloudBuckLimits
Encapsulates a collection of Hard and Soft Limits for a resource within a subscription.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : CloudBuckLimit
Type: object
Title: CloudBuckLimit
Show Source
Nested Schema : createdOn
Type: object
Nested Schema : modifiedOn
Type: object
Back to Top

Response

Supported Media Types

201 Response

Success
Body ()
Root Schema : schema
Type: file

Default Response

Unexpected error.
Back to Top

Examples

cURL Command

The following example shows how to update hard/soft limits for resources by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL.

Enter the command on a single line. Line breaks are used in this example for readability.

curl -X PUT 
     -u joe@example.com 
     -H "X-ID-TENANT-NAME:myDomain" 
     -H "Accept: application/vnd.com.oracle.oraclecloud.metering.cloudbucklimits+json" 
     -H "Content-Type: application/vnd.com.oracle.oraclecloud.metering.cloudbucklimits+json" 
     "https://itra.oraclecloud.com/metering/api/v1/cloudbucklimits/sseyz05242hng/504299053"

Example of Request Body

The following shows an example of the request body content in the requestbody.json file.

{
	"items": [
		{
		"resourceName": "OCPU",
		"serviceName": "Compute",
		"id":"896430081",
		"limit": 20,
		"createdBy": "abcxyz@oracle.com",
		"modifiedBy": "abcxyz@oracle.com",
		"action": "ALERT",
		"limitType": "SOFT",
		"valueType": "ABSOLUTE"
		}
	]
}

Example of Response Body

There is no response body for this HTTP request.

Back to Top