View Resource Usage tags applied on an Account
get
/metering/api/v1/usage/{accountId}/tags
Retrieve all tags applied on usage posted for a given account.
Request
Path Parameters
-
accountId: string
Account name, starts with cacct.
Query Parameters
-
tagType: string
tagType can be NATIVE , NON-NATIVE or ALL. OCI tags are non-nativeDefault Value:
NATIVE
Response
Supported Media Types
- application/vnd.com.oracle.oraclecloud.metering.usage+json
200 Response
Success
Nested Schema : UsageTag
Type:
object
Title:
Show Source
UsageTag
-
createdOn(optional):
object createdOn
-
tag(optional):
string
Text representing a tag.
-
tagType(optional):
string
Native or non-native. OCI tags are non-native.
Nested Schema : createdOn
Type:
object
Default Response
Unexpected error.
Examples
These APIs are deprecated. See Cost Analysis Overview, Using the API for more information on how to track and optimize your Oracle Cloud Infrastructure spending. See the Deprecated Notices (Endpoints) to see if there is a replacement endpoint.