Module: Jamf::Connection::Constants
- Included in:
- Jamf::Connection
- Defined in:
- lib/jamf/api/connection/constants.rb
Overview
This module defines constants related to API connctions, used throughout the connection class and elsewhere.
Constant Summary collapse
- MIN_JAMF_VERSION =
This version of ruby-jss only works with this version of the server and higher
NOTE: Some objects and features may require newer versions of Jamf Pro than this. However this is the minimum required for even making an API connection using this version of ruby-jss.
Gem::Version.new('10.35.0')
- CAPI_RSRC_BASE =
The base of the Classic API resources
'JSSResource'.freeze
- JPAPI_RSRC_BASE =
The base of the Jamf Pro API resources
'api'.freeze
- TOKEN_REUSE_MIN_LIFE =
pre-existing tokens must have this many seconds before before they expire
60
- NOT_CONNECTED =
A string indicating we are not connected
'Not Connected'.freeze
- NON_NAMES =
if @name is any of these when a connection is made, it is reset to a default based on the connection params
[NOT_CONNECTED, :unknown, nil, :disconnected].freeze
- HTTPS_SCHEME =
'https'.freeze
- ON_PREM_SSL_PORT =
The Jamf default SSL port for on-prem servers
8443
- HTTPS_SSL_PORT =
The https default SSL port for Jamf Cloud servers
443
- JAMFCLOUD_DOMAIN =
Recognize Jamf Cloud servers
'jamfcloud.com'.freeze
- JAMFCLOUD_PORT =
JamfCloud connections default to 443, not 8443
HTTPS_SSL_PORT
- XML_HEADER =
The top line of an XML doc for submitting data via Classic API
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>'.freeze
- DFT_OPEN_TIMEOUT =
60
- DFT_TIMEOUT =
60
- DFT_SSL_VERSION =
The Default SSL Version
'TLSv1_2'.freeze
- RSRC_NOT_FOUND_MSG =
'The requested resource was not found'.freeze
- GET_FORMATS =
values for the ‘format’ param of #c_get
%i[json xml].freeze
- HTTP_ACCEPT_HEADER =
'Accept'.freeze
- HTTP_CONTENT_TYPE_HEADER =
'Content-Type'.freeze
- MIME_JSON =
'application/json'.freeze
- MIME_XML =
'application/xml'.freeze
- SLASH =
'/'
- PP_VARS =
Only these variables are displayed with PrettyPrint This avoids, especially, the caches, which are available as attr_readers
%i[ @name @connected @open_timeout @timeout @server_path @connect_time ].freeze
- SET_COOKIE_HEADER =
'set-cookie'.freeze
- COOKIE_HEADER =
'Cookie'.freeze
- STICKY_SESSION_COOKIE_NAME =
'APBALANCEID'.freeze