Add custom pricing entries for a cloud provider
curl -X POST http://localhost:8080/marketplace/providers \
-H "Authorization: 3fd8b6a4-137b-4b0b-8aa9-6d5726e88cbe" \
-H "Content-Type: application/json" \
-d '{
"name": "gophercorp",
"entries": [
{
"cost_per_hour": 0.0204,
"cpu_cores": 2,
"ram_gb": 2,
"usage_type": "ONDEMAND",
"instance_type": "t3.small",
"region": "us-east-1",
"raw_pricing_data": {},
"provider": "gophercorp",
"service": "ec2",
"operating_system": "linux",
"availability_zone": "us-east-1a"
}
]
}'
{
"Status": "Registered",
"Entries": 1
}
gophercorpShow Entry Properties
0.020422ONDEMANDt3.smallus-east-1us-east-1alinuxgophercorpec2, ComputeEnginecurl -X POST http://localhost:8080/marketplace/providers \
-H "Authorization: 3fd8b6a4-137b-4b0b-8aa9-6d5726e88cbe" \
-H "Content-Type: application/json" \
-d '{
"name": "gophercorp",
"entries": [
{
"cost_per_hour": 0.0204,
"cpu_cores": 2,
"ram_gb": 2,
"usage_type": "ONDEMAND",
"instance_type": "t3.small",
"region": "us-east-1",
"raw_pricing_data": {},
"provider": "gophercorp",
"service": "ec2",
"operating_system": "linux",
"availability_zone": "us-east-1a"
}
]
}'
{
"Status": "Registered",
"Entries": 1
}
Was this page helpful?
curl -X POST http://localhost:8080/marketplace/providers \
-H "Authorization: 3fd8b6a4-137b-4b0b-8aa9-6d5726e88cbe" \
-H "Content-Type: application/json" \
-d '{
"name": "gophercorp",
"entries": [
{
"cost_per_hour": 0.0204,
"cpu_cores": 2,
"ram_gb": 2,
"usage_type": "ONDEMAND",
"instance_type": "t3.small",
"region": "us-east-1",
"raw_pricing_data": {},
"provider": "gophercorp",
"service": "ec2",
"operating_system": "linux",
"availability_zone": "us-east-1a"
}
]
}'
{
"Status": "Registered",
"Entries": 1
}