Sm_PolicyApi_AddAffiliateDomain()

The function creates an affiliate domain or updates an existing affiliate domain. Sets bIsAffiliate to TRUE.
casso10
The function creates an affiliate domain or updates an existing affiliate domain. Sets
bIsAffiliate
to TRUE.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_AddAffiliateDomain (
void*pSessionHandle,
Sm_PolicyApi_AffiliateDomain_t*pstructAffiliateDomain,
const boolbUpdate
);
Parameter
I/O
Description
pSessionHandle
I
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session.
pstructAffiliate
Domain
I
A pointer to a completely filled-in affiliate domain structure.
bUpdate
I
A Boolean flag to indicate that if an existing object is found, it should be updated.
Returns
  • Sm_PolicyApi_Success
    The affiliate domain was created successfully
  • Sm_PolicyApi_Failure
    The affiliate domain was not created successfully
  • Sm_PolicyApi_InvalidHandle
    No valid initialization before this call
  • Sm_PolicyApi_NoSession
    No valid administrator session
  • Sm_PolicyApi_NoPrivilege
    The administrator does not have the permission to create an affiliate domain
  • Sm_PolicyApi_DomainNotFound
    The affiliate domain OID was not found during an update
  • Sm_PolicyApi_DomainNotAffiliate
    The domain is not an affiliate domain