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:
TierSpecify the tier of the service. Options include: 'basic', 'standard', and 'premium'.PublisherNameSpecify the name of the publisher.PublisherEmailSpecify the email of the publisher.
VnetTypeSpecify the type of vnet for the service. Options include: 'none', 'internal', and 'external'. If selecting either 'internal' or 'external', make sure to set theTierto 'premium'.VnetResourceGroupResource group of the Virtual NetworkVnetNameName of the Virtual NetworkVnetSubnetNameName of the Virtual Network SubnetAppInsightsResourceGroupResource group of the Application Insights instanceAppInsightsNameName 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:
apiServiceThe name of the API Management service to manageapiIdSpecify an ID for the APIpropertiesapiRevisionDescribes the Revision of the API. If no value is provided, default revision 1 is createdapiRevisionDescriptionDescription of the API RevisionapiVersionIndicates the Version identifier of the API if the API is versionedapiVersionDescriptionDescription of the API VersionapiVersionSetAPI Version Set contains the common configuration for a set of API versionsidIdentifier for existing API Version Set. Omit this value to create a new Version Set.nameThe display Name of the API Version Set.descriptionDescription of API Version Set.
apiVersionSetIDA resource identifier for the related ApiVersionSetdescriptionDescription of the APIdisplayNameDisplay name for the API. Must be 1 to 300 characters longformatFormat of the Content in which the API is getting imported. Possible values include: 'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink', 'Openapi', 'Openapijson', 'OpenapiLink'isCurrentIndicate if this API revision is the current revisionisOnlineIndicate if this API is accessible via the gatewaypathPath for the APIprotocolsDescribes on which protocols the operations in this API can be invoked. Possible values are: 'http' or 'https'serviceURLAbsolute URL of the backend service implementing this API. Cannot be more than 2000 characters longsourceAPIIDAPI identifier of the source APIsubscriptionRequiredSpecify whether an API or Product subscription is required for accessing the API
You can follow the steps here to deploy, view and delete resources.