Class CortexConstants
java.lang.Object
org.jenkinsci.plugins.cortexcloud.shared.CortexConstants
Constants describing the confirmed Cortex CLI contract.
All values here were verified empirically against a live tenant. They
intentionally supersede earlier documentation-based assumptions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe downloaded binary is a static Go executable — no JRE/Java is required on the agent.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringBase URL of the tenant API, e.g.static final StringAPI key (secret).static final StringAPI key ID - a small integer (e.g.static final intError (bad args, license/service unavailable, etc.).static final intScan completed but FAILED policy (documented; to be confirmed against a blocking image).static final intScan completed and PASSED policy.static final StringRequired when the source is a tar archive; without it the CLI treats the path as an image reference.static final Stringdocker-archive (default) | oci-archive.static final StringCI build identifier.static final StringCI pipeline identifier.static final StringDocker daemon socket to connect to (note: NOT--docker-address).static final StringName assigned to the scanned image.static final Stringhuman-readable (default) | json.static final StringScan source, used by the tenant to scope source-based policies to CI scans.static final StringTimeout in seconds (CLI default: 60).static final StringControls how much scan data is uploaded to / retained by the tenant.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
-
Field Details
-
ENV_API_BASE_URL
Base URL of the tenant API, e.g.https://api-<tenant>.xdr.<region>.paloaltonetworks.com.- See Also:
-
ENV_API_KEY
API key (secret).- See Also:
-
ENV_API_KEY_ID
API key ID - a small integer (e.g. 158); maps to the x-xdr-auth-id header.- See Also:
-
HEADER_AUTH_ID
- See Also:
-
HEADER_AUTHORIZATION
- See Also:
-
CMD_IMAGE
- See Also:
-
CMD_SCAN
- See Also:
-
FLAG_ARCHIVE
Required when the source is a tar archive; without it the CLI treats the path as an image reference.- See Also:
-
FLAG_ARCHIVE_FORMAT
docker-archive (default) | oci-archive.- See Also:
-
FLAG_OUTPUT_FORMAT
human-readable (default) | json.- See Also:
-
FLAG_NAME
Name assigned to the scanned image.- See Also:
-
FLAG_DOCKER_HOST
Docker daemon socket to connect to (note: NOT--docker-address).- See Also:
-
FLAG_CI_PIPELINE_ID
CI pipeline identifier.- See Also:
-
FLAG_CI_BUILD_ID
CI build identifier.- See Also:
-
FLAG_TIMEOUT
Timeout in seconds (CLI default: 60).- See Also:
-
FLAG_SOURCE
Scan source, used by the tenant to scope source-based policies to CI scans.- See Also:
-
FLAG_UPLOAD_MODE
Controls how much scan data is uploaded to / retained by the tenant.- See Also:
-
ARCHIVE_FORMAT_DOCKER
- See Also:
-
ARCHIVE_FORMAT_OCI
- See Also:
-
OUTPUT_FORMAT_JSON
- See Also:
-
OUTPUT_FORMAT_HUMAN
- See Also:
-
EXIT_PASS
public static final int EXIT_PASSScan completed and PASSED policy.- See Also:
-
EXIT_FAIL
public static final int EXIT_FAILScan completed but FAILED policy (documented; to be confirmed against a blocking image).- See Also:
-
EXIT_ERROR
public static final int EXIT_ERRORError (bad args, license/service unavailable, etc.).- See Also:
-
DOWNLOAD_LINK_PATH
- See Also:
-
DOWNLOAD_PARAM_OS
- See Also:
-
DOWNLOAD_PARAM_ARCH
- See Also:
-
OS_LINUX
- See Also:
-
OS_DARWIN
- See Also:
-
OS_WINDOWS
- See Also:
-
ARCH_AMD64
- See Also:
-
ARCH_ARM64
- See Also:
-
CLI_BINARY_NAME
The downloaded binary is a static Go executable — no JRE/Java is required on the agent.- See Also:
-