operationId: CheckAuthentication

path: /CheckAuthentication

method: post

curl_examples:
curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CheckAuthentication \
  --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \
  --aws-sigv4 'osc' \
  --header 'Content-Type: application/json' \
  --data '{"Login": "example@example.com", "Password": "$OSC_PASSWORD"}'


operationId: CreateVms

path: /CreateVms

summary: Creating a VM (minimal syntax)

summary: Creating a VM in a Net

KeypairName: keypair-example

summary: Creating a VM with block device mappings

summary: Creating a VM with a NIC

curl_examples:
curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \
  --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \
  --aws-sigv4 'osc' \
  --header 'Content-Type: application/json' \
  --data '{"ImageId": "ami-12345678"}'

curl_examples:
curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \
  --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \
  --aws-sigv4 'osc' \
  --header 'Content-Type: application/json' \
  --data '{"ImageId": "ami-12345678", "VmType": "tinav5.c1r1p2", "KeypairName": "keypair-example", "SecurityGroupIds": ["sg-12345678"], "SubnetId": "subnet-12345678", "UserData": "..."}'

curl_examples:
curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \
  --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \
  --aws-sigv4 'osc' \
  --header 'Content-Type: application/json' \
  --data '{"ImageId": "ami-12345678", "VmType": "tinav5.c1r1p2", "KeypairName": "keypair-example", "SecurityGroupIds": ["sg-12345678"], "SubnetId": "subnet-12345678", "UserData": "...", "BlockDeviceMappings": [{"DeviceName": "/dev/sda1", "Bsu": {"VolumeSize": 15, "VolumeType": "gp2"}}, {"DeviceName": "/dev/sdb", "Bsu": {"SnapshotId": "snap-12345678", "VolumeSize": 22, "VolumeType": "io1", "Iops": 150}}]}'

curl_examples:
curl -X POST https://api.$OSC_REGION.outscale.com/api/v1/CreateVms \
  --user $OSC_ACCESS_KEY:$OSC_SECRET_KEY \
  --aws-sigv4 'osc' \
  --header 'Content-Type: application/json' \
  --data '{"ImageId": "ami-12345678", "VmType": "tinav5.c1r1p2", "KeypairName": "keypair-example", "UserData": "...", "Nics": [{"DeviceNumber": 0, "NicId": "eni-12345678"}]}'