TheDocumentation Index
Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
Use this file to discover all available pages before exploring further.
endorctl api command allows you to interact with the Endor Labs API directly through the command line interface.
Usage
The syntax of theendorctl api command is:
endorctl api command supports the following subcommands:
createcreates a specified object in a namespace.deletedeletes a specified object in a namespace.getgets a specified object in a namespace.listlists a specified group of objects in a namespace.updateupdates a specified object in a namespace.
Flags and variables
Theendorctl api subcommands support the following flags, unless specified otherwise:
Commonly used resource types
The following table lists resource types that are commonly used in the API. See resource kind for more information.Resource kinds are case sensitive.
endorctl api create
Theendorctl api create command creates an object of a specified resource type.
endorctl api create interactive mode
- Use
--interactiveor-ito create an object with an interactive code editor.- Define your editor using
export EDITOR=<editor>where the editor is the command you use to edit files. For example,export EDITOR=viallows you to edit in vi andexport EDITOR=codeopens the file with the code command in VS Code.
- Define your editor using
endorctl api create examples
To create a package manager integration that uses the repositoryhttps://example.replaceme.com for dependency resolution in Python with the top priority for dependency resolution use the following command.
endorctl api delete
Theendorctl api delete command deletes a given object of a specified resource type.
endorctl api delete example
Use the following command to delete the project with the UUID, ‘62aa1cfadfa47d9ccb754d22’, that is no longer needed.endorctl api get
Theendorctl api get command retrieves a given object of a specified resource type.
endorctl api get examples
- Get a specific project by its UUID.
- Get a specific package version.
endorctl api list
Theendorctl api list command lists all objects of a specified resource type, based on the specified filters, field-masks and/or other options.
endorctl api list flags and variables
Theendorctl api list command supports the following additional flags and environment variables:
endorctl api list examples
Use the--filter flag to customize your query and the --field-mask flag to limit the fields returned.
For example, run the following command to list the description and the target dependency name for all findings in a given project.
endorctl api update
endorctl api update interactive mode
- Use
--interactiveor-ito update an object with an interactive code editor.- Define your editor using
export EDITOR=<editor>where the editor is the command you use to edit files. For example,export EDITOR=viallows you to edit in vi andexport EDITOR=codeopens the file with the code command in VS Code. - Specify which fields you want to update using the
--field-maskparameter. If this is not set, endorctl will try to update all fields.
- Define your editor using