workspace_api_version_sets
Creates, updates, deletes, gets or lists a workspace_api_version_sets
resource.
Overview
Name | workspace_api_version_sets |
Type | Resource |
Id | azure.api_management.workspace_api_version_sets |
Fields
- vw_workspace_api_version_sets
- workspace_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 |
workspaceId | 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, workspaceId | Gets the details of the Api Version Set specified by its identifier. |
list_by_service | SELECT | resourceGroupName, serviceName, subscriptionId, workspaceId | Lists a collection of API Version Sets in the specified workspace with a service instance. |
create_or_update | INSERT | resourceGroupName, serviceName, subscriptionId, versionSetId, workspaceId | Creates or Updates a Api Version Set. |
delete | DELETE | If-Match, resourceGroupName, serviceName, subscriptionId, versionSetId, workspaceId | Deletes specific Api Version Set. |
update | UPDATE | If-Match, resourceGroupName, serviceName, subscriptionId, versionSetId, workspaceId | Updates the details of the Api VersionSet specified by its identifier. |
SELECT
examples
Lists a collection of API Version Sets in the specified workspace with a service instance.
- vw_workspace_api_version_sets
- workspace_api_version_sets
SELECT
description,
display_name,
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
version_header_name,
version_query_name,
versioning_scheme,
workspaceId
FROM azure.api_management.vw_workspace_api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
SELECT
properties
FROM azure.api_management.workspace_api_version_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new workspace_api_version_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.workspace_api_version_sets (
resourceGroupName,
serviceName,
subscriptionId,
versionSetId,
workspaceId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ versionSetId }}',
'{{ workspaceId }}',
'{{ 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 workspace_api_version_sets
resource.
/*+ update */
UPDATE azure.api_management.workspace_api_version_sets
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND versionSetId = '{{ versionSetId }}'
AND workspaceId = '{{ workspaceId }}';
DELETE
example
Deletes the specified workspace_api_version_sets
resource.
/*+ delete */
DELETE FROM azure.api_management.workspace_api_version_sets
WHERE If-Match = '{{ If-Match }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND versionSetId = '{{ versionSetId }}'
AND workspaceId = '{{ workspaceId }}';