ADC NITRO APIs

nscentralmanagementserver

Configuration for centralmanagementserver resource.

Properties

(click to see Operations )

Name Data Type Permissions Description
type <String> Read-write Type of the central management server. Must be either CLOUD or ONPREM depending on whether the server is on the cloud or on premise.

Possible values = CLOUD, ONPREM
username <String> Read-write Username for access to central management server. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters.



The following requirement applies only to the Citrix ADC CLI:

If the name includes one or more spaces, enclose the name in double or

single quotation marks (for example, "my ns centralmgmtserver" or "my ns centralmgmtserver").

Minimum length = 1

Maximum length = 127
password <String> Read-write Password for access to central management server. Required for any user account.

Minimum length = 1

Maximum length = 127
activationcode <String> Read-write Activation code is used to register to ADM service.

Minimum length = 1

Maximum length = 127
ipaddress <String> Read-write Ip Address of central management server.

Minimum length = 1
servername <String> Read-write Fully qualified domain name of the central management server or service-url to locate ADM service.
validatecert <String> Read-write validate the server certificate for secure SSL connections.

Default value: YES

Possible values = YES, NO
deviceprofilename <String> Read-write Device profile is created on ADM and contains the user name and password of the instance(s).

Minimum length = 1

Maximum length = 255
adcusername <String> Read-write ADC username used to create device profile on ADM.

Minimum length = 1

Maximum length = 127
adcpassword <String> Read-write ADC password used to create device profile on ADM.

Minimum length = 1

Maximum length = 127
instanceid <String> Read-only Instance ID of the customer provided by Trust.
customerid <String> Read-only Customer ID of the citrix cloud customer.
admserviceenvironment <String> Read-only ADM service environment (PRODUCTION/STAGING/DEV).

Possible values = PRODUCTION, STAGING, DEV
admserviceconnectionstatus <String> Read-only Built-in agent's (mastools) connection status to ADM service.

Possible values = CONNECTED, DISCONNECTED
__count <Double> Read-only count parameter

Operations

(click to see Properties )

  • ADD
  • DELETE
  • GET (ALL)
  • GET
  • COUNT

Some options that you can use for each operations:

  • Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the 'warning' query parameter as 'yes'. For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:

    http:// <netscaler-ip-address> /nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code '209 X-NITRO-WARNING'.

  • Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER: <username>

    X-NITRO-PASS: <password>

    Note: In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

*Note: * Mandatory parameters are marked in red and placeholder content is marked in green

add

URL: http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver HTTP Method: POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Content-Type:application/json

Request Payload:

{"nscentralmanagementserver":{
<b>"type":<String_value>,
</b>"username":<String_value>,
"password":<String_value>,
"activationcode":<String_value>,
"ipaddress":<String_value>,
"servername":<String_value>,
"validatecert":<String_value>,
"deviceprofilename":<String_value>,
"adcusername":<String_value>,
"adcpassword":<String_value>
}}

<!--NeedCopy-->

Response: HTTP Status Code on Success: 201 Created

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

delete

URL: http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver/ type_value<String> HTTP Method: DELETE

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Response: HTTP Status Code on Success: 200 OK

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

get (all)

URL: http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver Query-parameters: attrs http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver? attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

filter http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver? filter=property-name1:property-val1,property-name2:property-val2

Use this query-parameter to get the filtered set of nscentralmanagementserver resources configured on NetScaler.Filtering can be done on any of the properties of the resource.

view http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver? view=summary

Use this query-parameter to get the summary output of nscentralmanagementserver resources configured on NetScaler.

Note: By default, the retrieved results are displayed in detail view (?view=detail).

pagination http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver? pagesize=#no;pageno=#no

Use this query-parameter to get the nscentralmanagementserver resources in chunks.

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Accept:application/json

Response: HTTP Status Code on Success: 200 OK

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

Response Header:

Content-Type:application/json

Response Payload:

{ "nscentralmanagementserver": [ {
"type":<String_value>,
"username":<String_value>,
"ipaddress":<String_value>,
"servername":<String_value>,
"validatecert":<String_value>,
"password":<String_value>,
"deviceprofilename":<String_value>,
"instanceid":<String_value>,
"customerid":<String_value>,
"admserviceenvironment":<String_value>,
"admserviceconnectionstatus":<String_value>
}]}

<!--NeedCopy-->

get

URL: http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver/ type_value<String> Query-parameters: attrs http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver/ type_value<String> ? attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

view http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver/ type_value<String> ? view=summary

Use this query-parameter to get the summary output of nscentralmanagementserver resources configured on NetScaler.

Note: By default, the retrieved results are displayed in detail view (?view=detail).

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Accept:application/json

Response: HTTP Status Code on Success: 200 OK

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

Response Header:

Content-Type:application/json

Response Payload:

{  "nscentralmanagementserver": [ {
"type":<String_value>,
"username":<String_value>,
"ipaddress":<String_value>,
"servername":<String_value>,
"validatecert":<String_value>,
"password":<String_value>,
"deviceprofilename":<String_value>,
"instanceid":<String_value>,
"customerid":<String_value>,
"admserviceenvironment":<String_value>,
"admserviceconnectionstatus":<String_value>
}]}

<!--NeedCopy-->

count

URL: http:// <netscaler-ip-address> /nitro/v1/config/nscentralmanagementserver? count=yes HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Accept:application/json

Response: HTTP Status Code on Success: 200 OK

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

Response Header:

Content-Type:application/json

Response Payload:

{ "nscentralmanagementserver": [ { "__count": "#no"} ] }

<!--NeedCopy-->
nscentralmanagementserver