Skip to main content

web_services

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

Overview

Nameweb_services
TypeResource
Idazure.machine_learning.web_services

Fields

NameDatatypeDescription
idtextSpecifies the resource ID.
nametextSpecifies the name of the resource.
descriptiontextfield from the properties object
assetstextfield from the properties object
commitment_plantextfield from the properties object
created_ontextfield from the properties object
diagnosticstextfield from the properties object
example_requesttextfield from the properties object
expose_sample_datatextfield from the properties object
inputtextfield from the properties object
keystextfield from the properties object
locationtextSpecifies the location of the resource.
machine_learning_workspacetextfield from the properties object
modified_ontextfield from the properties object
outputtextfield from the properties object
package_typetextfield from the properties object
parameterstextfield from the properties object
payloads_in_blob_storagetextfield from the properties object
payloads_locationtextfield from the properties object
provisioning_statetextfield from the properties object
read_onlytextfield from the properties object
realtime_configurationtextfield from the properties object
resourceGroupNametextfield from the properties object
storage_accounttextfield from the properties object
subscriptionIdtextfield from the properties object
swagger_locationtextfield from the properties object
tagstextContains resource tags defined as key/value pairs.
titletextfield from the properties object
typetextSpecifies the type of the resource.
webServiceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, webServiceNameGets the Web Service Definition as specified by a subscription, resource group, and name. Note that the storage credentials and web service keys are not returned by this call. To get the web service access keys, call List Keys.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets the web services in the specified resource group.
list_by_subscription_idSELECTsubscriptionIdGets the web services in the specified subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, webServiceName, data__propertiesCreate or update a web service. This call will overwrite an existing web service. Note that there is no warning or confirmation. This is a nonrecoverable operation. If your intent is to create a new web service, call the Get operation first to verify that it does not exist.
patchUPDATEresourceGroupName, subscriptionId, webServiceNameModifies an existing web service resource. The PATCH API call is an asynchronous operation. To determine whether it has completed successfully, you must perform a Get operation.
removeEXECresourceGroupName, subscriptionId, webServiceNameDeletes the specified web service.

SELECT examples

Gets the web services in the specified subscription.

SELECT
id,
name,
description,
assets,
commitment_plan,
created_on,
diagnostics,
example_request,
expose_sample_data,
input,
keys,
location,
machine_learning_workspace,
modified_on,
output,
package_type,
parameters,
payloads_in_blob_storage,
payloads_location,
provisioning_state,
read_only,
realtime_configuration,
resourceGroupName,
storage_account,
subscriptionId,
swagger_location,
tags,
title,
type,
webServiceName
FROM azure.machine_learning.vw_web_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.machine_learning.web_services (
resourceGroupName,
subscriptionId,
webServiceName,
data__properties,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ webServiceName }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a web_services resource.

/*+ update */
UPDATE azure.machine_learning.web_services
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webServiceName = '{{ webServiceName }}';