KSC Open API
Kaspersky Security Center API description
OAuth2::ApproveNewResServers ( array  pResServers)

Approves new OAuth2 resource servers.

Parameters:
pResServers(array) each element of array contains information about OAuth2 resource server (see attributes List of OAuth2 resource server attributes), all writable data will be saved in DB

If "KLOAUTH2_RESSERVER_AUTH_CERT" is empty, new certificate will be generated for the resource server.

Generates event "KLOAUTH2_EVENT_RES_SERVERS_NEED_REGISTRATION" (see Event polling usage).