Search
Preparing search index...
The search index is not available
@sentinel-one/management-node-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ApiCall
Class ApiCall
Hierarchy
ApiCall
Index
Constructors
constructor
Properties
_auth
Method
_is
Authenticated
_is
Https
_token
host
Name
instance
Methods
add
Body
Request
buildSDKRespond
build
Url
extract
Auth
Method
extract
Respond
get
Authorization
Header
get
IsAuthenticated
get
Respond
Data
get
Token
get
Token
Method
make
Api
Call
set
Auth
set
Auth
Header
set
Auth
Method
set
Content
Type
Header
set
Headers
set
IsAuthenticated
set
Respond
set
Token
wrap
Api
Call
get
Instance
Constructors
Private
constructor
new
Api
Call
(
hostName
:
string
)
:
ApiCall
Parameters
hostName:
string
Returns
ApiCall
Properties
Private
_auth
Method
_auth
Method
:
AuthMethodType
Private
_is
Authenticated
_is
Authenticated
:
boolean
Private
_is
Https
_is
Https
:
boolean
Private
_token
_token
:
string
Private
host
Name
host
Name
:
string
Static
Private
instance
instance
:
ApiCall
Methods
Private
add
Body
Request
add
Body
Request
(
method
:
HttpMethod
, respond
:
SDKRespond
, data
:
any
)
:
void
Parameters
method:
HttpMethod
respond:
SDKRespond
Optional
data:
any
Returns
void
Private
buildSDKRespond
buildSDKRespond
(
url
:
string
, reqMethod
:
HttpMethod
, data
:
any
)
:
SDKRespond
Parameters
url:
string
reqMethod:
HttpMethod
data:
any
Returns
SDKRespond
Private
build
Url
build
Url
(
url
:
string
, method
:
HttpMethod
, data
:
any
)
:
string
Parameters
url:
string
method:
HttpMethod
data:
any
Returns
string
Private
extract
Auth
Method
extract
Auth
Method
(
authData
:
any
)
:
AuthMethodType
Parameters
authData:
any
Returns
AuthMethodType
Private
extract
Respond
extract
Respond
(
response
:
any
)
:
Promise
<
any
>
Parameters
response:
any
Returns
Promise
<
any
>
Private
get
Authorization
Header
get
Authorization
Header
(
)
:
object
Returns
object
Authorization
:
string
Private
get
IsAuthenticated
get
IsAuthenticated
(
)
:
boolean
Returns
boolean
get
Respond
Data
get
Respond
Data
(
results
:
SDKRespond
)
:
any
Parameters
results:
SDKRespond
Returns
any
get
Token
get
Token
(
)
:
string
Returns
string
Private
get
Token
Method
get
Token
Method
(
)
:
AuthMethodType
Returns
AuthMethodType
make
Api
Call
make
Api
Call
(
urlSuffix
:
string
, requestMethod
:
HttpMethod
, data
:
any
)
:
Promise
<
SDKRespond
>
Parameters
urlSuffix:
string
requestMethod:
HttpMethod
Optional
data:
any
Returns
Promise
<
SDKRespond
>
Private
set
Auth
set
Auth
(
_token
:
string
, authMethod
:
AuthMethodType
)
:
void
Parameters
_token:
string
authMethod:
AuthMethodType
Returns
void
set
Auth
Header
set
Auth
Header
(
authData
:
any
, token
:
string
)
:
object
|
void
Parameters
Optional
authData:
any
Optional
token:
string
Returns
object
|
void
Private
set
Auth
Method
set
Auth
Method
(
authMethod
:
AuthMethodType
)
:
void
Parameters
authMethod:
AuthMethodType
Returns
void
Private
set
Content
Type
Header
set
Content
Type
Header
(
contentType
?:
string
, data
:
any
)
:
object
Parameters
Default value
contentType:
string
= "application/json"
data:
any
Returns
object
Private
set
Headers
set
Headers
(
data
:
any
, token
:
any
, contentType
:
string
)
:
Object
Parameters
data:
any
Optional
token:
any
Optional
contentType:
string
Returns
Object
Private
set
IsAuthenticated
set
IsAuthenticated
(
_isAuth
:
boolean
)
:
void
Parameters
_isAuth:
boolean
Returns
void
Private
set
Respond
set
Respond
(
wrappedApi
:
any
, result
:
any
)
:
SDKRespond
Parameters
wrappedApi:
any
result:
any
Returns
SDKRespond
Private
set
Token
set
Token
(
token
:
string
)
:
void
Parameters
token:
string
Returns
void
Private
wrap
Api
Call
wrap
Api
Call
(
endPoint
:
string
, method
:
HttpMethod
, data
:
any
)
:
SDKRespond
Parameters
endPoint:
string
method:
HttpMethod
Optional
data:
any
Returns
SDKRespond
Static
get
Instance
get
Instance
(
hostName
:
string
)
:
ApiCall
Parameters
hostName:
string
Returns
ApiCall
Globals
Api
Call
constructor
_auth
Method
_is
Authenticated
_is
Https
_token
host
Name
instance
add
Body
Request
buildSDKRespond
build
Url
extract
Auth
Method
extract
Respond
get
Authorization
Header
get
IsAuthenticated
get
Respond
Data
get
Token
get
Token
Method
make
Api
Call
set
Auth
set
Auth
Header
set
Auth
Method
set
Content
Type
Header
set
Headers
set
IsAuthenticated
set
Respond
set
Token
wrap
Api
Call
get
Instance
Generated using
TypeDoc