Network Configuration Access Control Model.
Copyright (c) 2012 - 2018 IETF Trust and the persons identified as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 8341; see the RFC itself for full legal notices.
Example URL
Parameters for NETCONF access control model.
ietf.netconf.acm.Nacm
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Parameters for NETCONF access control model.
ietf.netconf.acm.Nacm to be added to list
ietf-netconf-acm:nacm | object (ietf.netconf.acm.Nacm) |
Object created
Internal error
Object already exists
Example URL
Parameters for NETCONF access control model.
ietf.netconf.acm.Nacm to be added or updated
ietf-netconf-acm:nacm-wrapper | object (ietf.netconf.acm.NacmWrapper) |
Object created
Object modified
Internal error
Example URL
Parameters for NETCONF access control model.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NETCONF access control groups.
ietf.netconf.acm.nacm.Groups
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm/groups" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
NETCONF access control groups.
ietf.netconf.acm.nacm.Groups to be added to list
groups | object (ietf.netconf.acm.nacm.Groups) |
Object created
Internal error
Object already exists
Example URL
NETCONF access control groups.
ietf.netconf.acm.nacm.Groups to be added or updated
ietf-netconf-acm:groups-wrapper | object (ietf.netconf.acm.nacm.GroupsWrapper) |
Object created
Object modified
Internal error
Example URL
NETCONF access control groups.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm/groups" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
One NACM group entry. This list will only contain configured entries, not any entries learned from any transport protocols.
ietf.netconf.acm.nacm.groups.Group to be added to list
group | object (ietf.netconf.acm.nacm.groups.Group) |
Object created
Internal error
Object already exists
Example URL
One NACM group entry. This list will only contain configured entries, not any entries learned from any transport protocols.
name required | string Id of group |
ietf.netconf.acm.nacm.groups.Group
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm/groups/group=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
One NACM group entry. This list will only contain configured entries, not any entries learned from any transport protocols.
name required | string Id of group |
ietf.netconf.acm.nacm.groups.Group to be added or updated
ietf-netconf-acm:group-wrapper | object (ietf.netconf.acm.nacm.groups.GroupWrapper) |
Object created
Object modified
Internal error
Example URL
One NACM group entry. This list will only contain configured entries, not any entries learned from any transport protocols.
name required | string Id of group |
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm/groups/group=%7Bname%7D" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An ordered collection of access control rules.
ietf.netconf.acm.nacm.RuleList to be added to list
rule-list | object (ietf.netconf.acm.nacm.RuleList) |
Object created
Internal error
Object already exists
Example URL
An ordered collection of access control rules.
name required | string Id of rule-list |
ietf.netconf.acm.nacm.RuleList
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/ietf-netconf-acm:nacm/rule-list=%7Bname%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
An ordered collection of access control rules.
name required | string Id of rule-list |
ietf.netconf.acm.nacm.RuleList to be added or updated
ietf-netconf-acm:rule-list-wrapper | object (ietf.netconf.acm.nacm.RuleListWrapper) |
Object created
Object modified
Internal error