Requesting Access with CLI
Learn how request access using the Apono CLI
The Apono CLI enables you to view, request, and receive permission to services, databases, and applications that are centrally managed via Apono.
Since requests for different integrations have specific requirements, we recommend using the following steps:
Use the interactive approach to make an initial integration request.
Create and save an alias with the request command displayed in the CLI.
Prerequisites
Apono Account
Grantee access to Apono You can verify that you have access by going to the Apono Portal or contacting your administrator to obtain a user account.
Access Flow Grantee
Inclusion in at least one access flow
Contact your administrator for more information.
Request access

Log in to Apono
Before you can make access requests via the Apono CLI, you must log in to your Apono account.
Follow these steps to log in:
In Terminal, initiate logging in to your Apono account. The Apono UI login screen will open in a new web browser tab.
apono login
In the web browser tab, log in to your Apono account. After successfully logging in to your account, the Authorized page will appear in a new browser tab.
Close both browser tabs.
Make an access request
Although each access request requires different details, the general workflow for all requests is similar.

Follow these steps to submit an access request:
In Terminal, enter
apono
to start the workflow. The What do you want to do? prompt appears.apono
Select Request new access and press the Enter key. The Select request type prompt appears.
Select an option and press the Enter key. A prompt appears.\
Request TypeDescriptionBundle
Access to a defined group of resources A bundle of access may be based on a role or specific project needs.
Integration
Access to a specific resource
Select an option for the prompt and for each of the subsequent prompts to request access. Each access request requires specific information. However, the last prompt to appear for all access requests is the Enter justification prompt.
Type a brief explanation to justify the access request and press the Enter key.
Access the resource.
Request Use Cases
Request and Immediate Access
An engineer needs access to all the Postgres databases in postgresql/dimi delete. SUPERUSER is the only permission level for the Postgres databases.
Follow these steps to submit an access request:
In Terminal, start the workflow. The What do you want to do? prompt appears.
apono
Select Request new access and press Enter. The Select request type prompt appears.
Select Integration and press the Enter key. A Select integration prompt appears.
Select the integration and press the Enter key. Since only one option exists for the resource type, this option is automatically chosen. The Select Database prompt appears.
Select one or several databases and press Enter key. Since only one option exists for the permissions, this option is automatically chosen. The Enter justification prompt appears.
Type a brief explanation to justify the access request and press the Enter key. After submitting a request the following information is displayed:
Request Command: CLI command for the request that can be used to request access again in the future or to create an alias.
apono requests create --integration "azure-aks/test" --resource-type "azure-aks-namespace" --permissions "admin" --permissions "edit" --resources "kube-system" --justification "Need access to this AKS namespace"
Status: Details of the request and its approval status.
Select Access Prompt: Prompt to gain access to the resource.
Select the access and press the Enter key. The Select how to use access prompt appears.
Select an access option and press the Enter key.\
OptionDescriptionConnect
Connects the user directly to the database Once you have connected to the database, you can make queries directly from the CLI prompt.
Instructions
Prints instructions to access the database to the screen
Manual Approval
An engineer needs admin and edit permissions for the AKS namespace, test/kube-system on azure-aks/test. This is the only AKS namespace in this environment.
Follow these steps to submit an access request:
In Terminal, start the workflow. The What do you want to do? prompt appears.
apono
Select Request new access and press the Enter key. The Select request type prompt appears.
Select Integration and press the Enter key. A Select integration prompt appears.
Select the integration and press the Enter key. The Select resource type prompt appears.
Select Namespace and press the Enter key. Since only one option exists, this option is automatically chosen. The Select permissions prompt appears.
Select one or several permissions and press the Enter key. The Enter justification prompt appears.
Type a brief explanation to justify the access request and press the Enter key.
After submitting a request the following information is displayed:
Request Command: CLI command for the request that can be used to request access again in the future or to create an alias.
apono requests create --integration "azure-aks/test" --resource-type "azure-aks-namespace" --permissions "admin" --permissions "edit" --resources "kube-system" --justification "Need access to this AKS namespace"
Status: Details of the request and its approval status. Once a request has been approved, you can connect to a resource. See: Resource Access.
Resource Access
An engineer who was previously granted access to a resource wants to connect to that resource.
Follow these steps to submit an access request:
In Terminal, start the workflow. The What do you want to do? prompt appears.
apono
Select Connect to a resource and press the Enter key. The Select how to use access prompt appears.
Select an access option and press the Enter key.
OptionDescriptionConnect
Connects the user directly to the database Once you have connected to the database, you can make queries directly from the CLI prompt.
Instructions
Prints instructions to access the database to the screen
Last updated
Was this helpful?