AISpectra API Details
<POST> Supply Chain Attacks
1min
The Below parameters are for supply chain attacks. To know more about different input parameters and how to use API see AI/ML Supply Chain
This api perform static assessment of files present in repos, local or s3 bucket for possible vulnerability
POST
Request
Header Parameters
x-api-key
required
String
Enter your API key
Org_id
required
String
Enter your organization id
Body Parameters
repo_type
required
String
The repo that need to be scanned e.g. github, huggingface, s3_bucket, file
repo_url
optional
String
Url of the repo to be scanned
branch_name
optional
String
branch of repository to scan. Default is 'main' branch.
depth
optional
Integer
Depth of commit to scan from repository. Default is 1, clone to latest.
model_id
optional
String
When repo_type is 'file', the parameter is must. "model_id" is received during generated model id API call.
aws_access_key_id
optional
String
When repo_type is "s3_bucket", this is must parameter.
aws_secret_access_key
optional
String
When repo_type is "s3_bucket", this is must parameter.
region
optional
String
When repo_type is "s3_bucket", this is must parameter.
bucket_name
optional
String
When repo_type is "s3_bucket", this is must parameter.
Updated 25 Nov 2024
Did this page help you?