6.5.7 UpdateApplication

The UpdateApplication Method is used to update an existing application in a GlobalDiscoveryServer.

This Method shall be called from an authenticated SecureChannel and from a Client that has access to the DiscoveryAdmin Role, the ApplicationSelfAdmin Privilege, or the ApplicationAdmin Privilege (see 6.2).

When updating an existing application the ApplicationUri cannot be changed. If it is changed the Method returns Bad_WriteNotSupported.

If the update was successful and auditing is supported, the GDS shall generate the ApplicationRegistrationChanged AuditEventType (see 6.5.12).

Signature

UpdateApplication(
	[in] ApplicationRecordDataType Application
);
Argument Description
ApplicationThe application that is to be updated in the GDS database.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_NotFoundThe ApplicationId is not known to the GDS.
Bad_InvalidArgument

The application or one of the fields of the application record is not valid.

The text associated with the error shall indicate the exact problem.

Bad_WriteNotSupportedThe ApplicationUri was changed and it cannot be updated.
Bad_UserAccessDeniedThe current user does not have the required rights.
Bad_SecurityModeInsufficientThe SecureChannel is not authenticated.

Table 10 specifies the AddressSpace representation for the UpdateApplication Method.

Table 10 – UpdateApplication Method AddressSpace Definition
Attribute Value
BrowseName2:UpdateApplication
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeMandatory