Skip to main content

named_values

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

Overview

Namenamed_values
TypeResource
Idazure.api_management.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

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamedValueId, resourceGroupName, serviceName, subscriptionIdGets the details of the named value specified by its identifier.
listSELECTnamedValueId, resourceGroupName, serviceName, subscriptionIdGets the secret of the named value specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of named values defined within a service instance.
create_or_updateINSERTnamedValueId, resourceGroupName, serviceName, subscriptionIdCreates or updates named value.
deleteDELETEIf-Match, namedValueId, resourceGroupName, serviceName, subscriptionIdDeletes specific named value from the API Management service instance.
updateUPDATEIf-Match, namedValueId, resourceGroupName, serviceName, subscriptionIdUpdates the specific named value.
refresh_secretEXECnamedValueId, resourceGroupName, serviceName, subscriptionIdRefresh the secret of the named value specified by its identifier.

SELECT examples

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

SELECT
display_name,
key_vault,
namedValueId,
provisioning_state,
resourceGroupName,
secret,
serviceName,
subscriptionId,
tags,
value
FROM azure.api_management.vw_named_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new named_values resource.

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

UPDATE example

Updates a named_values resource.

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

DELETE example

Deletes the specified named_values resource.

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