OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.6.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.6.0
    iconOceanBase Database
    SQL - V 4.6.0
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Create a resource specification

    Last Updated:2026-05-07 11:26:25  Updated
    Share
    What is on this page
    Request parameters
    Response parameters
    Examples
    Request example
    Response example
    References

    folded

    Share

    This topic describes how to create a unit resource specification by using the API.

    Request parameters

    Parameter
    Type
    Required
    Example value
    Description
    name string Yes s1 The name of the resource specification to be created.
    memory_size string Yes 5G The memory specification. The minimum value is controlled by the hidden parameter __min_full_resource_pool_memory (the default value is 5G). To ensure system stability, we recommend that you set the minimum value to 4G.
    max_cpu float64 Yes 2 The upper limit of the CPU specification. The minimum value is 1, which indicates 1 core.
    min_cpu float64 No 2 The lower limit of the CPU specification. The minimum value is 1, which indicates 1 core. If this parameter is not specified, the value of min_cpu is the same as that of max_cpu.
    max_iops int No 1024 The upper limit of IOPS. The minimum value is 1024. The configured value must be greater than or equal to the value of min_iops. If this parameter is not specified, the system automatically calculates the value of max_iops based on the following rules:
    • If the value of min_iops is specified, the value of max_iops is the same as that of min_iops.
    • If the value of min_iops is not specified, the values of max_iops and min_iops are both INT64_MAX.
    min_iops int No 1024 The lower limit of IOPS. The minimum value is 1024. If this parameter is not specified, the system automatically calculates the value of min_iops based on the following rules:
    • If the value of max_iops is specified, the value of min_iops is the same as that of max_iops.
    • If the value of max_iops is not specified, the values of min_iops and max_iops are both INT64_MAX.
    log_disk_size string No 15G The size of the tenant log disk space. If this parameter is not specified, the value is 3 times the memory specification, with a minimum value of 2G.

    Response parameters

    Parameter
    Type
    Description
    successful bool Indicates whether the request was successful.
    timestamp time.Time The timestamp when the server processes the request.
    duration int The time (in milliseconds) taken by the server to process the request.
    status int The HTTP status code.
    traceId string The Trace ID of the request.
    error ApiError The error generated by the request, which contains the following information:
    • code: the error code.
    • message: the error details.
    • subErrors: the suberror information.

    Examples

    Request example

    {
        "name":"s1", 
        "memory_size": "5GB",
        "max_cpu": 3,
    }
    

    Response example

    {
        "successful": true,
        "timestamp": "2024-09-24T19:59:04.310305176+08:00",
        "duration": 10,
        "status": 200,
        "traceId": "7d9bd52cc65cd449"
    }
    

    References

    You can also call the API by using SDK methods.

    • For more information about how to call the API by using obshell-sdk-python, see Create a resource specification.

    • For more information about how to call the API by using obshell-sdk-go, see Create a resource specification.

    Previous topic

    Destroy ODP
    Last

    Next topic

    Retrieve all resource specifications
    Next
    What is on this page
    Request parameters
    Response parameters
    Examples
    Request example
    Response example
    References