]>
git.proxmox.com Git - pve-network.git/blob - PVE/API2/NetworkConfig.pm
1 package PVE
::API2
::NetworkConfig
;
8 use PVE
::Cluster
qw(cfs_lock_file cfs_read_file cfs_write_file);
10 use PVE
::RPCEnvironment
;
11 use PVE
::JSONSchema
qw(get_standard_option);
12 use PVE
::Exception
qw(raise_param_exc);
13 use PVE
::API2
::Network
::Transport
;
14 use PVE
::API2
::Network
::Vnet
;
16 use base
qw(PVE::RESTHandler);
18 __PACKAGE__-
>register_method ({
19 subclass
=> "PVE::API2::Network::Transport",
23 __PACKAGE__-
>register_method ({
24 subclass
=> "PVE::API2::Network::Vnet",
28 __PACKAGE__-
>register_method({
32 description
=> "Directory index.",
34 check
=> ['perm', '/', [ 'Sys.Audit' ]],
37 additionalProperties
=> 0,
45 id
=> { type
=> 'string' },
48 links
=> [ { rel
=> 'child', href
=> "{id}" } ],
54 { id
=> 'transport' },