Skip to main content

outbound_rule

Creates, updates, deletes, gets or lists an outbound_rule resource.

Overview

Nameoutbound_rule
TypeResource
Idazure.cognitive_services.outbound_rule

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
categorystringCategory of a managed network Outbound Rule of a cognitive services account. Known values are: "Required", "Recommended", "UserDefined", and "Dependency". (Required, Recommended, UserDefined, Dependency)
errorInformationstringError information about an outbound rule of a cognitive services account if RuleStatus is failed.
parentRuleNamesarray:vartype parent_rule_names: list[str]
statusstringType of a managed network Outbound Rule of a cognitive services account. Known values are: "Inactive", "Active", "Provisioning", "Deleting", and "Failed". (Inactive, Active, Provisioning, Deleting, Failed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, managed_network_name, rule_name, subscription_idThe GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account. The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.
listselectresource_group_name, account_name, managed_network_name, subscription_idThe GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account. The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive services account.
create_or_updateinsertresource_group_name, account_name, managed_network_name, rule_name, subscription_id, propertiesThe PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account. The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.
create_or_updatereplaceresource_group_name, account_name, managed_network_name, rule_name, subscription_id, propertiesThe PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account. The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.
deletedeleteresource_group_name, account_name, managed_network_name, rule_name, subscription_idThe DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account. The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

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
account_namestringThe name of Cognitive Services account. Required.
managed_network_namestringName of the managedNetwork associated with the cognitive services account. Only 'default' is supported. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_namestringName of the cognitive services account managed network outbound rule. Required.
subscription_idstring

SELECT examples

The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account. The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services account.

SELECT
id,
name,
category,
errorInformation,
parentRuleNames,
status,
systemData,
type
FROM azure.cognitive_services.outbound_rule
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND managed_network_name = '{{ managed_network_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account. The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

INSERT INTO azure.cognitive_services.outbound_rule (
properties,
resource_group_name,
account_name,
managed_network_name,
rule_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ managed_network_name }}',
'{{ rule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account. The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive services account.

REPLACE azure.cognitive_services.outbound_rule
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND managed_network_name = '{{ managed_network_name }}' --required
AND rule_name = '{{ rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account. The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services account.

DELETE FROM azure.cognitive_services.outbound_rule
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND managed_network_name = '{{ managed_network_name }}' --required
AND rule_name = '{{ rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;