All Products
Search
Document Center

Object Storage Service:Hourly OSS data

Last Updated:Mar 20, 2026

Use the QueryUserOmsData operation to retrieve hourly OSS metering data. Each record is grouped by bucket and storage class, and represents a one-hour billing snapshot.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesQueryUserOmsDataSet to QueryUserOmsData.
DataTypeStringYesHourSet to Hour.
TableStringYesOSSThe metering table to query. Valid values: OSS | OssDataReplication | OssSddpScan | OssCache
StartTimeStringYes2022-12-01T09:12:43ZThe start of the time range. Use UTC time.
EndTimeStringYes2022-12-01T09:13:46ZThe end of the time range. Use UTC time.
MarkerStringNotestThe position from which to start the query. Results are sorted alphabetically. Omit to start from the beginning. To retrieve the next page, set this to the Marker value returned in the previous response.
PageSizeIntegerNo50The number of entries per page. Valid values: 1–200. Default: 100.

For common request parameters, see Common request parameters.

Metering tables

Table valueDescription
OSSBasic OSS metering table
OssDataReplicationCross-region replication metering table
OssSddpScanSensitive data protection metering table
OssCacheAccelerator cache capacity metering table

Response parameters

OSS basic metering table

Each record represents one hour of metering data for a specific bucket and storage class combination.

NameTypeUnitExampleDescription
HostIdStringintlThe site. Valid values: cn | intl
MarkerStringNextTokenThe cursor for the next page. Pass this value as the Marker request parameter to retrieve the next page. Empty when all data has been returned.
ProviderIdString26888The product provider code. Valid values: 26842 | 26888
UserIdString148562088256****The UID of the Alibaba Cloud account.
BucketStringexamplebucketThe name of the bucket.
StorageTypeStringstandardThe storage class. Valid values: standard | IA | archive | coldarchive | deepcoldarchive | standard-zrs | IA-zrs | archive-zrs. See Overview of storage classes.
StartTimeString2022-12-01T09:12:43ZThe start of the billing period (UTC).
EndTimeString2022-12-01T09:13:46ZThe end of the billing period (UTC).
StorageIntegerBytes2000The metered storage usage for the storage class.
Note

If you call GetBucketInfo from an endpoint in a different region than the bucket, this value may be 0. The minimum billable size for Infrequent Access (IA), Archive, Cold Archive, and Deep Cold Archive storage classes is 64 KB. Metered and billable storage usage may differ for these classes.

NetworkInIntegerBytes2000Inbound Internet traffic: data transferred from a client to OSS over the Internet.
NetworkOutIntegerBytes2000Outbound Internet traffic: data transferred from OSS to a client over the Internet.
PutRequestIntegerCount1000The number of PUT requests to OSS API operations.
GetRequestIntegerCount2000The number of GET requests to OSS API operations.
CdnInIntegerBytes500Upstream CDN traffic generated when CDN is enabled.
CdnOutIntegerBytes500Back-to-origin traffic generated when CDN is enabled.
ProcessImgSizeIntegerBytes200The actual size of source images processed by Image Processing. Billed by source image size.
AdvImageProcLowIntegerCount200The number of advanced compression operations with output resolution of 800 × 600 pixels or smaller.
AdvImageProcMedIntegerCount200The number of advanced compression operations with output resolution of 1600 × 1200 pixels or smaller.
ProcessIIntegerCount50The number of video snapshot captures.
SelectScanSizeIntegerBytes300The actual size of the source object scanned by SelectObject.
TagCountIntegerCount100The number of object tags in the bucket.
ChargedDatasizeIntegerBytes200Billable storage usage for Infrequent Access (IA) LRS and Archive LRS objects.
LessthanMonthDatasizeIntegerBytes180Billable storage for IA and Archive objects deleted or overwritten before the minimum storage duration. Charged for the remaining duration: IA LRS objects stored less than 30 days (720 hours) are charged for (720 hours − actual storage duration). Archive LRS objects stored less than 60 days (1440 hours) are charged for (1440 hours − actual storage duration).
RetrievalDataIntegerBytes200Data retrieved from IA and Archive storage. For IA storage, fees apply when you access IA objects. For Archive storage, fees apply when you restore Archive objects. Billed by the volume of retrieved data.
RetrievalDataArchiveDirectIntegerBytes200Data retrieved from Archive storage using the direct read feature. Fees apply when you directly access Archive objects.
StorageZRSIntegerBytes100Billable storage usage for Standard ZRS objects.
ChargedDatasizeZRSIntegerBytes65536Billable storage usage for Infrequent Access ZRS objects. Minimum billable size is 64 KB; objects smaller than 64 KB are billed as 64 KB.
LessthanMonthDatasizeZRSIntegerBytes700Billable storage for Infrequent Access ZRS objects deleted or overwritten before the minimum duration. Charged for (720 hours − actual storage duration).
ChargedDatasizeCAIntegerBytes100Billable storage usage for Cold Archive LRS objects.
Important

