Ana içeriğe geç

Get RLCL

Endpoint

GET /apiops/projects/{projectName}/rlcl/{rlclName}/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
rlclNamestringYesRLCL name

Response

Success Response (200 OK)

The requested RLCL is returned as the single element of resultList.

{
"status": "SUCCESS",
"resultList": [
{
"name": "PartnerLimits",
"description": "Rate limits for partner credentials",
"enabled": true,
"executionOrder": "BEFORE_API_PROXY",
"cacheConnectionTimeoutInSeconds": 3,
"cacheErrorHandlingType": "FAIL",
"timeIntervalWindowType": "FIXED",
"showRateLimitStatisticsInResponseHeader": false,
"identitySource": "AUTH_RESOLVED",
"targetVariable": null,
"targetAudienceRuleList": [
{
"operator": "EQ",
"value": "partner-app"
}
],
"outOfTargetAction": "GENERAL_QUOTA",
"generalQuotaMode": "TOTAL",
"generalQuotaPermittedMessageCount": 1000,
"generalQuotaTimeIntervalPeriodLength": 1,
"generalQuotaTimeInterval": "ONE_HOUR",
"credentialNameList": [
"partner-user"
],
"endpointRateLimitList": [
{
"apiProxyName": "PaymentAPI",
"endpointId": "6690c1f2e4b0a1c2d3e4f5a6",
"endpointName": "createPayment",
"permittedMessageCount": 100,
"timeIntervalPeriodLength": 1,
"timeInterval": "ONE_MINUTE",
"enabled": true
}
],
"condition": {
"conditionRuleList": [
{
"conditionCriteria": "AND",
"conditionRuleList": []
}
]
}
}
],
"resultCount": 1
}

Response Fields

FieldTypeDescription
namestringRLCL name
descriptionstringRLCL description, null when not set
enabledbooleanWhether the RLCL is active
executionOrderenumBEFORE_API_PROXY, AFTER_API_METHOD, ... Forced to AFTER_API_METHOD when identitySource=AUTH_RESOLVED
cacheConnectionTimeoutInSecondsintegerCache connection timeout used while counting
cacheErrorHandlingTypeenumFAIL or IGNORE - behaviour when the cache is unreachable
timeIntervalWindowTypeenumFIXED or SLIDING
showRateLimitStatisticsInResponseHeaderbooleanWhether rate limit statistics are added to response headers
identitySourceenumVARIABLE (resolved from targetVariable) or AUTH_RESOLVED (username/key resolved by the authentication policy)
targetVariableobjectVariable definition used to resolve the identity; null when identitySource=AUTH_RESOLVED
targetAudienceRuleListarray[object]Operator + value rules evaluated with OR semantics against the resolved identity
outOfTargetActionenumBLOCK or GENERAL_QUOTA - behaviour for requests outside the target audience
generalQuotaModeenumTOTAL or PER_IDENTITY
generalQuotaPermittedMessageCountintegerPermitted message count for the general quota
generalQuotaTimeIntervalPeriodLengthintegerTime interval period length for the general quota
generalQuotaTimeIntervalenumTime interval unit for the general quota
credentialNameListarray[string]Usernames of the credentials attached to this RLCL. Attachments whose credential no longer exists are omitted, so the list can be sent back as-is to the credential add/update endpoints
endpointRateLimitListarray[object]Endpoint rate limits defined in this RLCL, addressed by apiProxyName + endpointName
conditionobjectCondition of the RLCL

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "RLCL (PartnerLimits) is not found!"
}

or

{
"status": "FAILURE",
"resultMessage": "rlclName value can not be empty!"
}

cURL Example

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

Notes and Warnings

  • Round-trip friendly: The returned shape mirrors what the create and update endpoints accept, so a GET result can be edited and sent back. Endpoint rate limits carry apiProxyName (not the internal API proxy ID) exactly like the Update Endpoints body expects
  • apiProxyName resolution: When an endpoint rate limit points to an API proxy that no longer exists, apiProxyName comes back as null while the rest of the entry is still returned
  • Read-only: This endpoint does not modify anything and does not trigger a deployment

Permissions

  • User must have IDENTITY + VIEW permission in the project