Create DB subnet group (POST /v1.0/{tenantId}/subnetgroups)

Creates a DB subnet group.

Request URI

{tenantID}

Project ID of the owner of the instance

Data Type Cardinality
String 1..1

Request Parameters

subnetgroup

Data Type Cardinality Parent Element Child Element(s)
    None id

name

subnetIds

description

id

ID of DB subnet group
  • Only alphanumeric characters and hyphens can be used
  • The string must start with a letter
  • A hyphen cannot be used at the end of the string
  • Two or more consecutive hyphens cannot be used
  • Up to 63 characters

Default: random value

Data Type Cardinality Parent Element Child Element(s)
String 0..1 subnetgroup None

name

Name of DB subnet group
  • Only alphanumeric characters and hyphens can be used
  • The string must start with a letter
  • A hyphen cannot be used at the end of the string
  • Two or more consecutive hyphens cannot be used
  • Up to 255 characters
Data Type Cardinality Parent Element Child Element(s)
String 1..1 subnetgroup None

subnetIds

List of subnets

A DB subnet group must contain one or more subnets.

Data Type Cardinality Parent Element Child Element(s)
SubnetId

list

1..1 subnetgroup None

description

Description of DB subnet group

Data Type Cardinality Parent Element Child Element(s)
String 0..1 subnetgroup None

Response Headers

Status

Returns the status of the request.

One of the following values will be returned.
401:
unauthorized
403:
forbidden
404:
itemNotFound
413:
overLimit
422:
unprocessableEntity
500:
instanceFault
501:
notImplemented
503:
serviceUnavailable
504:
gatewayTimeout
Data Type Cardinality
Int 1..1

Response Elements

description

Description of DB subnet group

Data Type Cardinality Parent Element Child Element(s)
String      

name

Name of DB subnet group

Data Type Cardinality Parent Element Child Element(s)
String      

status

Status of DB subnet group

Data Type Cardinality Parent Element Child Element(s)
String      

subnetIds

List of subnets

Data Type Cardinality Parent Element Child Element(s)
SubnetId list      

id

ID of DB subnet group

Data Type Cardinality Parent Element Child Element(s)
String      

subnetId

ID of DB subnet

Data Type Cardinality Parent Element Child Element(s)
String      

Example of Request


{
   "subnetgroup" : {
     "name": "subnetGroup1",
     "subnetIds": [
       {"subnetId" : "subnetid1"},
       {"subnetId" : "subnetid2"}
     ],
     "description" : "this is test"
   }
}       
     

Example of Response


{
   "subnetgroup" : {
     "name": "subnetGroup1",
     "id": "subnet_edrtfyuhijko01",
     "status":" Available"
     " subnetIds ": [
       {"subnetId" : "subnetid1"},
       {"subnetId" : "subnetid2"}
     ],
     "description" : "this is test"
   }
}