List Keystores

Overview

Retrieves all keystores for a specified project. Keystores are containers for cryptographic keys and certificates used for secure communication and authentication.

Endpoint

GET /apiops/projects/{projectName}/keystores/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

Header Value Required
Authorization Bearer {token} Yes

Path Parameters

Parameter Type Required Description
projectName string Yes Project name

Query Parameters

None.

Response

Success Response (200 OK)

{
  "success": true,
  "resultList": [
    {
      "name": "my-keystore",
      "description": "Keystore for API security",
      "projectId": "project-id",
      "keyStoreEnvironmentList": [
        {
          "environmentName": "production",
          "type": "JKS",
          "file": "base64-encoded-keystore-content"
        }
      ]
    }
  ]
}

Response Fields

Field Type Description
success boolean Indicates if the request was successful
resultList array[object] List of keystores

Keystore Object

Field Type Description
name string Keystore name
description string Keystore description
projectId string Project ID where keystore belongs
keyStoreEnvironmentList array[object] List of keystore environments

Keystore Environment Object

Field Type Description
environmentName string Environment name
type string Keystore type (e.g., JKS, PKCS12)
file string Base64-encoded keystore file content

cURL Example

curl -X GET \
  "https://demo.apinizer.com/apiops/projects/MyProject/keystores/" \
  -H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Keystore Content:
    • Keystore file content is included in the response
    • Handle keystore data securely
  • Multiple Environments:
    • Each keystore can be deployed to multiple environments
    • Each environment has separate keystore configuration
  • Permissions:
    • Requires ROLE_API_SECURITY permission
    • User must have access to the project