@pulumi/nomad 2.6.0-alpha.1776321506 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aclToken.d.ts +12 -2
- package/aclToken.js +4 -0
- package/aclToken.js.map +1 -1
- package/getAclToken.d.ts +8 -0
- package/getAclToken.js +8 -0
- package/getAclToken.js.map +1 -1
- package/getJob.d.ts +12 -5
- package/getJob.js.map +1 -1
- package/getJobParser.d.ts +14 -11
- package/getJobParser.js +2 -0
- package/getJobParser.js.map +1 -1
- package/getNamespace.d.ts +11 -0
- package/getNamespace.js.map +1 -1
- package/getNode.d.ts +138 -0
- package/getNode.js +60 -0
- package/getNode.js.map +1 -0
- package/getNodePool.d.ts +5 -0
- package/getNodePool.js.map +1 -1
- package/getNodes.d.ts +153 -0
- package/getNodes.js +110 -0
- package/getNodes.js.map +1 -0
- package/getVariable.d.ts +8 -0
- package/getVariable.js +8 -0
- package/getVariable.js.map +1 -1
- package/index.d.ts +6 -0
- package/index.js +8 -2
- package/index.js.map +1 -1
- package/job.d.ts +140 -20
- package/job.js +26 -0
- package/job.js.map +1 -1
- package/namespace.d.ts +24 -0
- package/namespace.js +4 -0
- package/namespace.js.map +1 -1
- package/nodePool.d.ts +15 -0
- package/nodePool.js +2 -0
- package/nodePool.js.map +1 -1
- package/package.json +2 -2
- package/provider.js +5 -3
- package/provider.js.map +1 -1
- package/quoteSpecification.d.ts +34 -6
- package/quoteSpecification.js +25 -0
- package/quoteSpecification.js.map +1 -1
- package/types/input.d.ts +284 -5
- package/types/output.d.ts +835 -18
- package/variable.d.ts +50 -5
- package/variable.js +23 -4
- package/variable.js.map +1 -1
package/aclToken.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
* Terraform's state file. Take care to
|
|
9
9
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
10
10
|
*
|
|
11
|
+
* > **Note:** `secretId` is deprecated on this resource. Use the `nomad.AclToken`
|
|
12
|
+
* ephemeral resource when the token secret is needed during a run without
|
|
13
|
+
* storing it in Terraform state.
|
|
14
|
+
*
|
|
11
15
|
* ## Example Usage
|
|
12
16
|
*
|
|
13
17
|
* Creating a token with limited policies:
|
|
@@ -129,7 +133,10 @@ export declare class AclToken extends pulumi.CustomResource {
|
|
|
129
133
|
readonly roles: pulumi.Output<outputs.AclTokenRole[] | undefined>;
|
|
130
134
|
/**
|
|
131
135
|
* `(string)` - The token value itself, which is presented for
|
|
132
|
-
* access to the cluster.
|
|
136
|
+
* access to the cluster. This attribute is deprecated and will be removed in a
|
|
137
|
+
* future release.
|
|
138
|
+
*
|
|
139
|
+
* @deprecated Use the nomad.AclToken ephemeral resource when the token secret is needed during a run without storing it in Terraform state. This attribute will be removed in a future release.
|
|
133
140
|
*/
|
|
134
141
|
readonly secretId: pulumi.Output<string>;
|
|
135
142
|
/**
|
|
@@ -196,7 +203,10 @@ export interface AclTokenState {
|
|
|
196
203
|
roles?: pulumi.Input<pulumi.Input<inputs.AclTokenRole>[]>;
|
|
197
204
|
/**
|
|
198
205
|
* `(string)` - The token value itself, which is presented for
|
|
199
|
-
* access to the cluster.
|
|
206
|
+
* access to the cluster. This attribute is deprecated and will be removed in a
|
|
207
|
+
* future release.
|
|
208
|
+
*
|
|
209
|
+
* @deprecated Use the nomad.AclToken ephemeral resource when the token secret is needed during a run without storing it in Terraform state. This attribute will be removed in a future release.
|
|
200
210
|
*/
|
|
201
211
|
secretId?: pulumi.Input<string>;
|
|
202
212
|
/**
|
package/aclToken.js
CHANGED
|
@@ -12,6 +12,10 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* Terraform's state file. Take care to
|
|
13
13
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
14
14
|
*
|
|
15
|
+
* > **Note:** `secretId` is deprecated on this resource. Use the `nomad.AclToken`
|
|
16
|
+
* ephemeral resource when the token secret is needed during a run without
|
|
17
|
+
* storing it in Terraform state.
|
|
18
|
+
*
|
|
15
19
|
* ## Example Usage
|
|
16
20
|
*
|
|
17
21
|
* Creating a token with limited policies:
|
package/aclToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aclToken.js","sourceRoot":"","sources":["../aclToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"aclToken.js","sourceRoot":"","sources":["../aclToken.ts"],"names":[],"mappings":"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"}
|
package/getAclToken.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
* > **Warning:** this data source will store tokens in the Terraform state. Take care to
|
|
7
7
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
8
8
|
*
|
|
9
|
+
* > **Note:** This data source is deprecated and may be removed in a future
|
|
10
|
+
* release. Use the `nomad.AclToken` ephemeral resource when the token secret is
|
|
11
|
+
* needed during a run without storing it in Terraform state.
|
|
12
|
+
*
|
|
9
13
|
* ## Example Usage
|
|
10
14
|
*
|
|
11
15
|
* ```typescript
|
|
@@ -85,6 +89,10 @@ export interface GetAclTokenResult {
|
|
|
85
89
|
* > **Warning:** this data source will store tokens in the Terraform state. Take care to
|
|
86
90
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
87
91
|
*
|
|
92
|
+
* > **Note:** This data source is deprecated and may be removed in a future
|
|
93
|
+
* release. Use the `nomad.AclToken` ephemeral resource when the token secret is
|
|
94
|
+
* needed during a run without storing it in Terraform state.
|
|
95
|
+
*
|
|
88
96
|
* ## Example Usage
|
|
89
97
|
*
|
|
90
98
|
* ```typescript
|
package/getAclToken.js
CHANGED
|
@@ -11,6 +11,10 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* > **Warning:** this data source will store tokens in the Terraform state. Take care to
|
|
12
12
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
13
13
|
*
|
|
14
|
+
* > **Note:** This data source is deprecated and may be removed in a future
|
|
15
|
+
* release. Use the `nomad.AclToken` ephemeral resource when the token secret is
|
|
16
|
+
* needed during a run without storing it in Terraform state.
|
|
17
|
+
*
|
|
14
18
|
* ## Example Usage
|
|
15
19
|
*
|
|
16
20
|
* ```typescript
|
|
@@ -35,6 +39,10 @@ exports.getAclToken = getAclToken;
|
|
|
35
39
|
* > **Warning:** this data source will store tokens in the Terraform state. Take care to
|
|
36
40
|
* [protect your state file](https://www.terraform.io/docs/state/sensitive-data.html).
|
|
37
41
|
*
|
|
42
|
+
* > **Note:** This data source is deprecated and may be removed in a future
|
|
43
|
+
* release. Use the `nomad.AclToken` ephemeral resource when the token secret is
|
|
44
|
+
* needed during a run without storing it in Terraform state.
|
|
45
|
+
*
|
|
38
46
|
* ## Example Usage
|
|
39
47
|
*
|
|
40
48
|
* ```typescript
|
package/getAclToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAclToken.js","sourceRoot":"","sources":["../getAclToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAclToken.js","sourceRoot":"","sources":["../getAclToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AAgED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,qCAAqC,EAAE;QACtE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
|
package/getJob.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export interface GetJobResult {
|
|
|
42
42
|
* `(boolean)` If the scheduler can make partial placements on oversubscribed nodes.
|
|
43
43
|
*/
|
|
44
44
|
readonly allAtOnce: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* `(list of maps)` Job constraints.
|
|
47
|
+
*/
|
|
45
48
|
readonly constraints: outputs.GetJobConstraint[];
|
|
46
49
|
/**
|
|
47
50
|
* `(integer)` Creation Index.
|
|
@@ -65,7 +68,7 @@ export interface GetJobResult {
|
|
|
65
68
|
*/
|
|
66
69
|
readonly modifyIndex: number;
|
|
67
70
|
/**
|
|
68
|
-
* `(string)`
|
|
71
|
+
* `(string)` Volume name.
|
|
69
72
|
*/
|
|
70
73
|
readonly name: string;
|
|
71
74
|
readonly namespace?: string;
|
|
@@ -74,7 +77,7 @@ export interface GetJobResult {
|
|
|
74
77
|
*/
|
|
75
78
|
readonly parentId: string;
|
|
76
79
|
/**
|
|
77
|
-
* `(list of maps)` Job's periodic configuration
|
|
80
|
+
* `(list of maps)` Job's periodic configuration.
|
|
78
81
|
*/
|
|
79
82
|
readonly periodicConfigs: outputs.GetJobPeriodicConfig[];
|
|
80
83
|
/**
|
|
@@ -104,15 +107,19 @@ export interface GetJobResult {
|
|
|
104
107
|
/**
|
|
105
108
|
* `(integer)` Job submission date.
|
|
106
109
|
*/
|
|
107
|
-
readonly submitTime:
|
|
110
|
+
readonly submitTime: string;
|
|
108
111
|
/**
|
|
109
|
-
* `(list of maps)` A list of
|
|
112
|
+
* `(list of maps)` A list of the job's task groups.
|
|
110
113
|
*/
|
|
111
114
|
readonly taskGroups: outputs.GetJobTaskGroup[];
|
|
112
115
|
/**
|
|
113
|
-
* `(string)`
|
|
116
|
+
* `(string)` Volume type.
|
|
114
117
|
*/
|
|
115
118
|
readonly type: string;
|
|
119
|
+
/**
|
|
120
|
+
* `(list of maps)` Job-level update strategy returned by Nomad.
|
|
121
|
+
*/
|
|
122
|
+
readonly updateStrategies: outputs.GetJobUpdateStrategy[];
|
|
116
123
|
/**
|
|
117
124
|
* `(integer)` Version of the specified job.
|
|
118
125
|
*/
|
package/getJob.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getJob.js","sourceRoot":"","sources":["../getJob.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,EAAE;QACtD,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wBAMC;
|
|
1
|
+
{"version":3,"file":"getJob.js","sourceRoot":"","sources":["../getJob.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,EAAE;QACtD,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wBAMC;AA2GD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAAiC;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2BAA2B,EAAE;QAC5D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC"}
|
package/getJobParser.d.ts
CHANGED
|
@@ -8,34 +8,33 @@ export declare function getJobParser(args: GetJobParserArgs, opts?: pulumi.Invok
|
|
|
8
8
|
*/
|
|
9
9
|
export interface GetJobParserArgs {
|
|
10
10
|
/**
|
|
11
|
-
* `(boolean:
|
|
11
|
+
* `(boolean: false)` - Flag to enable setting any unset fields to their default values.
|
|
12
12
|
*/
|
|
13
13
|
canonicalize?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* `(string)` -
|
|
15
|
+
* `(string: <required>)` - The HCL definition of the job.
|
|
16
16
|
*/
|
|
17
17
|
hcl: string;
|
|
18
|
+
/**
|
|
19
|
+
* `(string: "")` - HCL2 variables to pass to the job parser. Interpreted as the content of a variables file.
|
|
20
|
+
*/
|
|
21
|
+
variables?: string;
|
|
18
22
|
}
|
|
19
23
|
/**
|
|
20
24
|
* A collection of values returned by getJobParser.
|
|
21
25
|
*/
|
|
22
26
|
export interface GetJobParserResult {
|
|
23
|
-
/**
|
|
24
|
-
* `(boolean: true)` - flag to enable setting any unset fields to their default values.
|
|
25
|
-
*/
|
|
26
27
|
readonly canonicalize?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* `(string)` - the HCL definition of the job.
|
|
29
|
-
*/
|
|
30
28
|
readonly hcl: string;
|
|
31
29
|
/**
|
|
32
30
|
* The provider-assigned unique ID for this managed resource.
|
|
33
31
|
*/
|
|
34
32
|
readonly id: string;
|
|
35
33
|
/**
|
|
36
|
-
* `(string)` -
|
|
34
|
+
* `(string)` - The parsed job as JSON string.
|
|
37
35
|
*/
|
|
38
36
|
readonly json: string;
|
|
37
|
+
readonly variables?: string;
|
|
39
38
|
}
|
|
40
39
|
/**
|
|
41
40
|
* Parse a HCL jobspec and produce the equivalent JSON encoded job.
|
|
@@ -46,11 +45,15 @@ export declare function getJobParserOutput(args: GetJobParserOutputArgs, opts?:
|
|
|
46
45
|
*/
|
|
47
46
|
export interface GetJobParserOutputArgs {
|
|
48
47
|
/**
|
|
49
|
-
* `(boolean:
|
|
48
|
+
* `(boolean: false)` - Flag to enable setting any unset fields to their default values.
|
|
50
49
|
*/
|
|
51
50
|
canonicalize?: pulumi.Input<boolean>;
|
|
52
51
|
/**
|
|
53
|
-
* `(string)` -
|
|
52
|
+
* `(string: <required>)` - The HCL definition of the job.
|
|
54
53
|
*/
|
|
55
54
|
hcl: pulumi.Input<string>;
|
|
55
|
+
/**
|
|
56
|
+
* `(string: "")` - HCL2 variables to pass to the job parser. Interpreted as the content of a variables file.
|
|
57
|
+
*/
|
|
58
|
+
variables?: pulumi.Input<string>;
|
|
56
59
|
}
|
package/getJobParser.js
CHANGED
|
@@ -13,6 +13,7 @@ function getJobParser(args, opts) {
|
|
|
13
13
|
return pulumi.runtime.invoke("nomad:index/getJobParser:getJobParser", {
|
|
14
14
|
"canonicalize": args.canonicalize,
|
|
15
15
|
"hcl": args.hcl,
|
|
16
|
+
"variables": args.variables,
|
|
16
17
|
}, opts);
|
|
17
18
|
}
|
|
18
19
|
exports.getJobParser = getJobParser;
|
|
@@ -24,6 +25,7 @@ function getJobParserOutput(args, opts) {
|
|
|
24
25
|
return pulumi.runtime.invokeOutput("nomad:index/getJobParser:getJobParser", {
|
|
25
26
|
"canonicalize": args.canonicalize,
|
|
26
27
|
"hcl": args.hcl,
|
|
28
|
+
"variables": args.variables,
|
|
27
29
|
}, opts);
|
|
28
30
|
}
|
|
29
31
|
exports.getJobParserOutput = getJobParserOutput;
|
package/getJobParser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getJobParser.js","sourceRoot":"","sources":["../getJobParser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"getJobParser.js","sourceRoot":"","sources":["../getJobParser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AAoCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC"}
|
package/getNamespace.d.ts
CHANGED
|
@@ -32,6 +32,10 @@ export interface GetNamespaceResult {
|
|
|
32
32
|
* `(block)` - Capabilities of the namespace
|
|
33
33
|
*/
|
|
34
34
|
readonly capabilities: outputs.GetNamespaceCapability[];
|
|
35
|
+
/**
|
|
36
|
+
* `(block)` - Consul configuration for the namespace.
|
|
37
|
+
*/
|
|
38
|
+
readonly consulConfigs: outputs.GetNamespaceConsulConfig[];
|
|
35
39
|
/**
|
|
36
40
|
* `(string)` - The description of the namespace.
|
|
37
41
|
*/
|
|
@@ -47,11 +51,18 @@ export interface GetNamespaceResult {
|
|
|
47
51
|
[key: string]: string;
|
|
48
52
|
};
|
|
49
53
|
readonly name: string;
|
|
54
|
+
/**
|
|
55
|
+
* `(block)` - Node pool configuration for the namespace.
|
|
56
|
+
*/
|
|
50
57
|
readonly nodePoolConfigs: outputs.GetNamespaceNodePoolConfig[];
|
|
51
58
|
/**
|
|
52
59
|
* `(string)` - The quota associated with the namespace.
|
|
53
60
|
*/
|
|
54
61
|
readonly quota: string;
|
|
62
|
+
/**
|
|
63
|
+
* `(block)` - Vault configuration for the namespace.
|
|
64
|
+
*/
|
|
65
|
+
readonly vaultConfigs: outputs.GetNamespaceVaultConfig[];
|
|
55
66
|
}
|
|
56
67
|
/**
|
|
57
68
|
* Get information about a namespace in Nomad.
|
package/getNamespace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNamespace.js","sourceRoot":"","sources":["../getNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;
|
|
1
|
+
{"version":3,"file":"getNamespace.js","sourceRoot":"","sources":["../getNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AAkDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
|
package/getNode.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Get information about a specific Nomad node by its ID.
|
|
5
|
+
*
|
|
6
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
7
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
8
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
9
|
+
* without an agent restart.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as nomad from "@pulumi/nomad";
|
|
16
|
+
*
|
|
17
|
+
* const myNode = nomad.getNode({
|
|
18
|
+
* nodeId: "abc123",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getNode(args: GetNodeArgs, opts?: pulumi.InvokeOptions): Promise<GetNodeResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getNode.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetNodeArgs {
|
|
27
|
+
/**
|
|
28
|
+
* `(string: <required>)` - The ID of the node to look up.
|
|
29
|
+
*/
|
|
30
|
+
nodeId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A collection of values returned by getNode.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetNodeResult {
|
|
36
|
+
/**
|
|
37
|
+
* `(map of string)` - Driver-specific attributes.
|
|
38
|
+
*/
|
|
39
|
+
readonly attributes: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* `(string)` - The datacenter of the node.
|
|
44
|
+
*/
|
|
45
|
+
readonly datacenter: string;
|
|
46
|
+
/**
|
|
47
|
+
* `(bool)` - Whether the node is in drain mode. This value is ephemeral
|
|
48
|
+
* and can change without an agent restart.
|
|
49
|
+
*/
|
|
50
|
+
readonly drain: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* `(list)` - A list of driver information for the node.
|
|
53
|
+
*/
|
|
54
|
+
readonly drivers: outputs.GetNodeDriver[];
|
|
55
|
+
/**
|
|
56
|
+
* `(list)` - A list of host volumes on the node.
|
|
57
|
+
*/
|
|
58
|
+
readonly hostVolumes: outputs.GetNodeHostVolume[];
|
|
59
|
+
/**
|
|
60
|
+
* `(string)` - The HTTP address of the node.
|
|
61
|
+
*/
|
|
62
|
+
readonly httpAddr: string;
|
|
63
|
+
/**
|
|
64
|
+
* The provider-assigned unique ID for this managed resource.
|
|
65
|
+
*/
|
|
66
|
+
readonly id: string;
|
|
67
|
+
/**
|
|
68
|
+
* `(map of string)` - A map of metadata for the node.
|
|
69
|
+
*/
|
|
70
|
+
readonly meta: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* `(string)` - The device name.
|
|
75
|
+
*/
|
|
76
|
+
readonly name: string;
|
|
77
|
+
/**
|
|
78
|
+
* `(string)` - The node class of the node.
|
|
79
|
+
*/
|
|
80
|
+
readonly nodeClass: string;
|
|
81
|
+
readonly nodeId: string;
|
|
82
|
+
/**
|
|
83
|
+
* `(string)` - The node pool of the node.
|
|
84
|
+
*/
|
|
85
|
+
readonly nodePool: string;
|
|
86
|
+
/**
|
|
87
|
+
* `(list)` - Resources available on the node.
|
|
88
|
+
*/
|
|
89
|
+
readonly nodeResources: outputs.GetNodeNodeResource[];
|
|
90
|
+
/**
|
|
91
|
+
* `(list)` - Resources reserved on the node.
|
|
92
|
+
*/
|
|
93
|
+
readonly reservedResources: outputs.GetNodeReservedResource[];
|
|
94
|
+
/**
|
|
95
|
+
* `(string)` - The scheduling eligibility of the node.
|
|
96
|
+
* This value is ephemeral and can change without an agent restart.
|
|
97
|
+
*/
|
|
98
|
+
readonly schedulingEligibility: string;
|
|
99
|
+
/**
|
|
100
|
+
* `(string)` - The status of the node. This value is ephemeral and
|
|
101
|
+
* can change without an agent restart.
|
|
102
|
+
*/
|
|
103
|
+
readonly status: string;
|
|
104
|
+
/**
|
|
105
|
+
* `(string)` - The status description of the node. This
|
|
106
|
+
* value is ephemeral and can change without an agent restart.
|
|
107
|
+
*/
|
|
108
|
+
readonly statusDescription: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get information about a specific Nomad node by its ID.
|
|
112
|
+
*
|
|
113
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
114
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
115
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
116
|
+
* without an agent restart.
|
|
117
|
+
*
|
|
118
|
+
* ## Example Usage
|
|
119
|
+
*
|
|
120
|
+
* ```typescript
|
|
121
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
122
|
+
* import * as nomad from "@pulumi/nomad";
|
|
123
|
+
*
|
|
124
|
+
* const myNode = nomad.getNode({
|
|
125
|
+
* nodeId: "abc123",
|
|
126
|
+
* });
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
export declare function getNodeOutput(args: GetNodeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodeResult>;
|
|
130
|
+
/**
|
|
131
|
+
* A collection of arguments for invoking getNode.
|
|
132
|
+
*/
|
|
133
|
+
export interface GetNodeOutputArgs {
|
|
134
|
+
/**
|
|
135
|
+
* `(string: <required>)` - The ID of the node to look up.
|
|
136
|
+
*/
|
|
137
|
+
nodeId: pulumi.Input<string>;
|
|
138
|
+
}
|
package/getNode.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getNodeOutput = exports.getNode = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Get information about a specific Nomad node by its ID.
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
12
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
13
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
14
|
+
* without an agent restart.
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as nomad from "@pulumi/nomad";
|
|
21
|
+
*
|
|
22
|
+
* const myNode = nomad.getNode({
|
|
23
|
+
* nodeId: "abc123",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getNode(args, opts) {
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
|
+
return pulumi.runtime.invoke("nomad:index/getNode:getNode", {
|
|
30
|
+
"nodeId": args.nodeId,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getNode = getNode;
|
|
34
|
+
/**
|
|
35
|
+
* Get information about a specific Nomad node by its ID.
|
|
36
|
+
*
|
|
37
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
38
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
39
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
40
|
+
* without an agent restart.
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as nomad from "@pulumi/nomad";
|
|
47
|
+
*
|
|
48
|
+
* const myNode = nomad.getNode({
|
|
49
|
+
* nodeId: "abc123",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
function getNodeOutput(args, opts) {
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
55
|
+
return pulumi.runtime.invokeOutput("nomad:index/getNode:getNode", {
|
|
56
|
+
"nodeId": args.nodeId,
|
|
57
|
+
}, opts);
|
|
58
|
+
}
|
|
59
|
+
exports.getNodeOutput = getNodeOutput;
|
|
60
|
+
//# sourceMappingURL=getNode.js.map
|
package/getNode.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNode.js","sourceRoot":"","sources":["../getNode.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE;QACxD,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAsFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE;QAC9D,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
|
package/getNodePool.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export interface GetNodePoolResult {
|
|
|
44
44
|
[key: string]: string;
|
|
45
45
|
};
|
|
46
46
|
readonly name: string;
|
|
47
|
+
/**
|
|
48
|
+
* `(string)` - The TTL applied to node identities issued to
|
|
49
|
+
* nodes in this pool.
|
|
50
|
+
*/
|
|
51
|
+
readonly nodeIdentityTtl: string;
|
|
47
52
|
/**
|
|
48
53
|
* `(block)` - Scheduler configuration for the node pool.
|
|
49
54
|
*/
|
package/getNodePool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNodePool.js","sourceRoot":"","sources":["../getNodePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;
|
|
1
|
+
{"version":3,"file":"getNodePool.js","sourceRoot":"","sources":["../getNodePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AAwCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,qCAAqC,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
|
package/getNodes.d.ts
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve a list of nodes from Nomad.
|
|
5
|
+
*
|
|
6
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
7
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
8
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
9
|
+
* without an agent restart.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as nomad from "@pulumi/nomad";
|
|
16
|
+
*
|
|
17
|
+
* const all = nomad.getNodes({});
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ### Filtering by status
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as nomad from "@pulumi/nomad";
|
|
25
|
+
*
|
|
26
|
+
* const ready = nomad.getNodes({
|
|
27
|
+
* filter: "Status == \"ready\"",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ### Including OS attributes and resources
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as nomad from "@pulumi/nomad";
|
|
36
|
+
*
|
|
37
|
+
* const withDetails = nomad.getNodes({
|
|
38
|
+
* os: true,
|
|
39
|
+
* resources: true,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function getNodes(args?: GetNodesArgs, opts?: pulumi.InvokeOptions): Promise<GetNodesResult>;
|
|
44
|
+
/**
|
|
45
|
+
* A collection of arguments for invoking getNodes.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetNodesArgs {
|
|
48
|
+
/**
|
|
49
|
+
* `(string: <optional>)` - Specifies the [expression][nomadApiFilter]
|
|
50
|
+
* used to filter the results.
|
|
51
|
+
*/
|
|
52
|
+
filter?: string;
|
|
53
|
+
/**
|
|
54
|
+
* `(bool: false)` - If true, include special attributes such as operating
|
|
55
|
+
* system name in the response. When false, the `attributes` map will not contain
|
|
56
|
+
* OS-related attributes.
|
|
57
|
+
*/
|
|
58
|
+
os?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* `(string: <optional>)` - Specifies a string to filter nodes based on
|
|
61
|
+
* an ID prefix. Must have an even number of hexadecimal characters (0-9a-f).
|
|
62
|
+
*/
|
|
63
|
+
prefix?: string;
|
|
64
|
+
/**
|
|
65
|
+
* `(bool: false)` - If true, include `nodeResources` and
|
|
66
|
+
* `reservedResources` in the response.
|
|
67
|
+
*/
|
|
68
|
+
resources?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A collection of values returned by getNodes.
|
|
72
|
+
*/
|
|
73
|
+
export interface GetNodesResult {
|
|
74
|
+
readonly filter?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The provider-assigned unique ID for this managed resource.
|
|
77
|
+
*/
|
|
78
|
+
readonly id: string;
|
|
79
|
+
/**
|
|
80
|
+
* `(list of nodes)` - A list of nodes matching the search criteria.
|
|
81
|
+
*/
|
|
82
|
+
readonly nodes: outputs.GetNodesNode[];
|
|
83
|
+
readonly os?: boolean;
|
|
84
|
+
readonly prefix?: string;
|
|
85
|
+
readonly resources?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve a list of nodes from Nomad.
|
|
89
|
+
*
|
|
90
|
+
* > **Note:** All node attribute values can change if the node is restarted and
|
|
91
|
+
* its fingerprint changes. In particular, the `drain`, `status`, `statusDescription`,
|
|
92
|
+
* and `schedulingEligibility` fields are ephemeral and can change at any time
|
|
93
|
+
* without an agent restart.
|
|
94
|
+
*
|
|
95
|
+
* ## Example Usage
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
+
* import * as nomad from "@pulumi/nomad";
|
|
100
|
+
*
|
|
101
|
+
* const all = nomad.getNodes({});
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ### Filtering by status
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as nomad from "@pulumi/nomad";
|
|
109
|
+
*
|
|
110
|
+
* const ready = nomad.getNodes({
|
|
111
|
+
* filter: "Status == \"ready\"",
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* ### Including OS attributes and resources
|
|
116
|
+
*
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as nomad from "@pulumi/nomad";
|
|
120
|
+
*
|
|
121
|
+
* const withDetails = nomad.getNodes({
|
|
122
|
+
* os: true,
|
|
123
|
+
* resources: true,
|
|
124
|
+
* });
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
export declare function getNodesOutput(args?: GetNodesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodesResult>;
|
|
128
|
+
/**
|
|
129
|
+
* A collection of arguments for invoking getNodes.
|
|
130
|
+
*/
|
|
131
|
+
export interface GetNodesOutputArgs {
|
|
132
|
+
/**
|
|
133
|
+
* `(string: <optional>)` - Specifies the [expression][nomadApiFilter]
|
|
134
|
+
* used to filter the results.
|
|
135
|
+
*/
|
|
136
|
+
filter?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* `(bool: false)` - If true, include special attributes such as operating
|
|
139
|
+
* system name in the response. When false, the `attributes` map will not contain
|
|
140
|
+
* OS-related attributes.
|
|
141
|
+
*/
|
|
142
|
+
os?: pulumi.Input<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* `(string: <optional>)` - Specifies a string to filter nodes based on
|
|
145
|
+
* an ID prefix. Must have an even number of hexadecimal characters (0-9a-f).
|
|
146
|
+
*/
|
|
147
|
+
prefix?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* `(bool: false)` - If true, include `nodeResources` and
|
|
150
|
+
* `reservedResources` in the response.
|
|
151
|
+
*/
|
|
152
|
+
resources?: pulumi.Input<boolean>;
|
|
153
|
+
}
|