CreateSaasService

更新时间:
复制 MD 格式

Creates a SaaS service.

Operation description

Before you call this operation, make sure that you are familiar with the billing methods and pricing of AnalyticDB for PostgreSQL.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID of the instance.

cn-hangzhou

WorkspaceId

string

Yes

The workspace of the SaaS service.

ws-*****

ServiceType

string

Yes

The service type. Valid values:

  • memroy

  • drama.

drama

PayType

string

No

The billing method. Valid values:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

Note
  • If you leave this parameter empty, a Free service is created by default.

  • The subscription billing method offers discounts for purchases of one year or longer. Select a billing method as needed.

Postpaid

UsedTime

string

No

The duration for which you want to purchase the resource. Valid values:

  • If Period is set to Month, the valid values are 1 to 11.

  • If Period is set to Year, the valid values are 1 to 3.

Note

This parameter is required when you create a subscription instance.

1

Period

string

No

The unit of the duration for which you want to purchase the resource. Valid values:

  • Month: month.

  • Year: year.

Note

This parameter is required when you create a subscription instance.

Month

Cu

integer

No

The compute resources of the SaaS service.

1

Plan

string

No

Deprecated.

deprecated

Response elements

Element

Type

Description

Example

object

ServiceId

string

The service ID.

agdb-eqxwj5tj5ojx

RequestId

string

The request ID.

7565770E-7C45-462D-BA4A-8A5396F2CAD1

OrderId

string

The order ID.

*********

Examples

Success response

JSON format

{
  "ServiceId": "agdb-eqxwj5tj5ojx",
  "RequestId": "7565770E-7C45-462D-BA4A-8A5396F2CAD1",
  "OrderId": "*********"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.