diff --git a/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-configurations.json b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-configurations.json new file mode 100644 index 000000000000..01b6a8af2391 --- /dev/null +++ b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-configurations.json @@ -0,0 +1,52 @@ +{ + "resourceType": "servers/configurations", + "apiVersion": "2018-06-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb" + }, + "commands": [ + { + "name": "Get-AzMariaDbConfiguration", + "description": "Gets information about a configuration of server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/get-azmariadbconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.configurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-firewallRules.json b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-firewallRules.json new file mode 100644 index 000000000000..da5d7e537f91 --- /dev/null +++ b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-firewallRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/firewallRules", + "apiVersion": "2018-06-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb" + }, + "commands": [ + { + "name": "Get-AzMariaDbFirewallRule", + "description": "Gets information about a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/get-azmariadbfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMariaDbFirewallRule", + "description": "Deletes a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/remove-azmariadbfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-virtualNetworkRules.json b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-virtualNetworkRules.json new file mode 100644 index 000000000000..e25c419d5f1d --- /dev/null +++ b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers-virtualNetworkRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/virtualNetworkRules", + "apiVersion": "2018-06-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb" + }, + "commands": [ + { + "name": "Get-AzMariaDbVirtualNetworkRule", + "description": "Gets a virtual network rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/get-azmariadbvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a virtual network rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMariaDbVirtualNetworkRule", + "description": "Deletes the virtual network rule with the given name.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/remove-azmariadbvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the virtual network rule with the given name.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MariaDb/UX/Microsoft.DBforMariaDB/servers.json b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers.json new file mode 100644 index 000000000000..9aed74f214f5 --- /dev/null +++ b/src/MariaDb/UX/Microsoft.DBforMariaDB/servers.json @@ -0,0 +1,85 @@ +{ + "resourceType": "servers", + "apiVersion": "2018-06-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb" + }, + "commands": [ + { + "name": "Get-AzMariaDbServer", + "description": "Gets information about a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/get-azmariadbserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMariaDbServer", + "description": "Deletes a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mariadb/remove-azmariadbserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-configurations.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-configurations.json new file mode 100644 index 000000000000..45a61a0e3767 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-configurations.json @@ -0,0 +1,52 @@ +{ + "resourceType": "flexibleServers/configurations", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlFlexibleServerConfiguration", + "description": "Gets information about a configuration of server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.configurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-databases.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-databases.json new file mode 100644 index 000000000000..9456ce624482 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-databases.json @@ -0,0 +1,95 @@ +{ + "resourceType": "flexibleServers/databases", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlFlexibleServerDatabase", + "description": "Gets information about a database.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverdatabase" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a database.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.databaseName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlFlexibleServerDatabase", + "description": "Deletes a database.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverdatabase" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a database.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.databaseName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-firewallRules.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-firewallRules.json new file mode 100644 index 000000000000..1060d0ae6758 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers-firewallRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "flexibleServers/firewallRules", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlFlexibleServerFirewallRule", + "description": "List all the firewall rules in a given server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlFlexibleServerFirewallRule", + "description": "Deletes a PostgreSQL server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a PostgreSQL server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers.json new file mode 100644 index 000000000000..aa9679054947 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/flexibleServers.json @@ -0,0 +1,161 @@ +{ + "resourceType": "flexibleServers", + "apiVersion": "2021-06-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlFlexibleServer", + "description": "Gets information about a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlFlexibleServer", + "description": "Deletes a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Start-AzPostgreSqlFlexibleServer", + "description": "Starts a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/start-azpostgresqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Starts a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Stop-AzPostgreSqlFlexibleServer", + "description": "Stops a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Stops a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-configurations.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-configurations.json new file mode 100644 index 000000000000..507ad8722571 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-configurations.json @@ -0,0 +1,52 @@ +{ + "resourceType": "servers/configurations", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlConfiguration", + "description": "Gets information about a configuration of server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.configurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-firewallRules.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-firewallRules.json new file mode 100644 index 000000000000..5a88e636d9c8 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-firewallRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/firewallRules", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlFirewallRule", + "description": "Gets information about a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlFirewallRule", + "description": "Deletes a server firewall rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server firewall rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.firewallRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-virtualNetworkRules.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-virtualNetworkRules.json new file mode 100644 index 000000000000..3b029b3425ef --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers-virtualNetworkRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "servers/virtualNetworkRules", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlVirtualNetworkRule", + "description": "Gets a virtual network rule.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a virtual network rule.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlVirtualNetworkRule", + "description": "Deletes the virtual network rule with the given name.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-ServerName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the virtual network rule with the given name.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.virtualNetworkRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-ServerName", + "value": "[Path.serverName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers.json b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers.json new file mode 100644 index 000000000000..3be0130b3121 --- /dev/null +++ b/src/PostgreSql/UX/Microsoft.DBforPostgreSQL/servers.json @@ -0,0 +1,123 @@ +{ + "resourceType": "servers", + "apiVersion": "2017-12-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql" + }, + "commands": [ + { + "name": "Get-AzPostgreSqlServer", + "description": "Gets information about a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzPostgreSqlServer", + "description": "Deletes a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Restart-AzPostgreSqlServer", + "description": "Restarts a server.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlserver" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Restarts a server.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.serverName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +}