The API Management suite is made up of the following operators:
- API Management Service
- API Management API
Learn more about Azure API Management here.
The API Management Service deploys an API Management instance into a specified resource group at the specified location. It also provides the option to link to an Application Insights instance for logging, and to place the API Management instance in a specified Virtual Network.
Here is a sample YAML to provision an API Management Service.
The spec consists of the following fields:
Tier
Specify the tier of the service. Options include: 'basic', 'standard', and 'premium'.PublisherName
Specify the name of the publisher.PublisherEmail
Specify the email of the publisher.
VnetType
Specify the type of vnet for the service. Options include: 'none', 'internal', and 'external'. If selecting either 'internal' or 'external', make sure to set theTier
to 'premium'.VnetResourceGroup
Resource group of the Virtual NetworkVnetName
Name of the Virtual NetworkVnetSubnetName
Name of the Virtual Network SubnetAppInsightsResourceGroup
Resource group of the Application Insights instanceAppInsightsName
Name of the Application Insights instance
The API Management API Operator creates an API with the specified properties in the specified API Management service.
Here is a sample YAML to provision an API Management API.
The spec consists of the following fields:
apiService
The name of the API Management service to manageapiId
Specify an ID for the APIproperties
apiRevision
Describes the Revision of the API. If no value is provided, default revision 1 is createdapiRevisionDescription
Description of the API RevisionapiVersion
Indicates the Version identifier of the API if the API is versionedapiVersionDescription
Description of the API VersionapiVersionSet
API Version Set contains the common configuration for a set of API versionsid
Identifier for existing API Version Set. Omit this value to create a new Version Set.name
The display Name of the API Version Set.description
Description of API Version Set.
apiVersionSetID
A resource identifier for the related ApiVersionSetdescription
Description of the APIdisplayName
Display name for the API. Must be 1 to 300 characters longformat
Format of the Content in which the API is getting imported. Possible values include: 'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink', 'Openapi', 'Openapijson', 'OpenapiLink'isCurrent
Indicate if this API revision is the current revisionisOnline
Indicate if this API is accessible via the gatewaypath
Path for the APIprotocols
Describes on which protocols the operations in this API can be invoked. Possible values are: 'http' or 'https'serviceURL
Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters longsourceAPIID
API identifier of the source APIsubscriptionRequired
Specify whether an API or Product subscription is required for accessing the API
You can follow the steps here to deploy, view and delete resources.