NCS_UpdateResource

Updates resource configuration based on fields in pRes.

Syntax

 #include <ncssdk.h> 
  
 NCS_RETURN UpdateResource (
   NCS_HANDLE      Handle, 
   NCS_RESOURCE   *pRes);
 

Parameters

Handle

(IN) Specifies the application’s handle.

pRes

(IN/OUT) Specifies the resource, which must be filled in on call. Uses uniObjName if available (see NCS_RESOURCE).

Return Values

Name

Description

SUCCESS

NCS_SUCCESS.

NCS_ALLOC_ERROR

Insufficient memory to perform the operation.

NCS_BAD_PARAMETER

See NDS Error Codes.

NCS_NOT_SUPPORTED

Message returned when NCS_ClusterIPAddress is called in a cluster running on a platform version less than NetWare 6.

NCS_RESOURCES_NOT_FOUND

No resources to perform requested operation.

Remarks

Updates a resource, including load and unload scripts, but does not allow for changing the IP address of a volume resource, which must be done using ConsoleOne or the NRM interface.

The resource should be in the offline state when updated. Do a read resource first, without discarding any fields of data. Only update the fields that you want changed.