Sign in

Create instance

documented

Creates an Instance resource.

POST /compute/v1/instancesCompute Cloudno implementation yet0 runs
No 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" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"folderId":"{{$folder_id}}","name":"{{$instance_name}}","description":"{{$description}}","zoneId":"{{$zone_id}}","platformId":"{{$platform_id}}","resourcesSpec":{"memory":"{{$memory}}","cores":"{{$cores}}","coreFraction":"{{$core_fraction}}","gpus":"{{$gpus}}"},"metadata":{"ssh-keys":"{{$ssh_keys}}"},"networkInterfaceSpecs":[{"subnetId":"{{$subnet_id}}","primaryV4AddressSpec":{"oneToOneNatSpec":{"ipVersion":"IPv4"}}}],"hostname":"{{$hostname}}","schedulingPolicy":{"preemptible":{{$preemptible}}}}'