Logging in to Veritas Operations Manager Web services API in Veritas Operations Manager 6.1

book

Article ID: 100038661

calendar_today

Updated On:

Description

Description

Logging in to Veritas Operations Manager Web services API in Veritas Operations Manager 6.1

The Veritas Operations Manager Web services API requires users to log in to perform the operations. The authentication information is sent as a part of the HTTPS request body.

You can use one of the following methods to log in:

  • With your user credentials.

  • Generate a certificate using HTTPS client (XPRTLC or cURL) and use the same to log in.

Use one of the following methods to log in to Web services API using your user credentials:

  • Launch the following URL for the log in interface:

    https://ManagementServer_hostname:14161/vom/api/login

  • Run the following XPRTLC command:

    xprtlc -l https://ManagementServer_hostname:14161/vom/api/login -d user=user -d password=password -d domain=ManagementServer_hostname

  • Run the following cURL command:

    curl -g -k -d user=user -d password=password -d domain=ManagementServer_hostname https://ManagementServer_hostname:14161/vom/api/login

Use the following commands to generate a certificate using XPRTLC or cURL:

  • For XPRTLC:

    xprtlc -l https://ManagementServer_hostname:14161/vom/api/gencert -d user=user -d password=password -d domain=ManagementServer_hostname > cert.txt

  • For cURL:

    curl -g -k -d user=user -d password=password -d domain=ManagementServer_hostname https://ManagementServer_hostname:14161/vom/api/gencert > /root/cert.txt

Use the following commands to log in using the certificate:

  • For XPRTLC:

    xprtlc -l https://ManagementServer_hostname:14161/vom/api/login -f certfile=@/root/cert.txt

  • For cURL:

    curl -g -k -F certfile=@/root/cert.txt https://ManagementServer_hostname:14161/vom/api/login

After you login, a session ID is created using which you can access the Web services API. The session ID is valid for 30 minutes. After the session expires, you need to log in again for a new session ID.

Sample session ID:

{"cookie":" JSESSIONID=38B752A5DCF210717F5C99D867A17379; ","current_server_time":"Mon Jan 28 03:48:03 PST 2013","max_active_interval":30,"expires_at":"Mon Jan 28 04:18:03 PST 2013"}

Issue/Introduction

Logging in to Veritas Operations Manager Web services API in Veritas Operations Manager 6.1