Network resource operations
Create Network Resource
Creates a network resource.
Signature: def nrcreate(cinfo)
Parameters:
cinfo['resourceaddress'] - Address for the network resource being created
cinfo['resourcetype'] - Type of network resource to create
cinfo['attributes'] - Attributes to be set on the network resource
cinfo['acctid'] - User the network resource should be created for
cinfo['modeluid'] - Template user
cinfo['modeluri'] - Template network resource
Return Value:
ACSuccess 0
ACUnknownError 1
Delete Network Resource
Deletes a network resource.
Signature: def nrdelete(cinfo)
Parameters:
cinfo['resourceaddress'] - Address for the network resource to delete
cinfo['resourcetype'] - Type of network resource to delete
Return Value:
ACSuccess 0
ACUnknownError 1
ACObjectDoesNotExist 36
Move Network Resource
Moves a network resource.
Signature: def nrmove(cinfo)
Parameters:
cinfo['resourceaddress'] - Address for the network resource being moved
cinfo['resourcetype'] - Type of network resource to move
cinfo['modeluri'] - Destination for the network resource
Return Value:
ACSuccess 0
ACUnknownError 1
ACObjectDoesNotExist 36
Update Network Resource
Updates a network resource.
Signature: def nrupdate(cinfo)
Parameters:
cinfo['resourceaddress'] - Address for the network resource to be updated
cinfo['resourcetype'] - Type of network resource to be updated
cinfo['attributes'] - Attributes to be set on the network resource
Return Value:
ACSuccess 0
ACUnknownError 1