Ana içeriğe geç

Request Protocol Transformation Policy

General Information

Policy Type

policy-request-protocol-transformation

Important: This policy is automatically managed by the system. It is added to the API Proxy when SOAP/REST transformation is enabled during API Proxy creation. It cannot be added, updated, or deleted via API. It is only visible in the List Policies response.


List Policies

This policy appears in the List Policies response when an API Proxy has SOAP/REST transformation enabled.

Endpoint

GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/

Request

Headers

HeaderValue
AuthorizationBearer {token}

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name

Response

Success Response (200 OK)

{
"status": "SUCCESS",
"resultList": [
{
"apiProxy": {
"name": "MyAPI",
"requestPolicyList": [
{
"type": "policy-request-protocol-transformation",
"name": "rest-to-soap-transformation",
"description": "Transform REST requests to SOAP",
"active": true,
"policyCondition": null,
"errorMessageList": []
}
],
"responsePolicyList": [],
"errorPolicyList": []
}
}
],
"resultCount": 1
}

Policy Object Fields

FieldTypeDescription
typestring"policy-request-protocol-transformation"
namestringPolicy name
descriptionstringPolicy description
activebooleanWhether the policy is active
policyConditionobjectPolicy condition (null if not set)
errorMessageListarrayList of error messages

Note: This policy has no specific configuration fields beyond the base policy fields. The transformation mapping is managed automatically by the system based on the API Proxy's SOAP/REST configuration.

cURL Example

curl -X GET \
'https://api.apinizer.com/apiops/projects/my-project/apiProxies/my-api/policies/' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Add / Update / Delete Policy

Not Supported: This policy cannot be added, updated, or deleted via API. It is automatically managed by the system and is tied to the SOAP/REST transformation configuration of the API Proxy.

To enable or disable this policy, configure SOAP/REST transformation settings in the API Proxy configuration.