Sonatype Nexus User Token Plugin API

Data

  • Namespace: http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0
  • XML Schema File: api.xsd

The data in this namespace is divided into elements and types. Types define the structure of the data. Elements define specific instances of the types, and are therefore more relevant to REST endpoints, which generally consume and/or produce elements.

The following elements are members of this namespace:

The following types are members of this namespace:

Element authToken

Example XML

<?xml version="1.0" encoding="UTF-8"?> <api:authToken xmlns:api="http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0"> <u> <!--content of type 'string'--> ... </u> <p> <!--content of type 'string'--> ... </p> </api:authToken>

Example JSON

{ "u" : "...", "p" : "..." }

Element settings

Example XML

<?xml version="1.0" encoding="UTF-8"?> <api:settings xmlns:api="http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0"> <enabled> <!--content of type 'boolean'--> ... </enabled> <protectContent> <!--content of type 'boolean'--> ... </protectContent> <realmConfigured> <!--content of type 'boolean'--> ... </realmConfigured> </api:settings>

Example JSON

{ "enabled" : false, "protectContent" : false, "realmConfigured" : false }

Element status

Example XML

<?xml version="1.0" encoding="UTF-8"?> <api:status xmlns:api="http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0"> <enabled> <!--content of type 'boolean'--> ... </enabled> </api:status>

Example JSON

{ "enabled" : false }

Element userToken

Example XML

<?xml version="1.0" encoding="UTF-8"?> <api:userToken xmlns:api="http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0"> <nameCode> <!--content of type 'string'--> ... </nameCode> <passCode> <!--content of type 'string'--> ... </passCode> <created> <!--content of type 'string'--> ... </created> </api:userToken>

Example JSON

{ "nameCode" : "...", "passCode" : "...", "created" : "..." }

Element userTokenStatus

Example XML

<?xml version="1.0" encoding="UTF-8"?> <api:userTokenStatus xmlns:api="http://sonatype.com/xsd/nexus-usertoken-plugin/rest/1.0"> <provisioned> <!--content of type 'boolean'--> ... </provisioned> <created> <!--content of type 'string'--> ... </created> </api:userTokenStatus>

Example JSON

{ "provisioned" : false, "created" : "..." }

Type authToken

Child Elements

name (type) min/max
occurs
description
u (string) 1/1 (no documentation provided)
p (string) 1/1 (no documentation provided)

Type settings

Child Elements

name (type) min/max
occurs
description
enabled (boolean) 1/1 (no documentation provided)
protectContent (boolean) 1/1 (no documentation provided)
realmConfigured (boolean) 1/1 (no documentation provided)

Type status

Child Elements

name (type) min/max
occurs
description
enabled (boolean) 1/1 (no documentation provided)

Type userToken

Child Elements

name (type) min/max
occurs
description
nameCode (string) 1/1 (no documentation provided)
passCode (string) 1/1 (no documentation provided)
created (string) 1/1 (no documentation provided)

Type userTokenStatus

Child Elements

name (type) min/max
occurs
description
provisioned (boolean) 1/1 (no documentation provided)
created (string) 1/1 (no documentation provided)