with no luck. When using oauthplayground I get the same issue as described above. When I use apis-explorer I get server error.
500 Internal Server Error
- Show headers -
{
"error": {
"code": 500,
"message": null
}
}
Here is the json from the developers console:
POST https://www.googleapis.com/compute/v1/projects/unified-gift-474/zones/us-central1-a/instances
{
"kind": "compute#instance",
"disks": [
{
"kind": "compute#attachedDisk",
"boot": true,
"type": "PERSISTENT",
"mode": "READ_WRITE",
"deviceName": "test3",
"zone": "https://www.googleapis.com/compute/v1/projects/unified-gift-474/zones/us-central1-a",
"source": "https://www.googleapis.com/compute/v1/projects/unified-gift-474/zones/us-central1-a/disks/test3"
}
],
"networkInterfaces": [
{
"kind": "compute#instanceNetworkInterface",
"accessConfigs": [
{
"name": "External NAT",
"type": "ONE_TO_ONE_NAT"
}
],
"network": "https://www.googleapis.com/compute/v1/projects/unified-gift-474/global/networks/default"
}
],
"scheduling": {
"automaticRestart": "true",
"onHostMaintenance": "MIGRATE"
},
"serviceAccounts": [
{
"kind": "compute#serviceAccount",
"email": "default",
"scopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/devstorage.full_control",
"https://www.googleapis.com/auth/datastore"
]
}
],
"zone": "https://www.googleapis.com/compute/v1/projects/unified-gift-474/zones/us-central1-a",
"metadata": {
"items": []
},
"machineType": "https://www.googleapis.com/compute/v1/projects/unified-gift-474/zones/us-central1-a/machineTypes/f1-micro",
"name": "test3"
}
Here is what the apis-explorer let me enter which doesn't support all the fields that were present in the developer console.
{
"name": "test3",
"kind": "compute#instance",
"disks": [
{
"type": "PERSISTENT",
"mode": "READ_WRITE",
"deviceName": "test3",
"boot": true,
"kind": "compute#attachedDisk"
}
],
"networkInterfaces": [
{
"accessConfigs": [
{
"name": "External NAT",
"type": "ONE_TO_ONE_NAT"
},
]
}
],
"scheduling": {
"automaticRestart": true,
"onHostMaintenance": "MIGRATE"
},
}