List Key Group Info
The API will fetch available SSH key group information.
Before you begin
Before attempting to list ssh key groups, make sure the user has access to view SSH key groups.
Request Structure
| Endpoint: | /ssh/key-group/info |
| Type: | GET |
| Sample URL: | https://<IP/HostName/TenantName>:<GWPORT>/avxapi/ssh/key-group/info?gwsource=externalTo understand the elements of the sample URL, click here. |
| Headers: | |
| Content-Type: | application/json |
| Name | Description |
|---|---|
| sessionId
|
(Mandatory) Session ID received after
login. Type: String Constraints: Required if username and password are not provided. |
| username
|
(Mandatory) AppViewX login username. Type: String Constraints: Required if sessionId is not provided. |
| password
|
(Mandatory) AppViewX login password. Type: String Constraints: Required if sessionId is not provided. |
| Content-Type
|
(Mandatory) Specifies the nature of the data in the
payload. Type: String Constraints: The value of the param should be ‘application/json’. |
| gwsource
|
(Mandatory) Source from which the request is
triggered. (E.g. external) Type: String |
| requestId
|
(Mandatory) Request Id of the bulk upload
request. Type: String |
| Payload
|
Empty Payload Type: Payload |
Response Structure
200 OK returns string of type application/json with the following body params.
| Name | Description |
|---|---|
| response | Contains the response as list of
sshKeyGroupInfo Type: sshKeyGroupInfo |
| message | “Tags retrieved successfully" Type: String |
| appStatusCode | null. Type: String |
| tags | More info in case of failure response. |
| Name | Description |
|---|---|
| groupNameIds | (Mandatory) List of
keyGroupNameAndId. Type: String |
| Name | Description |
|---|---|
| name | Name of the key group Type: String |
| _id |
ID of the key group. Type: String |
Status Codes
| HTTP Status code | appStatusCode | Message and Possible remediation |
|---|---|---|
| 200 OK | NA | Success |
| 401 Unauthorized | AVX_GW_003 | Authentication failed, reason - Invalid
Credentials Possible remediation: Ensure that valid username and password or valid sessionId is provided as the header param. |
Sample Request/Response
To retrive SSH key group information using /key-group/info API.
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/ssh/key-group/info?gwsource=external{}{
"response": {
"groupNameIds": [
{
"name": "Default_Key_Group",
"_id": "5767bcef3465bfbf73e44727"
}
]
},
"message": "Fetched key group names and ids successfully",
"appStatusCode": null,
"tags": null,
"headers": null
}
Reference
- IP/HostName/TenantName: Replace with the actual IP address, hostname,
or tenant name based on the specific configuration in AppViewX.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
The IP address will be included in the endpoint URL for an on-prem deployment.
- HostName: A human-readable label assigned to a device (host)
on a network
The hostname will be included in the endpoint URL for an on-prem deployment.
- TenantName: An identifier label for a tenant given to
indicate which tenant's data the API request will
access/modify
The tenant name will be included in the endpoint URL for a SaaS deployment.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
- GWPORT: AppViewX gateway port A gateway port refers to a network port through which data is sent and received to communicate with a gateway in an on-prem deployment.Note: GWPORT is not required for SaaS setups.
Example: 31443
- avxapi: Path parameter value (static) that is part of the endpoint's URL
- Endpoint: Endpoint of the API, for example: /ssh/host/create
- gwsource: Source or origin of a gateway, for example: external.
