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

The following fields are returned by SELECT queries:

Success. The response includes the Provisioning State and the Azure-AsyncOperation header. To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field. For more informationFor more information about Asynchronous Operations, see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-async-operations.

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
locationstringSpecifies the location of the resource.
propertiesobjectContains the property payload that describes the web service.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, webServiceName, subscriptionIdregionGets 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, subscriptionId$skiptokenGets the web services in the specified resource group.
list_by_subscription_idselectsubscriptionId$skiptokenGets the web services in the specified subscription.
create_or_updateinsertresourceGroupName, webServiceName, subscriptionId, 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, webServiceName, subscriptionIdModifies 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, webServiceName, subscriptionIdDeletes the specified web service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringName of the resource group in which the web service is located.
subscriptionIdstringThe Azure subscription ID.
webServiceNamestringThe name of the web service.
$skiptokenstringContinuation token for pagination.
regionstringThe region for which encrypted credential parameters are valid.

SELECT examples

Gets 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.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.machine_learning.web_services
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND webServiceName = '{{ webServiceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND region = '{{ region }}'
;

INSERT examples

Create 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.

INSERT INTO azure.machine_learning.web_services (
data__location,
data__tags,
data__properties,
resourceGroupName,
webServiceName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ resourceGroupName }}',
'{{ webServiceName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Modifies 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.

UPDATE azure.machine_learning.web_services
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND webServiceName = '{{ webServiceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

Lifecycle Methods

Deletes the specified web service.

EXEC azure.machine_learning.web_services.remove 
@resourceGroupName='{{ resourceGroupName }}' --required,
@webServiceName='{{ webServiceName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;