Minimum billable size is 64 KB. Objects smaller than 64 KB are billed as 64 KB; larger objects are billed by actual size.

EarlyDeletionCAIntegerBytes100Billable storage for Cold Archive objects deleted or overwritten before the minimum duration. Cold Archive has a minimum storage duration of 180 days (4320 hours). Charged for (4320 hours − actual storage duration).
CAStdRetrievalDataIntegerBytes65536Data retrieved when restoring Cold Archive objects using Standard priority (complete in 2–5 hours).
CABulkRetrievalDataIntegerBytes65536Data retrieved when restoring Cold Archive objects using Bulk priority (complete in 5–12 hours).
CAHighPriorRetrievalDataIntegerBytes65536Data retrieved when restoring Cold Archive objects using Expedited priority (complete in 1 hour).
CAStdRetrievalRequestIntegerCount10000Requests to restore Cold Archive objects using Standard priority.
CABulkRetrievalRequestIntegerCount10000Requests to restore Cold Archive objects using Bulk priority.
CAHighPriorRetrievalRequestIntegerCount10000Requests to restore Cold Archive objects using Expedited priority.
DeepCAStdRetrievalDataIntegerBytes65536Data retrieved when restoring Deep Cold Archive objects using Standard priority (complete in 48 hours).
DeepCAHighPriorRetrievalDataIntegerBytes65536Data retrieved when restoring Deep Cold Archive objects using Expedited priority (complete in 12 hours).
DeepCAStdRetrievalRequestIntegerCount10000Requests to restore Deep Cold Archive objects using Standard priority.
DeepCAHighPriorRetrievalRequestIntegerCount10000Requests to restore Deep Cold Archive objects using Expedited priority.
TempStorageCAStdIntegerBytes500Storage of the temporary replica created during Cold Archive or Deep Cold Archive restoration. You are charged for the storage of the replica before the restoration is complete. The replica is automatically deleted after restoration.
AccM2MInIntegerBytes500Accelerated upload traffic from the Chinese mainland to the Chinese mainland using an acceleration endpoint.
AccM2MOutIntegerBytes500Accelerated download traffic from the Chinese mainland to the Chinese mainland using an acceleration endpoint.
AccM2OInIntegerBytes500Accelerated upload traffic from the Chinese mainland to a region outside the Chinese mainland using an acceleration endpoint.
AccM2OOutIntegerBytes500Accelerated download traffic from the Chinese mainland to a region outside the Chinese mainland using an acceleration endpoint.
AccO2MInIntegerBytes500Accelerated upload traffic from a region outside the Chinese mainland to the Chinese mainland using an acceleration endpoint.
AccO2MOutIntegerBytes500Accelerated download traffic from a region outside the Chinese mainland to the Chinese mainland using an acceleration endpoint.
AccO2OInIntegerBytes500Accelerated upload traffic from a region outside the Chinese mainland to another region outside the Chinese mainland using an acceleration endpoint.
AccO2OOutIntegerBytes500Accelerated download traffic from a region outside the Chinese mainland to another region outside the Chinese mainland using an acceleration endpoint.

OssDeepColdArchive metering table

NameTypeUnitExampleDescription
HostIdStringcnThe site. Valid values: cn | intl
MarkerStringNextTokenThe cursor for the next page. Pass this value as the Marker request parameter to retrieve the next page. Empty when all data has been returned.
ProviderIdString26842The product provider code. Valid values: 26842 | 26888
UserIdString148562088256****The UID of the Alibaba Cloud account.
ChargedDatasizeDeepCAIntegerBytes100Billable storage usage for Deep Cold Archive LRS objects.
Important

Minimum billable size is 64 KB. Objects smaller than 64 KB are billed as 64 KB; larger objects are billed by actual size.

EarlyDeletionDeepCAIntegerBytes100Billable storage for Deep Cold Archive objects deleted or overwritten before the minimum duration of 180 days (4320 hours). Charged for (4320 hours − actual storage duration).
StartTimeString2022-12-01T09:12:43ZThe start of the billing period (UTC).
EndTimeString2022-12-01T09:13:46ZThe end of the billing period (UTC).

