GetMX-API
  1. Scale
GetMX-API
  • Domain
    • Get Domains
      POST
    • Add Domain
      POST
    • Delete Domain
      POST
    • Get Domain Detail
      POST
    • Bind Domain to Group-Pay
      POST
    • Unbind Domain from Group-Pay
      POST
    • Update Domain
      POST
  • Group Pay
    • Get Group-Pays
      POST
    • Add Group-Pay
      POST
    • Update Group-Pay
      POST
  • Email
    • Get Emails
      POST
    • Add Email
      POST
    • Delete Email
      POST
    • Update Email
      POST
    • Clean up Email
      POST
  • Message
    • Get Messages
      POST
    • Get Message Detail
      POST
    • Delete Message
      POST
    • Flagged Message
      POST
    • Seen Message
      POST
    • Answered Message
      POST
    • Get Folders
      POST
    • Move Message Folder
      POST
  • Alias
    • Get Aliases
    • Add Alias
    • Delete Alias
    • Update Alias
  • Message Notice
    • Get Message Notices
    • Add Message Notice
    • Delete Message Notice
    • Check Message Notice
    • Update Message Notice
  • SMTP Rule
    • Get Smtp Rules
    • Add Smtp Rule
    • Update Smtp Rule
    • Delete Smtp Rule
  • Scale
    • Query Remaining Space
      POST
    • Server Cleanup
      POST
  1. Scale

Query Remaining Space

POST
/v1/vip-ip/available-space/calc
domain_id AND group_pay_id can't both empty

Request

Body Params multipart/form-data
token
string 
required
Token generated by the management backend.
Example:
{{token}}
domain_id
string 
optional
Domain ID (can be obtained from the GetMX management backend or through the /v1/domain/list endpoint; the 'id' field is the 'domain_id')
Example:
12345678
group_pay_id
string 
optional
Group pay ID (group_pay_id can be obtained from the GetMX backend or through the /v1/group-pay/list endpoint, with the 'id' field corresponding to 'group_pay_id').
Example:
12345678

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://domain-open-api.getmx.com/v1/vip-ip/available-space/calc' \
--form 'token="token"' \
--form 'domain_id="12345678"' \
--form 'group_pay_id="12345678"'

Responses

🟢200成功
application/json
Body
code
integer 
required
msg
string 
required
data
object 
required
message_available_space_per
number 
required
System Remaining Percentage: The percentage of remaining space on the system, with a total value of 1.
message_available_space_size
number 
required
System Remaining Space: The amount of remaining space on the system, measured in gigabytes (G).
space_expansion_status
integer 
required
Space Expansion Status: Indicates whether space expansion has been performed. 1: Expanded -1: Not Expanded
system_available_space_per
number 
required
Email Remaining Percentage: The percentage of remaining space for emails, with a total value of 1. This value is only returned for servers that have undergone space expansion.
system_available_space_size
number 
required
Email Remaining Space: The amount of remaining space for emails, measured in gigabytes (G). This value is only returned for servers that have undergone space expansion.
Example
{
  "code": 200,
  "msg": "成功",
  "data": {
    "message_available_space_per": 0.977,
    "message_available_space_size": 97,
    "space_expansion_status": 1,
    "system_available_space_per": 0.7525,
    "system_available_space_size": 37.625
  }
}
Previous
Delete Smtp Rule
Next
Server Cleanup
Built with