El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying Details of Tenant Quotas

Updated on 2023-07-24 GMT+08:00

URI

  • URI format

    GET /v2/{project_id}/os-quota-sets/{target_project_id}?usage=True

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    The project ID.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    target_project_id

    Yes

    The ID of the target project. Set this parameter to the value of project_id.

    usage

    Yes

    Whether to query quota details. Only value true is supported currently.

Request

  • Example request
    GET https://{endpoint}/v2/{project_id}/os-quota-sets/{project_id}?usage=True

Response

  • Response parameters

    Parameter

    Type

    Description

    quota_set

    Object

    The returned quota information. For details, see Parameters in the quota_set field.

    error

    Object

    The error message returned if an error occurs. For details, see Parameters in the error field.

  • Parameters in the quota_set field

    Parameter

    Type

    Description

    volumes

    Object

    The number of disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs. See Parameters in the QuotaDetailVolumes field.

    snapshots

    Object

    The number of snapshots. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs. See Parameters in the QuotaDetailSnapshots field.

    gigabytes

    Object

    The total size (GB) of disks and snapshots allowed. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailGigabytes field.

    volumes_SSD

    Object

    The number of reserved ultra-high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailVolumesSSD field.

    volumes_SAS

    Object

    The number of reserved high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailVolumesSAS field.

    volumes_SATA

    Object

    The number of reserved common I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailVolumesSATA field.

    volumes_ESSD

    Object

    The number of reserved extreme SSD disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailVolumesESSD field.

    snapshots_SSD

    Object

    The number of snapshots reserved for ultra-high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailSnapshotsSSD field.

    snapshots_SAS

    Object

    The number of snapshots reserved for high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailSnapshotsSAS field.

    snapshots_SATA

    Object

    The number of snapshots reserved for common I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailSnapshotsSATA field.

    snapshots_ESSD

    Object

    The number of snapshots reserved for extreme SSD disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailSnapshotsESSD field.

    gigabytes_SSD

    Object

    The size (GB) reserved for ultra-high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailGigabytesSSD field.

    gigabytes_SAS

    Object

    The size (GB) reserved for high I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailGigabytesSAS field.

    gigabytes_SATA

    Object

    The size (GB) reserved for common I/O disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailGigabytesSATA field.

    gigabytes_ESSD

    Object

    The size (GB) reserved for extreme SSD disks. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailGigabytesESSD field.

    id

    String

    The tenant ID. The tenant ID is the same as the project ID.

    backups

    Object

    The number of backups. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs. See Parameters in the QuotaDetailBackups field.

    backup_gigabytes

    Object

    The backup size (GB). Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailBackupGigabytes field.

    per_volume_gigabytes

    Object

    The capacity quota of each disk. Sub-parameters include reserved (reserved quota), limit (maximum quota), and in_use (used quota). They are all made up of key-value pairs.

    See Parameters in the QuotaDetailPerVolumeGigabytes field.

    NOTE:

    If the limit value returned in the response is -1, no quota limit has been set.

  • Parameters in the QuotaDetailBackupGigabytes field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailBackups field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailGigabytes field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailSnapshots field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailVolumes field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailGigabytesSATA field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailGigabytesESSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailSnapshotsSATA field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailSnapshotsESSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailVolumesSATA field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailVolumesESSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailGigabytesSAS field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailSnapshotsSAS field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailVolumesSAS field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailGigabytesSSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailSnapshotsSSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailVolumesSSD field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the QuotaDetailPerVolumeGigabytes field

    Parameter

    Type

    Description

    in_use

    Integer

    The used quota.

    limit

    Integer

    The maximum quota.

    reserved

    Integer

    The reserved field.

  • Parameters in the error field

    Parameter

    Type

    Description

    message

    String

    The error message returned if an error occurs.

    code

    String

    The error code returned if an error occurs.

    For details about the error code, see Error Codes.

  • Example response
    {
        "quota_set": {
            "gigabytes_SAS": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 21
            }, 
            "gigabytes": {
                "reserved": 0, 
                "limit": 42790, 
                "in_use": 2792
            }, 
            "backup_gigabytes": {
                "reserved": 0, 
                "limit": 5120, 
                "in_use": 51
            }, 
            "snapshots_SAS": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 0
            }, 
            "volumes_SSD": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 28
            }, 
            "snapshots": {
                "reserved": 0, 
                "limit": 10, 
                "in_use": 6
            }, 
            "id": "cd631140887d4b6e9c786b67a6dd4c02", 
            "volumes_SAS": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 2
            }, 
            "snapshots_SSD": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 0
            }, 
            "volumes": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 108
            }, 
            "backups": {
                "reserved": 0, 
                "limit": 100, 
                "in_use": 10
            }, 
            "gigabytes_SSD": {
                "reserved": 0, 
                "limit": -1, 
                "in_use": 1085
            }
    
        }
    }

    or

    {
        "error": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

    In the preceding example, error indicates a general error, for example, badrequest or itemNotFound. An example is provided as follows:

    {
        "badrequest": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback