Set-PveClusterSdnVnetsSubnets
Update sdn subnet object configuration.
API: PUT /cluster/sdn/vnets/{vnet}/subnets/{subnet}, Proxmox VE API viewer
Syntax
Section titled “Syntax”Set-PveClusterSdnVnetsSubnets [-PveTicket <PveTicket>] [-Delete <string>] [-DhcpDnsServer <string>] [-DhcpRange <array>] [-Digest <string>] [-Dnszoneprefix <string>] [-Gateway <string>] [-LockToken <string>] [-Snat <bool>] -Subnet <string> [-Vnet <string>] [<CommonParameters>]Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
-PveTicket |
PveTicket |
No | Ticket data connection. |
-Delete |
string |
No | A list of settings you want to delete. |
-DhcpDnsServer |
string |
No | IP address for the DNS server. |
-DhcpRange |
array |
No | A list of DHCP ranges for this subnet. |
-Digest |
string |
No | Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. |
-Dnszoneprefix |
string |
No | dns domain zone prefix ex: ‘adm’ -> <hostname>.adm.mydomain.com. |
-Gateway |
string |
No | Subnet Gateway: Will be assign on vnet for layer3 zones. |
-LockToken |
string |
No | the token for unlocking the global SDN configuration. |
-Snat |
bool |
No | enable masquerade for this subnet if pve-firewall. |
-Subnet |
string |
Yes | The SDN subnet object identifier. |
-Vnet |
string |
No | associated vnet. |
Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.
Output
Section titled “Output”A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.