Skip to main content

apis

Creates, updates, deletes, gets or lists an apis resource.

Overview

Nameapis
TypeResource
Idazure.api_center.apis

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
propertiesobjectThe resource-specific properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, workspaceName, apiNameReturns details of the API.
listselectsubscriptionId, resourceGroupName, serviceName, workspaceName$filterReturns a collection of APIs.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, workspaceName, apiNameCreates new or updates existing API.
deletedeletesubscriptionId, resourceGroupName, serviceName, workspaceName, apiNameDeletes specified API.

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.

NameDatatypeDescription
apiNamestringThe name of the API.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of Azure API Center service.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
workspaceNamestringThe name of the workspace.
$filterstringOData filter parameter.

SELECT examples

Returns details of the API.

SELECT
properties
FROM azure.api_center.apis
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND apiName = '{{ apiName }}' -- required
;

INSERT examples

Creates new or updates existing API.

INSERT INTO azure.api_center.apis (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
workspaceName,
apiName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ workspaceName }}',
'{{ apiName }}'
RETURNING
properties
;

DELETE examples

Deletes specified API.

DELETE FROM azure.api_center.apis
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND apiName = '{{ apiName }}' --required
;