Regions: GetRegionReferenceCounts

This method returns a list of each type of object and the number of objects of that type referencing the specified region.

Note: A region cannot be deleted while existing objects reference it.

Request

HTTP request

GET /v2/accounts/{accountId}/regions/{regionId}/reference_counts

Parameters

Parameter NameValueDescription
Path Parameters
regionIdinteger

(Required) The id of the region.

accountIdstring

(Required) The id of the account.

Responses

CodeDescriptionReference
200

Reference counts successfully retrieved.

RegionReferenceCountList
400

Bad request. See ErrorCode and Message for details

ApiError
401

Not authorized to make this request.

ApiError

SDK Method

Regions::GetRegionReferenceCounts

Definitions

ApiError

This object describes errors that occur. It is valid only for responses and ignored in requests.

errorCodestring

The code associated with the error condition.

messagestring

A brief message describing the error condition.

RegionReferenceCount

A complex element containing the number and type of each object referencing the region.

referenceTypestring

The type of object referencing the region.

referenceCountinteger

The number of objects of this type referencing the region.

RegionReferenceCountList

Contains a list of each type of object and the number of objects of that type referencing the region.

referenceCounts[RegionReferenceCount]

A list of each type of object and the number of objects of that type referencing the region.

}} />