Skip to main content

workspace_api_export

Creates, updates, deletes, gets or lists a workspace_api_export resource.

Overview

Nameworkspace_api_export
TypeResource
Idazure.api_management.workspace_api_export

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResourceId of the API which was exported.
formatstringFormat in which the API Details are exported to the Storage Blob with Sas Key valid for 5 minutes. Known values are: "swagger-link-json", "wadl-link-json", "wsdl-link+xml", and "openapi-link". (swagger-link-json, wadl-link-json, wsdl-link+xml, openapi-link)
valueobjectThe object defining the schema of the exported API Detail.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, workspace_id, api_id, subscription_id, format, exportGets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes.

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
api_idstringAPI revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. Required.
exportstringQuery parameter required to export the API details. "true" Required.
formatstringFormat in which to export the Api Details to the Storage Blob with Sas Key valid for 5 minutes. Known values are: "swagger-link", "wsdl-link", "wadl-link", "openapi-link", and "openapi+json-link". Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
workspace_idstringWorkspace identifier. Must be unique in the current API Management service instance. Required.

SELECT examples

Gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes.

SELECT
id,
format,
value
FROM azure.api_management.workspace_api_export
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND api_id = '{{ api_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND format = '{{ format }}' -- required
AND export = '{{ export }}' -- required
;