Traffic Sources VPCs
Return a list of all Cloud Sources. Supports filtering by flowtype, flowresource, traffictype, and logtype (all together or separate).
Filter by flow type (e.g., aws, azure, gcp, etc.)
Filter by flow resource (e.g., s3, kinesis, etc.)
Filter by traffic type (e.g., dns, flow)
Filter by log type (e.g., gcp-dns-query-log, etc.)
List of VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
]
}Create a VPC from the supplied object. Do NOT submit an ID. IDs are auto generated and immutable.
List of VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
POST /api/v1/vpc HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
]
}Fetches a specific VPC from the ID supplied in the path.
Numeric ID of the VPC to get
Object of a VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": {
"id": "731612398",
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
}Update a VPC given the provided object. This does not do a diff. You must send the complete object.
The ID of the VPC to be updated
List of VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/vpc/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 361
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
]
}Deletes the VPC and shuts down the kinesis feed.
The ID of the VPC to be retrieved
An empty array
No content
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
DELETE /api/v1/vpc/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Enables flow polling for the indicated VPC
Numeric ID of the VPC to get
List of VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/vpc/{id}/enable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
]
}Disables flow polling for the indicated VPC
Numeric ID of the VPC to get
List of VPCs Requested
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/vpc/{id}/disable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"flowtype": "aws",
"flowresource": "kinesis",
"traffictype": "flow",
"name": "prod-us-east-1",
"enabled": true,
"samplerate": 1,
"region": "us-east-1",
"shardid": "shardId-000000000000",
"stream": "flowlogstream",
"tags": [
"us-traffic",
"prod-traffic"
],
"awsauthtype": "AccessKey",
"accesskeyid": "text",
"accesssecret": "text",
"role": {
"arn": "arn:aws:iam::464179634201:role/Extension"
}
}
]
}Returns an array of vpc status objects.
List of VPC States.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc/status HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 892079680,
"name": "prod-vpc-east",
"flowtype": "azure",
"flowresource": "blobstorage",
"enabled": true,
"time": "2022-10-18T17:53:53Z",
"success": true,
"attempt": 0,
"created": "2022-10-18T17:53:53Z",
"lastupdated": "2022-10-18T17:53:53Z",
"error": [
"Invalid credentials"
],
"progress": [
{
"step": "COS Session Created",
"description": "Create client session connection to cloud object storage.",
"error": "text",
"status": "pass"
}
]
}
]
}Fetches a specific VPC from the ID supplied in the path.
The ID of the vpc to be returned.
List of VPC States.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc/status/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": 892079680,
"name": "prod-vpc-east",
"flowtype": "azure",
"flowresource": "blobstorage",
"enabled": true,
"time": "2022-10-18T17:53:53Z",
"success": true,
"attempt": 0,
"created": "2022-10-18T17:53:53Z",
"lastupdated": "2022-10-18T17:53:53Z",
"error": [
"Invalid credentials"
],
"progress": [
{
"step": "COS Session Created",
"description": "Create client session connection to cloud object storage.",
"error": "text",
"status": "pass"
}
]
}
]
}Return all regions for each provider.
An object which contains response metadata information and a data object containing the region array.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc/regions HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "aws_ap-east-1",
"description": "Asia Pacific (Hong Kong)",
"label": "ap-east-1",
"provider": "aws",
"region": "us-east-1"
}
]
}Returns VPC regions for a specific provider/flowtype.
Flow Type to filter the VPC regions list by
An object which contains response metadata information and a data object containing the region array.
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/vpc/regions/{flowtype} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "aws_ap-east-1",
"description": "Asia Pacific (Hong Kong)",
"label": "ap-east-1",
"provider": "aws",
"region": "us-east-1"
}
]
}Last updated