Attach disk to instance
documentedAttaches a disk to the specified instance.
POST /compute/v1/instances/{instanceId}:attachDiskCompute 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/instances/{{$instance_id}}:attachDisk" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"attachedDiskSpec": {"mode": "READ_WRITE", "deviceName": "{{$device_name}}", "autoDelete": {{$auto_delete}}, "diskId": "{{$disk_id}}"}}'