{ "swagger": "2.0", "info": { "description": "MAC address pool operation endpoints and objects.", "title": "FabricAdminClient", "version": "2016-05-01" }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/macAddressPools/{macAddressPool}": { "get": { "x-ms-examples": { "Returns the requested MAC address pool.": { "$ref": "./examples/MacAddressPool/Get.json" } }, "tags": [ "MacAddressPools" ], "description": "Returns the requested MAC address pool.", "operationId": "MacAddressPools_Get", "parameters": [ { "$ref": "Fabric.json#/parameters/SubscriptionIdParameter" }, { "$ref": "Fabric.json#/parameters/ResourceGroupParameter" }, { "$ref": "Fabric.json#/parameters/LocationParameter" }, { "$ref": "#/parameters/MACAddressPoolParameter" }, { "$ref": "Fabric.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MacAddressPool" } }, "404": { "description": "NOT FOUND" } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/macAddressPools": { "get": { "x-ms-examples": { "Returns all MAC address pools": { "$ref": "./examples/MacAddressPool/List.json" } }, "tags": [ "MacAddressPools" ], "description": "Returns a list of all MAC address pools at a location.", "operationId": "MacAddressPools_List", "parameters": [ { "$ref": "Fabric.json#/parameters/SubscriptionIdParameter" }, { "$ref": "Fabric.json#/parameters/ResourceGroupParameter" }, { "$ref": "Fabric.json#/parameters/LocationParameter" }, { "$ref": "Fabric.json#/parameters/ApiVersionParameter" }, { "$ref": "Fabric.json#/parameters/FilterParameter" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MacAddressPoolList" } }, "404": { "description": "NOT FOUND" } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, "x-ms-odata": "#/definitions/MacAddressPool" } } }, "definitions": { "MacAddressPool": { "description": "This resource represents a MAC address pool. The default MAC address pools are used if you set the MAC address type for a virtual machine to 'Static'. If the virtual machine setting is 'Dynamic', the hypervisor assigns the MAC address.", "type": "object", "properties": { "properties": { "description": "Properties of a MAC address pool.", "x-ms-client-flatten": true, "$ref": "#/definitions/MacAddressPoolModel" } }, "allOf": [ { "$ref": "Fabric.json#/definitions/Resource" } ] }, "MacAddressPoolModel": { "description": "Properties of a MAC address pool.", "type": "object", "properties": { "metadata": { "description": "Metadata related to the MAC pool.", "type": "object", "additionalProperties": { "type": "string" } }, "startMacAddress": { "description": "Starting MAC address.", "type": "string" }, "endMacAddress": { "description": "Ending MAC address.", "type": "string" }, "numberOfAllocatedMacAddresses": { "description": "Number of MAC addresses allocated.", "type": "integer", "format": "int64" }, "numberOfAvailableMacAddresses": { "description": "Number of MAC addresses available.", "type": "integer", "format": "int64" } } }, "MacAddressPoolList": { "description": "A pageable list of MAC address pools.", "type": "object", "properties": { "value": { "description": "List of MAC address pools.", "type": "array", "items": { "$ref": "#/definitions/MacAddressPool" } }, "nextLink": { "description": "URI to the next page.", "type": "string" } } } }, "parameters": { "MACAddressPoolParameter": { "name": "macAddressPool", "description": "Name of the MAC address pool.", "in": "path", "required": true, "type": "string", "x-ms-parameter-location": "method" } }, "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } } }, "security": [ { "azure_auth": [ "user_impersonation" ] } ] }