Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5tYW5hZ2VkbmV0d29ya2ZhYnJpYy9uZXR3b3JrZGV2aWNlcy97fQ==/2024-02-15-preview.xml (548 lines of code) (raw):
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkdevices/{}" version="2024-02-15-preview" swagger="mgmt-plane/managednetworkfabric/ResourceProviders/Microsoft.ManagedNetworkFabric/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlZE5ldHdvcmtGYWJyaWMvbmV0d29ya0RldmljZXMve25ldHdvcmtEZXZpY2VOYW1lfQ==/V/MjAyNC0wMi0xNS1wcmV2aWV3"/>
<commandGroup name="networkfabric device">
<command name="show" version="2024-02-15-preview" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkdevices/{}" version="2024-02-15-preview" swagger="mgmt-plane/managednetworkfabric/ResourceProviders/Microsoft.ManagedNetworkFabric/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlZE5ldHdvcmtGYWJyaWMvbmV0d29ya0RldmljZXMve25ldHdvcmtEZXZpY2VOYW1lfQ==/V/MjAyNC0wMi0xNS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.networkDeviceName" options="resource-name" required="True" group="" idPart="name">
<help short="Name of the Network Device."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="NetworkDevices_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}">
<request method="get">
<path>
<param type="string" name="networkDeviceName" arg="$Path.networkDeviceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-02-15-preview""/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{}"/>
</prop>
<prop type="ResourceLocation" name="location" required="True"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop readOnly="True" type="string" name="administrativeState">
<enum>
<item value=""Disabled""/>
<item value=""Enabled""/>
<item value=""MAT""/>
<item value=""RMA""/>
</enum>
</prop>
<prop type="string" name="annotation"/>
<prop readOnly="True" type="string" name="configurationState">
<enum>
<item value=""Accepted""/>
<item value=""DeferredControl""/>
<item value=""Deprovisioned""/>
<item value=""Deprovisioning""/>
<item value=""ErrorDeprovisioning""/>
<item value=""ErrorProvisioning""/>
<item value=""Failed""/>
<item value=""PendingCommit""/>
<item value=""Provisioned""/>
<item value=""Provisioning""/>
<item value=""Rejected""/>
<item value=""Succeeded""/>
</enum>
</prop>
<prop type="string" name="hostName">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="managementIpv4Address"/>
<prop readOnly="True" type="string" name="managementIpv6Address"/>
<prop readOnly="True" type="string" name="networkDeviceRole">
<enum>
<item value=""CE""/>
<item value=""Management""/>
<item value=""NPB""/>
<item value=""TS""/>
<item value=""ToR""/>
</enum>
</prop>
<prop type="string" name="networkDeviceSku"/>
<prop readOnly="True" type="string" name="networkRackId"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Canceled""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="string" name="serialNumber" required="True">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="version"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2024-02-15-preview" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkdevices/{}" version="2024-02-15-preview" swagger="mgmt-plane/managednetworkfabric/ResourceProviders/Microsoft.ManagedNetworkFabric/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlZE5ldHdvcmtGYWJyaWMvbmV0d29ya0RldmljZXMve25ldHdvcmtEZXZpY2VOYW1lfQ==/V/MjAyNC0wMi0xNS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.networkDeviceName" options="resource-name" required="True" group="" idPart="name">
<help short="Name of the Network Device."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="NetworkDevices_Delete">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}">
<request method="delete">
<path>
<param type="string" name="networkDeviceName" arg="$Path.networkDeviceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-02-15-preview""/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="202"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2024-02-15-preview">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkdevices/{}" version="2024-02-15-preview" swagger="mgmt-plane/managednetworkfabric/ResourceProviders/Microsoft.ManagedNetworkFabric/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlZE5ldHdvcmtGYWJyaWMvbmV0d29ya0RldmljZXMve25ldHdvcmtEZXZpY2VOYW1lfQ==/V/MjAyNC0wMi0xNS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.networkDeviceName" options="resource-name" required="True" group="" idPart="name">
<help short="Name of the Network Device."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Body">
<arg type="ResourceLocation" var="$body.location" options="location l" required="True" group="Body">
<help short="Location of Azure region"/>
</arg>
<arg type="object" var="$body.tags" options="tags" group="Body">
<help short="Resource tags."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="string" var="$body.properties.annotation" options="annotation" group="Properties">
<help short="Description for underlying resource."/>
</arg>
<arg type="string" var="$body.properties.hostName" options="host-name" group="Properties">
<help short="The Host Name of the device. All Network Device names should follow the format <Fabric Name>-<Rack Type>-<Device Type>. Example: AustinNF-AR-CE1."/>
<format minLength="1"/>
</arg>
<arg type="string" var="$body.properties.networkDeviceSku" options="network-device-sku" group="Properties">
<help short="Network Device SKU name."/>
</arg>
<arg type="string" var="$body.properties.serialNumber" options="serial-number" required="True" group="Properties">
<help short="Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969"/>
<format minLength="1"/>
</arg>
</argGroup>
<operation operationId="NetworkDevices_Create">
<longRunning finalStateVia="azure-async-operation"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}">
<request method="put">
<path>
<param type="string" name="networkDeviceName" arg="$Path.networkDeviceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-02-15-preview""/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="body" required="True" clientFlatten="True">
<prop type="ResourceLocation" name="location" arg="$body.location" required="True"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="annotation" arg="$body.properties.annotation"/>
<prop type="string" name="hostName" arg="$body.properties.hostName">
<format minLength="1"/>
</prop>
<prop type="string" name="networkDeviceSku" arg="$body.properties.networkDeviceSku"/>
<prop type="string" name="serialNumber" arg="$body.properties.serialNumber" required="True">
<format minLength="1"/>
</prop>
</prop>
<prop type="object" name="tags" arg="$body.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{}"/>
</prop>
<prop type="ResourceLocation" name="location" required="True"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop readOnly="True" type="string" name="administrativeState">
<enum>
<item value=""Disabled""/>
<item value=""Enabled""/>
<item value=""MAT""/>
<item value=""RMA""/>
</enum>
</prop>
<prop type="string" name="annotation"/>
<prop readOnly="True" type="string" name="configurationState">
<enum>
<item value=""Accepted""/>
<item value=""DeferredControl""/>
<item value=""Deprovisioned""/>
<item value=""Deprovisioning""/>
<item value=""ErrorDeprovisioning""/>
<item value=""ErrorProvisioning""/>
<item value=""Failed""/>
<item value=""PendingCommit""/>
<item value=""Provisioned""/>
<item value=""Provisioning""/>
<item value=""Rejected""/>
<item value=""Succeeded""/>
</enum>
</prop>
<prop type="string" name="hostName">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="managementIpv4Address"/>
<prop readOnly="True" type="string" name="managementIpv6Address"/>
<prop readOnly="True" type="string" name="networkDeviceRole">
<enum>
<item value=""CE""/>
<item value=""Management""/>
<item value=""NPB""/>
<item value=""TS""/>
<item value=""ToR""/>
</enum>
</prop>
<prop type="string" name="networkDeviceSku"/>
<prop readOnly="True" type="string" name="networkRackId"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Canceled""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="string" name="serialNumber" required="True">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="version"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2024-02-15-preview" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.managednetworkfabric/networkdevices/{}" version="2024-02-15-preview" swagger="mgmt-plane/managednetworkfabric/ResourceProviders/Microsoft.ManagedNetworkFabric/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlZE5ldHdvcmtGYWJyaWMvbmV0d29ya0RldmljZXMve25ldHdvcmtEZXZpY2VOYW1lfQ==/V/MjAyNC0wMi0xNS1wcmV2aWV3"/>
<argGroup name="">
<arg type="string" var="$Path.networkDeviceName" options="resource-name" required="True" group="" idPart="name">
<help short="Name of the Network Device."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Body">
<arg type="object" var="$body.tags" options="tags" group="Body">
<help short="Resource tags"/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="string" var="$body.properties.annotation" options="annotation" group="Properties">
<help short="Description for underlying resource."/>
</arg>
<arg type="string" var="$body.properties.hostName" options="host-name" group="Properties">
<help short="The Host Name of the device. All Network Device names should follow the format <Fabric Name>-<Rack Type>-<Device Type>. Example: AustinNF-AR-CE1."/>
<format minLength="1"/>
</arg>
<arg type="string" var="$body.properties.serialNumber" options="serial-number" group="Properties">
<help short="Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969"/>
<format minLength="1"/>
</arg>
</argGroup>
<operation operationId="NetworkDevices_Update">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}">
<request method="patch">
<path>
<param type="string" name="networkDeviceName" arg="$Path.networkDeviceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-02-15-preview""/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="body" required="True" clientFlatten="True">
<prop type="object" name="properties" clientFlatten="True">
<prop type="string" name="annotation" arg="$body.properties.annotation"/>
<prop type="string" name="hostName" arg="$body.properties.hostName">
<format minLength="1"/>
</prop>
<prop type="string" name="serialNumber" arg="$body.properties.serialNumber">
<format minLength="1"/>
</prop>
</prop>
<prop type="object" name="tags" arg="$body.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{}"/>
</prop>
<prop type="ResourceLocation" name="location" required="True"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop readOnly="True" type="string" name="administrativeState">
<enum>
<item value=""Disabled""/>
<item value=""Enabled""/>
<item value=""MAT""/>
<item value=""RMA""/>
</enum>
</prop>
<prop type="string" name="annotation"/>
<prop readOnly="True" type="string" name="configurationState">
<enum>
<item value=""Accepted""/>
<item value=""DeferredControl""/>
<item value=""Deprovisioned""/>
<item value=""Deprovisioning""/>
<item value=""ErrorDeprovisioning""/>
<item value=""ErrorProvisioning""/>
<item value=""Failed""/>
<item value=""PendingCommit""/>
<item value=""Provisioned""/>
<item value=""Provisioning""/>
<item value=""Rejected""/>
<item value=""Succeeded""/>
</enum>
</prop>
<prop type="string" name="hostName">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="managementIpv4Address"/>
<prop readOnly="True" type="string" name="managementIpv6Address"/>
<prop readOnly="True" type="string" name="networkDeviceRole">
<enum>
<item value=""CE""/>
<item value=""Management""/>
<item value=""NPB""/>
<item value=""TS""/>
<item value=""ToR""/>
</enum>
</prop>
<prop type="string" name="networkDeviceSku"/>
<prop readOnly="True" type="string" name="networkRackId"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value=""Accepted""/>
<item value=""Canceled""/>
<item value=""Deleting""/>
<item value=""Failed""/>
<item value=""Succeeded""/>
<item value=""Updating""/>
</enum>
</prop>
<prop type="string" name="serialNumber" required="True">
<format minLength="1"/>
</prop>
<prop readOnly="True" type="string" name="version"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value=""Application""/>
<item value=""Key""/>
<item value=""ManagedIdentity""/>
<item value=""User""/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response statusCode="202">
<header>
<item name="Location"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>