8.7.2 AddPushTarget Method

This Method is used to add a PubSubKeyPushTarget to a PubSubKeyPushTargetFolder or to return an existing Object if the parameters match the configuration of an existing Object.

The Client shall be authorized to modify the configuration for the SKS functionality and shall use at least a signed communication channel when invoking this Method on the Server.

Signature

	AddPushTarget (
		[in]	String		ApplicationUri,
	[in]	String		EndpointUrl,
	[in]	String		SecurityPolicyUri,
	[in]	UserTokenPolicy	UserTokenType,
	[in] 	UInt16		RequestedKeyCount,
	[in]	Duration 		RetryInterval,
	[out] NodeId		PushTargetId
	);
	
Argument Description
ApplicationUri

ApplicationUri of the Server that is the target of the key push.

The ApplicationUri is used as name of the resulting PubSubKeyPushTarget object.

EndpointUrlURL of the Endpoint of the Server that is the target of the key push
SecurityPolicyUriSecurity policy the SKS shall use to establish a secure connection to the PushTarget
UserTokenTypeThe user token type used for the push. The default is Anonymous.
RequestedKeyCountThe number of keys to push on each call
RetryIntervalInterval the SKS shall use to retry pushing keys after an error appeared
PushTargetIdThe NodeId of the added PubSubKeyPushTarget Object.

Method Result Codes

ResultCode Description
Bad_NodeIdExists A PushTarget with the ApplicationUri already exists but the arguments do not match the existing object.
Good_DataIgnoredA Object with the configuration already exists and was returned without adding a new Object.
Bad_InvalidArgumentOne of the input arguments is invalid. The InputArgumentResult provides further details.
Bad_UserAccessDeniedThe Session user is not allowed to configure the object.
Bad_SecurityModeInsufficientThe communication channel is not using signing.

Table 227 specifies the AddressSpace representation for the AddPushTarget Method.

Table 227 – AddPushTarget Method AddressSpace definition
Attribute Value
BrowseNameAddPushTarget
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
HasPropertyVariableOutputArgumentsArgument[] PropertyTypeMandatory
ConformanceUnits
PubSub Model SKS Push