Skip to content

Commit

Permalink
Merge pull request #711 from PaloAltoNetworks/24.7.3
Browse files Browse the repository at this point in the history
Cloud Security 24.7.3 API Documentation
  • Loading branch information
AbiMano4688 authored Jul 26, 2024
2 parents 6155c2a + cdc3685 commit d72ddd4
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 43 deletions.
2 changes: 1 addition & 1 deletion openapi-specs/cspm/AlertRules.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"type": "boolean"
},
"policies": {
"description": "List of specific policies to scan",
"description": "List of specific policy IDs to scan",
"items": {
"type": "string"
},
Expand Down
188 changes: 149 additions & 39 deletions openapi-specs/cspm/AssetMicroService.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,46 @@
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Problem"
}
}
}
},
"403": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetResponse"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetResponse"
}
}
}
}
},
"x-public": "true",
Expand Down Expand Up @@ -134,30 +174,39 @@
"description": "Request object for id translation"
},
"Problem": {
"required": [
"createdTs",
"parameters"
],
"type": "object",
"properties": {
"instance": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string",
"format": "uri"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"title": {
"type": "string"
},
"status": {
"$ref": "#/components/schemas/StatusType"
"type": "integer",
"format": "int32"
},
"detail": {
"type": "string"
},
"instance": {
"type": "string",
"format": "uri"
},
"createdTs": {
"type": "integer",
"format": "int64"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "object"
}
}
}
},
Expand Down Expand Up @@ -317,7 +366,7 @@
"assetId": {
"type": "string",
"description": "Unified Asset Id or RRN (Restricted Resource Name)",
"example": "[rrn:xxx:xx:xx-xx-x:xxx:xxx:x-xxxx or unified-asset-id]"
"example": "rrn:xxx:xx:xx-xx-x:xxx:xxx:x-xxxx or unified-asset-id"
},
"type": {
"type": "string",
Expand Down Expand Up @@ -355,22 +404,7 @@
"type": "array",
"description": "External Finding Types",
"items": {
"type": "string",
"description": "External Finding Types",
"enum": [
"HOST_VULNERABILITY_CVE",
"CONTAINER_IMAGE_VULNERABILITY_CVE",
"VIRTUAL_IMAGE_VULNERABILITY_CVE",
"SERVERLESS_VULNERABILITY",
"PACKAGE_VULNERABILITY",
"COMPLIANCE_CIS",
"GUARD_DUTY_HOST",
"GUARD_DUTY_IAM",
"INSPECTOR_RBA",
"INSPECTOR_SBP",
"NETWORK_REACHABILITY",
"AZURE_SECURITY_CENTER_ALERTS"
]
"$ref": "#/components/schemas/FindingType"
}
},
"riskFactors": {
Expand Down Expand Up @@ -445,7 +479,7 @@
},
"vulnerabilityInfoTypeId": {
"type": "string",
"description": "CVE Idf, or Package Id or Layer Id. The value needs to be fetched from one of the group by api calls"
"description": "CVE Id, or Package Id or Layer Id. The value needs to be fetched from one of the group by api calls"
},
"vulnerabilityInfoType": {
"type": "string",
Expand Down Expand Up @@ -476,6 +510,71 @@
},
"description": "List of Attack Path Ids"
},
"FindingType": {
"type": "object",
"description": "External Finding Types",
"oneOf": [
{
"type": "string",
"enum": [
"COMPLIANCE_CIS",
"GUARD_DUTY_HOST",
"GUARD_DUTY_IAM",
"INSPECTOR_RBA",
"INSPECTOR_SBP",
"NETWORK_REACHABILITY",
"AZURE_SECURITY_CENTER_ALERTS",
"UNCLASSIFIED",
"COMMAND_AND_CONTROL",
"CREDENTIAL_ACCESS",
"CROSS_ACCOUNT_TRUST",
"DATA_EXFILTRATION",
"DEFENSE_EVASION",
"DISCOVERY",
"HIGH_PRIVILEGED_ROLE",
"INITIAL_ACCESS",
"INTERNET_EXPOSURE",
"KEYS_AND_SECRETS",
"LATERAL_MOVEMENT",
"MALWARE",
"MFA",
"MISCONFIGURATION",
"NETWORK_ANOMALY",
"PRIVILEGE_ESCALATION",
"RECONNAISSANCE",
"RESOURCE_HIJACKING",
"SSH_BRUTE_FORCE",
"UNAUTHORIZED_ACCESS",
"UNENCRYPTED_DATA",
"UNUSED_PRIVILEGES",
"USER_ANOMALY",
"WEAK_PASSWORD",
"SENSITIVE_DATA_EXPOSURE",
"INJECTIONS",
"VULNERABILITY_SCANNING",
"SHELLSHOCK",
"KNOWN_BOTS",
"UNKNOWN_BOTS",
"VIRTUAL_PATCHES",
"WEB_ATTACK",
"BOT_ACTIVITY",
"WEB_SCRAPING",
"CUSTOM",
"VULNERABILITY"
]
},
{
"type": "string",
"enum": [
"HOST_VULNERABILITY_CVE",
"CONTAINER_IMAGE_VULNERABILITY_CVE",
"VIRTUAL_IMAGE_VULNERABILITY_CVE",
"SERVERLESS_VULNERABILITY",
"PACKAGE_VULNERABILITY"
]
}
]
},
"WorkLoadFilters": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -560,6 +659,10 @@
"alertTime": {
"type": "integer",
"format": "int64"
},
"hyperionPolicy": {
"type": "boolean",
"writeOnly": true
}
}
},
Expand Down Expand Up @@ -661,9 +764,6 @@
"items": {
"type": "object"
}
},
"assetJson": {
"type": "object"
}
}
},
Expand Down Expand Up @@ -854,6 +954,13 @@
"additionalProperties": {
"type": "object"
}
},
"additionalInformation": {
"type": "object",
"additionalProperties": {
"type": "object"
},
"writeOnly": true
}
}
},
Expand Down Expand Up @@ -888,7 +995,7 @@
"$ref": "#/components/schemas/GraphQLErrorDebugInfo"
},
"classification": {
"type": "string"
"type": "object"
}
}
},
Expand Down Expand Up @@ -1233,7 +1340,7 @@
},
"relationshipCounts": {
"type": "integer",
"format": "int32"
"format": "int64"
},
"vulnerabilityCounts": {
"type": "object"
Expand Down Expand Up @@ -1271,7 +1378,7 @@
"packageInfo": {
"type": "object"
},
"vulnerabilitiesAggregates": {
"vulnerabilityAggregates": {
"type": "object"
},
"alertsCount": {
Expand Down Expand Up @@ -1325,17 +1432,20 @@
"renderAttribute": {
"$ref": "#/components/schemas/RenderAttribute"
},
"timeline": {
"ipAddresses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TimelineAttribute"
"type": "string"
}
},
"ipAddresses": {
"timeline": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/components/schemas/TimelineAttribute"
}
},
"trueInternetExposure": {
"type": "string"
}
},
"description": "Asset Domain Service Object type."
Expand Down
Loading

0 comments on commit d72ddd4

Please # to comment.