backends
Creates, updates, deletes, gets or lists a backends
resource.
Overview
Name | backends |
Type | Resource |
Id | azure.api_management.backends |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_service
The response body contains the specified Backend entity.
Name | Datatype | Description |
---|---|---|
properties | object | Backend entity contract properties. |
Lists a collection of Backend entities.
Name | Datatype | Description |
---|---|---|
properties | object | Backend entity contract properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serviceName , backendId , subscriptionId | Gets the details of the backend specified by its identifier. | |
list_by_service | select | resourceGroupName , serviceName , subscriptionId | $filter , $top , $skip | Lists a collection of backends in the specified service instance. |
create_or_update | insert | resourceGroupName , serviceName , backendId , subscriptionId | If-Match | Creates or Updates a backend. |
update | update | resourceGroupName , serviceName , backendId , If-Match , subscriptionId | Updates an existing backend. | |
delete | delete | resourceGroupName , serviceName , backendId , If-Match , subscriptionId | Deletes the specified backend. | |
reconnect | exec | resourceGroupName , serviceName , backendId , subscriptionId | Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
If-Match | string | ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. |
backendId | string | Identifier of the Backend entity. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
$filter | string | | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br> |
$skip | integer (int32) | Number of records to skip. |
$top | integer (int32) | Number of records to return. |
If-Match | string | ETag of the Entity. Not required when creating an entity, but required when updating an entity. |
SELECT
examples
- get
- list_by_service
Gets the details of the backend specified by its identifier.
SELECT
properties
FROM azure.api_management.backends
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND backendId = '{{ backendId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
Lists a collection of backends in the specified service instance.
SELECT
properties
FROM azure.api_management.backends
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT
examples
- create_or_update
- Manifest
Creates or Updates a backend.
INSERT INTO azure.api_management.backends (
data__properties,
resourceGroupName,
serviceName,
backendId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ backendId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;
# Description fields are for documentation purposes
- name: backends
props:
- name: resourceGroupName
value: string
description: Required parameter for the backends resource.
- name: serviceName
value: string
description: Required parameter for the backends resource.
- name: backendId
value: string
description: Required parameter for the backends resource.
- name: subscriptionId
value: string
description: Required parameter for the backends resource.
- name: properties
value: object
description: |
Backend entity contract properties.
- name: If-Match
value: string
description: ETag of the Entity. Not required when creating an entity, but required when updating an entity.
UPDATE
examples
- update
Updates an existing backend.
UPDATE azure.api_management.backends
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND backendId = '{{ backendId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;
DELETE
examples
- delete
Deletes the specified backend.
DELETE FROM azure.api_management.backends
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND backendId = '{{ backendId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;
Lifecycle Methods
- reconnect
Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.
EXEC azure.api_management.backends.reconnect
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceName='{{ serviceName }}' --required,
@backendId='{{ backendId }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;