Ana içeriğe geç

List Objects of a Type

Endpoint

GET /apiops/projects/{projectName}/export-import/{type}/objects/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
typestringYesExport/import type, case-insensitive. See List Supported Types

Query Parameters

ParameterTypeRequiredDefaultDescription
filterstringNoReturns only the objects whose name contains this text

Response

Success Response (200 OK)

{
"status": "SUCCESS",
"resultList": [
{"name": "openai-prod"},
{"name": "anthropic-prod"}
],
"resultCount": 2
}

For a type that covers several kinds of object, each entry also carries its kind:

{
"status": "SUCCESS",
"resultList": [
{"name": "apinizer", "kind": "CERTIFICATE"},
{"name": "apinizer", "kind": "KEY_STORE"},
{"name": "signing-jwk", "kind": "JWK"}
],
"resultCount": 3
}

Response Fields

FieldTypeDescription
namestringThe value to place in the names list of the export call
kindstringWhich entity this object is. Present only for the multi-kind types (CERTIFICATE, API_CREATOR, IDENTITY_SERVICE)

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "Unknown export/import type (LLM_PROVIDERS)! Supported types: API_PROXY, PROXY_GROUP, API_CREATOR, ..."
}

Common Causes

  • The type path variable is not one of the supported types
  • Project does not exist or user does not have access

Error Response (401 Unauthorized)

{
"status": "FAILURE",
"resultMessage": "Token is not valid!"
}

cURL Example

Example 1: List LLM Providers

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

Example 2: Filter by Name

curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/export-import/GLOBAL_POLICY/objects/?filter=throttling" \
-H "Authorization: Bearer YOUR_TOKEN"

Example 3: See the Kinds Behind the Certificate Type

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

Notes and Warnings

  • This is the discovery step of an export: the name values returned here are exactly what Export Objects expects in its names list.
  • Duplicate names are visible here: if the same name appears twice with the same kind, that name cannot address either object and the export will refuse it. Rename one of them.
  • Duplicate names across kinds are addressable: when the same name appears with two different kinds, pass the kind field in the export call to select one.
  • Built-in objects are included: types that ship with built-in entries (AI model definitions, privacy patterns and similar) list those entries too.

Permissions

  • User must have read access to the type's asset category in the project, or project-wide access