api_version_sets
Creates, updates, deletes, gets or lists a api_version_sets
resource.
Overview
Name | api_version_sets |
Type | Resource |
Id | azure.api_management.api_version_sets |
Fields
- vw_api_version_sets
- api_version_sets
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
display_name | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
versionSetId | text | field from the properties object |
version_header_name | text | field from the properties object |
version_query_name | text | field from the properties object |
versioning_scheme | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of an API Version Set. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, serviceName, subscriptionId, versionSetId | Gets the details of the Api Version Set specified by its identifier. |
list_by_service | SELECT | resourceGroupName, serviceName, subscriptionId | Lists a collection of API Version Sets in the specified service instance. |
create_or_update | INSERT | resourceGroupName, serviceName, subscriptionId, versionSetId | Creates or Updates a Api Version Set. |
delete | DELETE | If-Match, resourceGroupName, serviceName, subscriptionId, versionSetId | Deletes specific Api Version Set. |
update | UPDATE | If-Match, resourceGroupName, serviceName, subscriptionId, versionSetId | Updates the details of the Api VersionSet specified by its identifier. |
SELECT
examples
Lists a collection of API Version Sets in the specified service instance.
- vw_api_version_sets
- api_version_sets
SELECT
description,
display_name,
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
version_header_name,
version_query_name,
versioning_scheme
FROM azure.api_management.vw_api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.api_management.api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new api_version_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.api_version_sets (
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ versionSetId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: versioningScheme
value: string
- name: description
value: string
- name: versionQueryName
value: string
- name: versionHeaderName
value: string
UPDATE
example
Updates a api_version_sets
resource.
/*+ update */
UPDATE azure.api_management.api_version_sets
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND versionSetId = '{{ versionSetId }}';
DELETE
example
Deletes the specified api_version_sets
resource.
/*+ delete */
DELETE FROM azure.api_management.api_version_sets
WHERE If-Match = '{{ If-Match }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND versionSetId = '{{ versionSetId }}';