Create disk
documentedCreates a disk in the specified folder.
POST /compute/v1/disksCompute Cloudno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://compute.api.cloud.yandex.net/compute/v1/disks" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"folderId": "{{$folder_id}}", "name": "{{$name}}", "description": "{{$description}}", "labels": {{$labels}}, "typeId": "{{$type_id}}", "zoneId": "{{$zone_id}}", "size": "{{$size}}", "imageId": "{{$image_id}}", "snapshotId": "{{$snapshot_id}}", "blockSize": "{{$block_size}}", "diskPlacementPolicy": {"placementGroupId": "{{$placement_group_id}}", "placementGroupPartition": "{{$placement_group_partition}}"}, "snapshotScheduleIds": ["{{$snapshot_schedule_id}}"], "hardwareGeneration": {"legacyFeatures": {"pciTopology": "{{$pci_topology}}"}, "generation2Features": {{$generation2_features}}}, "kmsKeyId": "{{$kms_key_id}}"}'