OssDataReplication metering table

NameTypeUnitExampleDescription
HostIdStringcnThe site. Valid values: cn | intl
MarkerStringNextTokenThe cursor for the next page. Pass this value as the Marker request parameter to retrieve the next page. Empty when all data has been returned.
ProviderIdString26842The product provider code. Valid values: 26842 | 26888
UserIdString148562088256****The UID of the Alibaba Cloud account.
SourceRegionStringoss-cn-hangzhouThe region of the source bucket for cross-region replication.
DestRegionStringoss-us-west-1The region of the destination bucket for cross-region replication.
SourceBucketStringsrcbucketThe name of the source bucket.
DestBucketStringdestbucketThe name of the destination bucket.
ReplicationDatasizeIntegerBytes1000The volume of data replicated from the source bucket to the destination bucket.
RtcDatasizeIntegerBytes1000Replication traffic for tasks with RTC enabled.
StartTimeString2022-12-01T09:12:43ZThe start of the billing period (UTC).
EndTimeString2022-12-01T09:13:46ZThe end of the billing period (UTC).

OssSec metering table

NameTypeUnitExampleDescription
HostIdStringcnThe site. Valid values: cn | intl
MarkerStringNextTokenThe cursor for the next page. Pass this value as the Marker request parameter to retrieve the next page. Empty when all data has been returned.
ProviderIdString26842The product provider code. Valid values: 26842 | 26888
UserIdString148562088256****The UID of the Alibaba Cloud account.
BucketStringexamplebucketThe name of the bucket with OSS Anti-DDoS protection configured.
SecReservedIntegerCount5The number of Anti-DDoS instances and their usage duration. Billed by instance count and duration.
SecEarlyReleasedInteger100Resource reservation fee for Anti-DDoS instances released in less than 7 days. Charged for (7 days × 24 hours − actual usage duration).
SecFlowIntegerBytes2000Internet traffic (inbound and outbound) for all buckets attached to the Anti-DDoS instance. Billed based on the larger of inbound or outbound traffic.
SecRequestIntegerCount10000The number of OSS API requests for all buckets attached to the Anti-DDoS instance. Billed by request count, regardless of whether requests succeed.
StartTimeString2022-12-01T09:12:43ZThe start of the billing period (UTC).
EndTimeString2022-12-01T09:13:46ZThe end of the billing period (UTC).

OssSddpScan metering table

NameTypeUnitExampleDescription
HostIdStringcnThe site. Valid values: cn | intl
MarkerStringNextTokenThe cursor for the next page. Pass this value as the Marker request parameter to retrieve the next page. Empty when all data has been returned.
ProviderIdString26842The product provider code. Valid values: 26842 | 26888
UserIdString148562088256****The UID of the Alibaba Cloud account.
BucketStringexamplebucketThe name of the bucket that stores sensitive data.
SddpScanSizeIntegerBytes1000The volume of data authorized for a full or incremental scan.
StartTimeString2022-12-01T09:12:43ZThe start of the billing period (UTC).
EndTimeString2022-12-01T09:13:46ZThe end of the billing period (UTC).

Examples

Request

https://business.aliyuncs.com/?Action=QueryUserOmsData
&DataType=Hour
&StartTime=2022-12-01T09:12:43Z
&EndTime=2022-12-01T09:13:46Z
&Table=oss
&<Common request parameters>

Response

{
    "Data": {
        "Marker": "NextToken",
        "OmsData": [
            {
                "LessthanMonthDatasize": 180,
                "RetrievalData": 200,
                "RetrievalDataArchiveDirect": 200,
                "ChargedDatasize": 200,
                "Bucket": "examplebucket",
                "NetworkIn": 2000,
                "PutRequest": 1000,
                "NetworkOut": 2000,
                "GetRequest": 2000,
                "ProcessImgSize": 200,
                "Storage": 2000,
                "Region": "cn-hangzhou",
                "ProviderId": "26842",
                "CdnIn": 500,
                "EndTime": "2022-12-01T09:13:46Z",
                "StartTime": "2022-12-01T09:12:43Z",
                "StorageType": "standard",
                "ProcessI": 50,
                "CdnOut": 500
            }
        ],
        "HostId": "cn"
    },
    "Message": "Successful!",
    "RequestId": "4C489CA2-5036-4B06-95A9-34AF55FDE1B2",
    "Success": true,
    "Code": "Success"
}