All URIs are relative to http://127.0.0.1:4646/v1
Method | HTTP request | Description |
---|---|---|
deleteACLPolicy | DELETE /acl/policy/{policyName} | |
deleteACLToken | DELETE /acl/token/{tokenAccessor} | |
getACLPolicies | GET /acl/policies | |
getACLPolicy | GET /acl/policy/{policyName} | |
getACLToken | GET /acl/token/{tokenAccessor} | |
getACLTokenSelf | GET /acl/token | |
getACLTokens | GET /acl/tokens | |
postACLBootstrap | POST /acl/bootstrap | |
postACLPolicy | POST /acl/policy/{policyName} | |
postACLToken | POST /acl/token/{tokenAccessor} | |
postACLTokenOnetime | POST /acl/token/onetime | |
postACLTokenOnetimeExchange | POST /acl/token/onetime/exchange |
void deleteACLPolicy()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiDeleteACLPolicyRequest = {
// string | The ACL policy name.
policyName: "policyName_example",
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.deleteACLPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyName | [string] | The ACL policy name. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
void
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteACLToken()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiDeleteACLTokenRequest = {
// string | The token accessor ID.
tokenAccessor: "tokenAccessor_example",
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.deleteACLToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
tokenAccessor | [string] | The token accessor ID. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
void
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array getACLPolicies()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiGetACLPoliciesRequest = {
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// number | If set, wait until query exceeds given index. Must be provided with WaitParam. (optional)
index: 1,
// string | Provided with IndexParam to wait for change. (optional)
wait: "wait_example",
// string | If present, results will include stale reads. (optional)
stale: "stale_example",
// string | Constrains results to jobs that start with the defined prefix (optional)
prefix: "prefix_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// number | Maximum number of results to return. (optional)
perPage: 1,
// string | Indicates where to start paging for queries that support pagination. (optional)
nextToken: "next_token_example",
};
apiInstance.getACLPolicies(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
index | [number] | If set, wait until query exceeds given index. Must be provided with WaitParam. | (optional) defaults to undefined |
wait | [string] | Provided with IndexParam to wait for change. | (optional) defaults to undefined |
stale | [string] | If present, results will include stale reads. | (optional) defaults to undefined |
prefix | [string] | Constrains results to jobs that start with the defined prefix | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
perPage | [number] | Maximum number of results to return. | (optional) defaults to undefined |
nextToken | [string] | Indicates where to start paging for queries that support pagination. | (optional) defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. * X-Nomad-KnownLeader - Boolean indicating if there is a known cluster leader. * X-Nomad-LastContact - The time in milliseconds that a server was last contacted by the leader node. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLPolicy getACLPolicy()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiGetACLPolicyRequest = {
// string | The ACL policy name.
policyName: "policyName_example",
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// number | If set, wait until query exceeds given index. Must be provided with WaitParam. (optional)
index: 1,
// string | Provided with IndexParam to wait for change. (optional)
wait: "wait_example",
// string | If present, results will include stale reads. (optional)
stale: "stale_example",
// string | Constrains results to jobs that start with the defined prefix (optional)
prefix: "prefix_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// number | Maximum number of results to return. (optional)
perPage: 1,
// string | Indicates where to start paging for queries that support pagination. (optional)
nextToken: "next_token_example",
};
apiInstance.getACLPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
policyName | [string] | The ACL policy name. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
index | [number] | If set, wait until query exceeds given index. Must be provided with WaitParam. | (optional) defaults to undefined |
wait | [string] | Provided with IndexParam to wait for change. | (optional) defaults to undefined |
stale | [string] | If present, results will include stale reads. | (optional) defaults to undefined |
prefix | [string] | Constrains results to jobs that start with the defined prefix | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
perPage | [number] | Maximum number of results to return. | (optional) defaults to undefined |
nextToken | [string] | Indicates where to start paging for queries that support pagination. | (optional) defaults to undefined |
ACLPolicy
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. * X-Nomad-KnownLeader - Boolean indicating if there is a known cluster leader. * X-Nomad-LastContact - The time in milliseconds that a server was last contacted by the leader node. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLToken getACLToken()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiGetACLTokenRequest = {
// string | The token accessor ID.
tokenAccessor: "tokenAccessor_example",
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// number | If set, wait until query exceeds given index. Must be provided with WaitParam. (optional)
index: 1,
// string | Provided with IndexParam to wait for change. (optional)
wait: "wait_example",
// string | If present, results will include stale reads. (optional)
stale: "stale_example",
// string | Constrains results to jobs that start with the defined prefix (optional)
prefix: "prefix_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// number | Maximum number of results to return. (optional)
perPage: 1,
// string | Indicates where to start paging for queries that support pagination. (optional)
nextToken: "next_token_example",
};
apiInstance.getACLToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
tokenAccessor | [string] | The token accessor ID. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
index | [number] | If set, wait until query exceeds given index. Must be provided with WaitParam. | (optional) defaults to undefined |
wait | [string] | Provided with IndexParam to wait for change. | (optional) defaults to undefined |
stale | [string] | If present, results will include stale reads. | (optional) defaults to undefined |
prefix | [string] | Constrains results to jobs that start with the defined prefix | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
perPage | [number] | Maximum number of results to return. | (optional) defaults to undefined |
nextToken | [string] | Indicates where to start paging for queries that support pagination. | (optional) defaults to undefined |
ACLToken
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. * X-Nomad-KnownLeader - Boolean indicating if there is a known cluster leader. * X-Nomad-LastContact - The time in milliseconds that a server was last contacted by the leader node. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLToken getACLTokenSelf()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiGetACLTokenSelfRequest = {
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// number | If set, wait until query exceeds given index. Must be provided with WaitParam. (optional)
index: 1,
// string | Provided with IndexParam to wait for change. (optional)
wait: "wait_example",
// string | If present, results will include stale reads. (optional)
stale: "stale_example",
// string | Constrains results to jobs that start with the defined prefix (optional)
prefix: "prefix_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// number | Maximum number of results to return. (optional)
perPage: 1,
// string | Indicates where to start paging for queries that support pagination. (optional)
nextToken: "next_token_example",
};
apiInstance.getACLTokenSelf(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
index | [number] | If set, wait until query exceeds given index. Must be provided with WaitParam. | (optional) defaults to undefined |
wait | [string] | Provided with IndexParam to wait for change. | (optional) defaults to undefined |
stale | [string] | If present, results will include stale reads. | (optional) defaults to undefined |
prefix | [string] | Constrains results to jobs that start with the defined prefix | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
perPage | [number] | Maximum number of results to return. | (optional) defaults to undefined |
nextToken | [string] | Indicates where to start paging for queries that support pagination. | (optional) defaults to undefined |
ACLToken
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. * X-Nomad-KnownLeader - Boolean indicating if there is a known cluster leader. * X-Nomad-LastContact - The time in milliseconds that a server was last contacted by the leader node. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array getACLTokens()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiGetACLTokensRequest = {
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// number | If set, wait until query exceeds given index. Must be provided with WaitParam. (optional)
index: 1,
// string | Provided with IndexParam to wait for change. (optional)
wait: "wait_example",
// string | If present, results will include stale reads. (optional)
stale: "stale_example",
// string | Constrains results to jobs that start with the defined prefix (optional)
prefix: "prefix_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// number | Maximum number of results to return. (optional)
perPage: 1,
// string | Indicates where to start paging for queries that support pagination. (optional)
nextToken: "next_token_example",
};
apiInstance.getACLTokens(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
index | [number] | If set, wait until query exceeds given index. Must be provided with WaitParam. | (optional) defaults to undefined |
wait | [string] | Provided with IndexParam to wait for change. | (optional) defaults to undefined |
stale | [string] | If present, results will include stale reads. | (optional) defaults to undefined |
prefix | [string] | Constrains results to jobs that start with the defined prefix | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
perPage | [number] | Maximum number of results to return. | (optional) defaults to undefined |
nextToken | [string] | Indicates where to start paging for queries that support pagination. | (optional) defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. * X-Nomad-KnownLeader - Boolean indicating if there is a known cluster leader. * X-Nomad-LastContact - The time in milliseconds that a server was last contacted by the leader node. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLToken postACLBootstrap()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiPostACLBootstrapRequest = {
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.postACLBootstrap(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
ACLToken
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void postACLPolicy(aCLPolicy)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiPostACLPolicyRequest = {
// string | The ACL policy name.
policyName: "policyName_example",
// ACLPolicy
aCLPolicy: {
createIndex: 0,
description: "description_example",
jobACL: {
group: "group_example",
jobID: "jobID_example",
namespace: "namespace_example",
task: "task_example",
},
modifyIndex: 0,
name: "name_example",
rules: "rules_example",
},
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.postACLPolicy(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
aCLPolicy | ACLPolicy | ||
policyName | [string] | The ACL policy name. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
void
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLToken postACLToken(aCLToken)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiPostACLTokenRequest = {
// string | The token accessor ID.
tokenAccessor: "tokenAccessor_example",
// ACLToken
aCLToken: {
accessorID: "accessorID_example",
createIndex: 0,
createTime: new Date('1970-01-01T00:00:00.00Z'),
expirationTTL: 1,
expirationTime: new Date('1970-01-01T00:00:00.00Z'),
global: true,
modifyIndex: 0,
name: "name_example",
policies: [
"policies_example",
],
roles: [
{
ID: "ID_example",
name: "name_example",
},
],
secretID: "secretID_example",
type: "type_example",
},
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.postACLToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
aCLToken | ACLToken | ||
tokenAccessor | [string] | The token accessor ID. | defaults to undefined |
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
ACLToken
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OneTimeToken postACLTokenOnetime()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiPostACLTokenOnetimeRequest = {
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.postACLTokenOnetime(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
OneTimeToken
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ACLToken postACLTokenOnetimeExchange(oneTimeTokenExchangeRequest)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ACLApi(configuration);
let body:.ACLApiPostACLTokenOnetimeExchangeRequest = {
// OneTimeTokenExchangeRequest
oneTimeTokenExchangeRequest: {
oneTimeSecretID: "oneTimeSecretID_example",
},
// string | Filters results based on the specified region. (optional)
region: "region_example",
// string | Filters results based on the specified namespace. (optional)
namespace: "namespace_example",
// string | A Nomad ACL token. (optional)
xNomadToken: "X-Nomad-Token_example",
// string | Can be used to ensure operations are only run once. (optional)
idempotencyToken: "idempotency_token_example",
};
apiInstance.postACLTokenOnetimeExchange(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
oneTimeTokenExchangeRequest | OneTimeTokenExchangeRequest | ||
region | [string] | Filters results based on the specified region. | (optional) defaults to undefined |
namespace | [string] | Filters results based on the specified namespace. | (optional) defaults to undefined |
xNomadToken | [string] | A Nomad ACL token. | (optional) defaults to undefined |
idempotencyToken | [string] | Can be used to ensure operations are only run once. | (optional) defaults to undefined |
ACLToken
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | * X-Nomad-Index - A unique identifier representing the current state of the requested resource. On a new Nomad cluster the value of this index starts at 1. |
|
400 | Bad request | - |
403 | Forbidden | - |
405 | Method not allowed | - |
500 | Internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]