Skip to content

Commit

Permalink
Adding support for GetAvailableDelegations operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupali Vohra committed Aug 31, 2018
1 parent 260c04a commit ea8045e
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"swagger": "2.0",
"info": {
"title": "NetworkManagementClient",
"description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
"version": "2018-08-01"
},
"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}/providers/Microsoft.Network/locations/{location}/availableDelegations": {
"get": {
"operationId": "AvailableDelegations_List",
"description": "Gets all of the available subnet delegations for this subscription in this region.",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the subnet."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.",
"schema": {
"$ref": "#/definitions/AvailableDelegationsResult"
}
}
},
"x-ms-examples": {
"Get available delegations": {
"$ref": "./examples/AvailableDelegationsSubscriptionGet.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations": {
"get": {
"operationId": "AvailableResourceGroupDelegations_List",
"description": "Gets all of the available subnet delegations for this resource group in this region.",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location of the domain name."
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Request successful. Returns all of the possible delegations for a subnet in this subscription in the region.",
"schema": {
"$ref": "#/definitions/AvailableDelegationsResult"
}
}
},
"x-ms-examples": {
"Get available delegations in the resource group": {
"$ref": "./examples/AvailableDelegationsResourceGroupGet.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"AvailableDelegationsResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/AvailableDelegation"
},
"description": "An array of available delegations."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of results."
}
},
"description": "An array of available delegations."
},
"AvailableDelegation": {
"properties": {
"name": {
"type": "string",
"description": "The name of the AvailableDelegation resource."
},
"id": {
"type": "string",
"description": "A unique identifier of the AvailableDelegation resource."
},
"type": {
"type": "string",
"description": "Resource type."
},
"serviceName": {
"type": "string",
"description": "The name of the service and resource "
},
"actions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Describes the actions permitted to the service upon delegation"
}
},
"description": "The serviceName of an AvailableDelegation indicates a possible delegation for a subnet."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters" : {
"api-version": "2018-08-01",
"location": "regionName",
"subscriptionId" : "subId",
"resourceGroupName" : "rg1"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "Microsoft.Provider.resourceType",
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType",
"type": "Microsoft.Network/availableDelegations",
"serviceName": "Microsoft.Provider/resourceType",
"actions": [
"Microsoft.Network/resource/action"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters" : {
"api-version": "2018-08-01",
"location": "regionName",
"subscriptionId" : "subId"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"name": "Microsoft.Provider.resourceType",
"id": "/subscriptions/subId/providers/Microsoft.Network/availableDelegations/Microsoft.Provider.resourceType",
"type": "Microsoft.Network/availableDelegations",
"serviceName": "Microsoft.Provider/resourceType",
"actions": [
"Microsoft.Network/resource/action"
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,24 @@
},
"description": "Properties of a service delegation."
},
"Delegation": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ServiceDelegationPropertiesFormat",
"description": "Properties of the subnet."
},
"name": {
"type": "string",
"description": "The name of the resource that is unique within a subnet. This name can be used to access the resource."
},
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
}
},
"description": "Details the service to which the subnet is delegated."
},
"SubnetPropertiesFormat": {
"properties": {
"addressPrefix": {
Expand Down Expand Up @@ -934,7 +952,7 @@
"delegations": {
"type": "array",
"items": {
"$ref": "#/definitions/ServiceDelegationPropertiesFormat"
"$ref": "#/definitions/Delegation"
},
"description": "Gets an array of references to the delegations on the subnet."
},
Expand Down
1 change: 1 addition & 0 deletions specification/network/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ These settings apply only when `--tag=package-2018-08` is specified on the comma
input-file:
- Microsoft.Network/stable/2018-08-01/applicationGateway.json
- Microsoft.Network/stable/2018-08-01/applicationSecurityGroup.json
- Microsoft.Network/stable/2018-08-01/availableDelegations.json
- Microsoft.Network/stable/2018-08-01/azureFirewall.json
- Microsoft.Network/stable/2018-08-01/azureFirewallFqdnTag.json
- Microsoft.Network/stable/2018-08-01/checkDnsAvailability.json
Expand Down

0 comments on commit ea8045e

Please sign in to comment.