Skip to main content

workspace_named_values

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

Overview

Nameworkspace_named_values
TypeResource
Idazure.api_management.workspace_named_values

Fields

NameDatatypeDescription
display_nametextfield from the properties object
key_vaulttextfield from the properties object
namedValueIdtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secrettextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextfield from the properties object
valuetextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamedValueId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the details of the named value specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of named values defined within a workspace in a service instance.
create_or_updateINSERTnamedValueId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates or updates named value.
deleteDELETEIf-Match, namedValueId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes specific named value from the workspace in an API Management service instance.
updateUPDATEIf-Match, namedValueId, resourceGroupName, serviceName, subscriptionId, workspaceIdUpdates the specific named value.
refresh_secretEXECnamedValueId, resourceGroupName, serviceName, subscriptionId, workspaceIdRefresh the secret of the named value specified by its identifier.

SELECT examples

Lists a collection of named values defined within a workspace in a service instance.

SELECT
display_name,
key_vault,
namedValueId,
provisioning_state,
resourceGroupName,
secret,
serviceName,
subscriptionId,
tags,
value,
workspaceId
FROM azure.api_management.vw_workspace_named_values
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_named_values resource.

/*+ create */
INSERT INTO azure.api_management.workspace_named_values (
namedValueId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ namedValueId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;

UPDATE example

Updates a workspace_named_values resource.

/*+ update */
UPDATE azure.api_management.workspace_named_values
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND namedValueId = '{{ namedValueId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

DELETE example

Deletes the specified workspace_named_values resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_named_values
WHERE If-Match = '{{ If-Match }}'
AND namedValueId = '{{ namedValueId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';