ModifyInstanceVolumeIops
In this article:
ModifyInstanceVolumeIops#
Description#
Request to modify the IOPS number for all data volumes on PaaS master nodes.
Important
The value can be modified in environment versions starting from paas_v3_5
.
Request Parameters#
iops — The number of I/O operations per second.
Type: Integer
Required: Yes
Valid values: Supported for io2 volume type
Restriction: For
io2
disks only
serviceId — The service ID.
Type: String
Required: Yes
Response Elements#
service — Detailed description of a service.
Type: Service object
Examples#
Managing PaaS services in K2 Cloud via API requires a customized version of the boto3 library:
import boto3
session = boto3.Session(
aws_access_key_id="<AWS_ACCESS_KEY_ID>",
aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
region_name="",
)
paas_client = session.client(
'paas',
endpoint_url='https://paas.k2.cloud/',
)
paas_client.modify_instance_volume_iops(
serviceId='fm-cluster-7867D61F',
iops=3200,
)
Or c2-paas utility from K2 Cloud API Client software suite:
c2-paas ModifyInstanceVolumeIops serviceId fm-cluster-7867D61F iops 3200