{ "swagger": "2.0", "info": { "title": "Relay API", "description": "Use these API to manage Azure Relay resources through Azure Resource Manager.", "version": "2021-11-01", "x-ms-code-generation-settings": { "name": "RelayManagementClient" } }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/networkRuleSets/default": { "put": { "tags": [ "Namespaces" ], "x-ms-examples": { "NameSpaceNetworkRuleSetCreate": { "$ref": "./examples/VirtualNetworkRules/RelayNetworkRuleSetCreate.json" } }, "operationId": "Namespaces_CreateOrUpdateNetworkRuleSet", "description": "Create or update NetworkRuleSet for a Namespace.", "parameters": [ { "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/NamespaceNameParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { "$ref": "#/definitions/NetworkRuleSet" }, "description": "The Namespace IpFilterRule." } ], "responses": { "200": { "description": "Namespace NetworkRuleSet successfully returned.", "schema": { "$ref": "#/definitions/NetworkRuleSet" } }, "default": { "description": "ServiceBus error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } }, "get": { "tags": [ "Namespaces" ], "x-ms-examples": { "NameSpaceNetworkRuleSetGet": { "$ref": "./examples/VirtualNetworkRules/RelayNetworkRuleSetGet.json" } }, "operationId": "Namespaces_GetNetworkRuleSet", "description": "Gets NetworkRuleSet for a Namespace.", "parameters": [ { "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/NamespaceNameParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Namespace NetworkRuleSet successfully returned.", "schema": { "$ref": "#/definitions/NetworkRuleSet" } }, "default": { "description": "ServiceBus error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } } } } }, "definitions": { "NWRuleSetIpRules": { "type": "object", "x-ms-client-flatten": true, "properties": { "ipMask": { "type": "string", "description": "IP Mask" }, "action": { "type": "string", "description": "The IP Filter Action", "enum": [ "Allow" ], "x-ms-enum": { "name": "NetworkRuleIPAction", "modelAsString": true } } }, "description": "The response from the List namespace operation." }, "NetworkRuleSet": { "type": "object", "properties": { "properties": { "type": "object", "x-ms-client-flatten": true, "description": "NetworkRuleSet properties", "properties": { "trustedServiceAccessEnabled": { "type": "boolean", "description": "Value that indicates whether Trusted Service Access is Enabled or not." }, "defaultAction": { "type": "string", "description": "Default Action for Network Rule Set", "enum": [ "Allow", "Deny" ], "x-ms-enum": { "name": "DefaultAction", "modelAsString": true } }, "publicNetworkAccess": { "type": "string", "description": "This determines if traffic is allowed over public network. By default it is enabled", "enum": [ "Disabled", "Enabled", "SecuredByPerimeter" ], "x-ms-enum": { "name": "PublicNetworkAccess", "modelAsString": true } }, "ipRules": { "type": "array", "items": { "$ref": "#/definitions/NWRuleSetIpRules" }, "x-ms-identifiers": [], "description": "List of IpRules" } } }, "systemData": { "readOnly": true, "description": "The system meta data relating to this resource.", "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" } }, "allOf": [ { "$ref": "../../common/v1/definitions.json#/definitions/Resource" } ], "description": "Description of topic resource." } }, "parameters": {} }