Setting the Number of RIs

Function

This API is used to set the number of RIs.

URI

PUT /v2/{project_id}/fgs/functions/{function_urn}/reservedinstances

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID.

function_urn

Yes

String

Function URN.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

count

Yes

Integer

Number of RIs.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

count

Integer

Number of RIs.

Example Requests

Set the number of RIs.

POST https://{functiongraph_endpoint}/v2/{project_id}/fgs/functions/{function_urn}/reservedinstances

Example Responses

Status code: 200

Ok

{
  "cout" : 2
}

Status Codes

Status Code

Description

200

Ok

Error Codes

See Error Codes.