POST /public-compute
https://api.nephosec.com/public-compute/v1
Resource Description
Scan cloud compute resources for public accessibility by providing a list of resource names.
Request Headers
accept: application/json
x-api-key: <api-key>
Request Body (Full Port Scan)
{
"Company": "company-name",
"Name": "compute-instance-name",
"Provider": "cloud-provider",
"ResourceName": "test resource",
"Region": "test region",
"Account": "cloud-account-id",
"Email": ["email1@domain.com", "email2@domain.com", "email3@domain.com"],
"Ip": "127.0.0.1",
"Type": "FULL",
"Subtype": "S_SVC"
}
Request Body (Single Port Scan)
{
"Company": "company-name",
"Name": "compute-instance-name",
"Provider": "cloud-provider",
"ResourceName": "test resource",
"Region": "test region",
"Account": "cloud-account-id",
"Email": ["email1@domain.com", "email2@domain.com", "email3@domain.com"],
"Ip": "127.0.0.1",
"Type": "SNGL",
"Subtype": "S_SVC",
"Port": 80
}
| Key | Value | Data Type |
|---|---|---|
| Company | "my-company-name" | string |
| Name | "my-cloud-resource" | string |
| Provider | "aws" OR "azure" OR "gcp" OR "gce" | string |
| Account | "aws-account-id" OR "azure-storage-account-name" | string |
| ["aws-admin@domain.com", "azure-admin@domain.com", "gcp-admin@domain.com"] | list of strings | |
| ResourceName | "my-resource-name" | string |
| Region | "resource-region" | string |
| Ip | "1.2.3.4" | string |
| Type | "FULL" OR "SNGL" | string |
| Subtype | "S_OPEN" OR "S_SVC" OR "S_FULL" | string |
| Port (optional) | 80 | integer |
Example CURL request:
curl -X POST "https://api.nephosec.com/public-compute/public-compute" -H "accept: application/json" -H "x-api-key: <your-api-key-here>" -D {
"Company": "Test Company",
"Email": [
"email1@company.com", "email2@company.com", "email3@company.com"
],
"Ip": "127.0.0.1",
"Type": "SNGL",
"Subtype": "S_SVC",
"Account": "test account",
"Provider": "test provider",
"ResourceName": "test resource",
"Region": "test region"
"Port": 80
}
Example response:
200 OK