@pulumi/digitalocean 4.82.0 → 4.83.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/getMicrovm.d.ts +174 -0
- package/getMicrovm.d.ts.map +1 -0
- package/getMicrovm.js +117 -0
- package/getMicrovm.js.map +1 -0
- package/getMicrovmCheckpoints.d.ts +131 -0
- package/getMicrovmCheckpoints.d.ts.map +1 -0
- package/getMicrovmCheckpoints.js +119 -0
- package/getMicrovmCheckpoints.js.map +1 -0
- package/getMicrovms.d.ts +174 -0
- package/getMicrovms.d.ts.map +1 -0
- package/getMicrovms.js +149 -0
- package/getMicrovms.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +22 -3
- package/index.js.map +1 -1
- package/microvm.d.ts +343 -0
- package/microvm.d.ts.map +1 -0
- package/microvm.js +201 -0
- package/microvm.js.map +1 -0
- package/microvmCheckpoint.d.ts +157 -0
- package/microvmCheckpoint.d.ts.map +1 -0
- package/microvmCheckpoint.js +129 -0
- package/microvmCheckpoint.js.map +1 -0
- package/package.json +2 -2
- package/types/input.d.ts +212 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +380 -0
- package/types/output.d.ts.map +1 -1
package/getMicrovm.d.ts
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Get information on a MicroVM for use in other resources. This is useful if the
|
|
5
|
+
* MicroVM is not managed by Terraform or you need to use any of its data.
|
|
6
|
+
*
|
|
7
|
+
* **Note:** This data source returns a single MicroVM. When looking up by `name`,
|
|
8
|
+
* an error is triggered if more than one MicroVM has that name.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:** MicroVMs are in public preview.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* Get the MicroVM by name:
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
19
|
+
*
|
|
20
|
+
* const example = digitalocean.getMicrovm({
|
|
21
|
+
* name: "example-microvm",
|
|
22
|
+
* });
|
|
23
|
+
* export const hostname = example.then(example => example.urls?.[0]?.hostname);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* Get the MicroVM by ID:
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
31
|
+
*
|
|
32
|
+
* const example = digitalocean.getMicrovm({
|
|
33
|
+
* id: "506f78a4-e098-11e5-ad9f-000f53306ae1",
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function getMicrovm(args?: GetMicrovmArgs, opts?: pulumi.InvokeOptions): Promise<GetMicrovmResult>;
|
|
38
|
+
/**
|
|
39
|
+
* A collection of arguments for invoking getMicrovm.
|
|
40
|
+
*/
|
|
41
|
+
export interface GetMicrovmArgs {
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the MicroVM.
|
|
44
|
+
*/
|
|
45
|
+
id?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the MicroVM.
|
|
48
|
+
*/
|
|
49
|
+
name?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A collection of values returned by getMicrovm.
|
|
53
|
+
*/
|
|
54
|
+
export interface GetMicrovmResult {
|
|
55
|
+
/**
|
|
56
|
+
* Auto-pause configuration:
|
|
57
|
+
*/
|
|
58
|
+
readonly autoPauses: outputs.GetMicrovmAutoPause[];
|
|
59
|
+
/**
|
|
60
|
+
* Whether the MicroVM resumes automatically on incoming HTTP traffic.
|
|
61
|
+
*/
|
|
62
|
+
readonly autoResume: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The date and time the MicroVM was created.
|
|
65
|
+
*/
|
|
66
|
+
readonly createdAt: string;
|
|
67
|
+
/**
|
|
68
|
+
* The observed lifecycle state of the MicroVM, such as `running` or `paused`.
|
|
69
|
+
*/
|
|
70
|
+
readonly currentState: string;
|
|
71
|
+
readonly environment: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* A description of the failure when `currentState` is `failed`.
|
|
76
|
+
*/
|
|
77
|
+
readonly failureReason: string;
|
|
78
|
+
readonly httpPort: number;
|
|
79
|
+
/**
|
|
80
|
+
* The HTTP protocol the workload serves: `http` or `http2`.
|
|
81
|
+
*/
|
|
82
|
+
readonly httpProtocol: string;
|
|
83
|
+
/**
|
|
84
|
+
* The ID of the MicroVM.
|
|
85
|
+
*/
|
|
86
|
+
readonly id: string;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the MicroVM.
|
|
89
|
+
*/
|
|
90
|
+
readonly name: string;
|
|
91
|
+
/**
|
|
92
|
+
* The networking mode: `public` or `vpc`.
|
|
93
|
+
*/
|
|
94
|
+
readonly networking: string;
|
|
95
|
+
/**
|
|
96
|
+
* The guest ports open for ingress.
|
|
97
|
+
*/
|
|
98
|
+
readonly ports: number[];
|
|
99
|
+
/**
|
|
100
|
+
* The slug of the region the MicroVM is in.
|
|
101
|
+
*/
|
|
102
|
+
readonly region: string;
|
|
103
|
+
/**
|
|
104
|
+
* The compute size of the MicroVM:
|
|
105
|
+
*/
|
|
106
|
+
readonly sizes: outputs.GetMicrovmSize[];
|
|
107
|
+
/**
|
|
108
|
+
* What the MicroVM runs:
|
|
109
|
+
*/
|
|
110
|
+
readonly sources: outputs.GetMicrovmSource[];
|
|
111
|
+
readonly state: string;
|
|
112
|
+
/**
|
|
113
|
+
* The tags applied to the MicroVM.
|
|
114
|
+
*/
|
|
115
|
+
readonly tags: string[];
|
|
116
|
+
/**
|
|
117
|
+
* A list of ingress URLs for the MicroVM:
|
|
118
|
+
*/
|
|
119
|
+
readonly urls: outputs.GetMicrovmUrl[];
|
|
120
|
+
/**
|
|
121
|
+
* The uniform resource name (URN) for the MicroVM.
|
|
122
|
+
*/
|
|
123
|
+
readonly urn: string;
|
|
124
|
+
readonly vpcUuid: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get information on a MicroVM for use in other resources. This is useful if the
|
|
128
|
+
* MicroVM is not managed by Terraform or you need to use any of its data.
|
|
129
|
+
*
|
|
130
|
+
* **Note:** This data source returns a single MicroVM. When looking up by `name`,
|
|
131
|
+
* an error is triggered if more than one MicroVM has that name.
|
|
132
|
+
*
|
|
133
|
+
* > **Note:** MicroVMs are in public preview.
|
|
134
|
+
*
|
|
135
|
+
* ## Example Usage
|
|
136
|
+
*
|
|
137
|
+
* Get the MicroVM by name:
|
|
138
|
+
*
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
141
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
142
|
+
*
|
|
143
|
+
* const example = digitalocean.getMicrovm({
|
|
144
|
+
* name: "example-microvm",
|
|
145
|
+
* });
|
|
146
|
+
* export const hostname = example.then(example => example.urls?.[0]?.hostname);
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* Get the MicroVM by ID:
|
|
150
|
+
*
|
|
151
|
+
* ```typescript
|
|
152
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
153
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
154
|
+
*
|
|
155
|
+
* const example = digitalocean.getMicrovm({
|
|
156
|
+
* id: "506f78a4-e098-11e5-ad9f-000f53306ae1",
|
|
157
|
+
* });
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export declare function getMicrovmOutput(args?: GetMicrovmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMicrovmResult>;
|
|
161
|
+
/**
|
|
162
|
+
* A collection of arguments for invoking getMicrovm.
|
|
163
|
+
*/
|
|
164
|
+
export interface GetMicrovmOutputArgs {
|
|
165
|
+
/**
|
|
166
|
+
* The ID of the MicroVM.
|
|
167
|
+
*/
|
|
168
|
+
id?: pulumi.Input<string | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* The name of the MicroVM.
|
|
171
|
+
*/
|
|
172
|
+
name?: pulumi.Input<string | undefined>;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=getMicrovm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMicrovm.d.ts","sourceRoot":"","sources":["../getMicrovm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAOxG;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,mBAAmB,EAAE,CAAC;IACnD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,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S,CAAC,CAAC;CAC3C"}
|
package/getMicrovm.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getMicrovmOutput = exports.getMicrovm = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Get information on a MicroVM for use in other resources. This is useful if the
|
|
33
|
+
* MicroVM is not managed by Terraform or you need to use any of its data.
|
|
34
|
+
*
|
|
35
|
+
* **Note:** This data source returns a single MicroVM. When looking up by `name`,
|
|
36
|
+
* an error is triggered if more than one MicroVM has that name.
|
|
37
|
+
*
|
|
38
|
+
* > **Note:** MicroVMs are in public preview.
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* Get the MicroVM by name:
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
47
|
+
*
|
|
48
|
+
* const example = digitalocean.getMicrovm({
|
|
49
|
+
* name: "example-microvm",
|
|
50
|
+
* });
|
|
51
|
+
* export const hostname = example.then(example => example.urls?.[0]?.hostname);
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* Get the MicroVM by ID:
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
59
|
+
*
|
|
60
|
+
* const example = digitalocean.getMicrovm({
|
|
61
|
+
* id: "506f78a4-e098-11e5-ad9f-000f53306ae1",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
function getMicrovm(args, opts) {
|
|
66
|
+
args = args || {};
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
68
|
+
return pulumi.runtime.invoke("digitalocean:index/getMicrovm:getMicrovm", {
|
|
69
|
+
"id": args.id,
|
|
70
|
+
"name": args.name,
|
|
71
|
+
}, opts);
|
|
72
|
+
}
|
|
73
|
+
exports.getMicrovm = getMicrovm;
|
|
74
|
+
/**
|
|
75
|
+
* Get information on a MicroVM for use in other resources. This is useful if the
|
|
76
|
+
* MicroVM is not managed by Terraform or you need to use any of its data.
|
|
77
|
+
*
|
|
78
|
+
* **Note:** This data source returns a single MicroVM. When looking up by `name`,
|
|
79
|
+
* an error is triggered if more than one MicroVM has that name.
|
|
80
|
+
*
|
|
81
|
+
* > **Note:** MicroVMs are in public preview.
|
|
82
|
+
*
|
|
83
|
+
* ## Example Usage
|
|
84
|
+
*
|
|
85
|
+
* Get the MicroVM by name:
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
90
|
+
*
|
|
91
|
+
* const example = digitalocean.getMicrovm({
|
|
92
|
+
* name: "example-microvm",
|
|
93
|
+
* });
|
|
94
|
+
* export const hostname = example.then(example => example.urls?.[0]?.hostname);
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* Get the MicroVM by ID:
|
|
98
|
+
*
|
|
99
|
+
* ```typescript
|
|
100
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
101
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
102
|
+
*
|
|
103
|
+
* const example = digitalocean.getMicrovm({
|
|
104
|
+
* id: "506f78a4-e098-11e5-ad9f-000f53306ae1",
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
function getMicrovmOutput(args, opts) {
|
|
109
|
+
args = args || {};
|
|
110
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
111
|
+
return pulumi.runtime.invokeOutput("digitalocean:index/getMicrovm:getMicrovm", {
|
|
112
|
+
"id": args.id,
|
|
113
|
+
"name": args.name,
|
|
114
|
+
}, opts);
|
|
115
|
+
}
|
|
116
|
+
exports.getMicrovmOutput = getMicrovmOutput;
|
|
117
|
+
//# sourceMappingURL=getMicrovm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMicrovm.js","sourceRoot":"","sources":["../getMicrovm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AAyFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAAiC;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4CAOC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Get information on MicroVM checkpoints for use in other resources, with the
|
|
6
|
+
* ability to filter and sort the results. If no arguments are specified, all
|
|
7
|
+
* checkpoints on the account are returned.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** MicroVMs are in public preview.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Get the checkpoints captured from a MicroVM and restore the newest one:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
18
|
+
*
|
|
19
|
+
* const web = digitalocean.getMicrovmCheckpoints({
|
|
20
|
+
* microvmId: webDigitaloceanMicrovm.id,
|
|
21
|
+
* filters: [{
|
|
22
|
+
* key: "status",
|
|
23
|
+
* values: ["CHECKPOINT_AVAILABLE"],
|
|
24
|
+
* }],
|
|
25
|
+
* sorts: [{
|
|
26
|
+
* key: "created_at",
|
|
27
|
+
* direction: "desc",
|
|
28
|
+
* }],
|
|
29
|
+
* });
|
|
30
|
+
* const restored = new digitalocean.Microvm("restored", {
|
|
31
|
+
* name: "example-restored",
|
|
32
|
+
* source: {
|
|
33
|
+
* checkpointId: web.then(web => web.checkpoints?.[0]?.id),
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function getMicrovmCheckpoints(args?: GetMicrovmCheckpointsArgs, opts?: pulumi.InvokeOptions): Promise<GetMicrovmCheckpointsResult>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of arguments for invoking getMicrovmCheckpoints.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetMicrovmCheckpointsArgs {
|
|
43
|
+
/**
|
|
44
|
+
* Filter the results.
|
|
45
|
+
* The `filter` block is documented below.
|
|
46
|
+
*/
|
|
47
|
+
filters?: inputs.GetMicrovmCheckpointsFilter[];
|
|
48
|
+
/**
|
|
49
|
+
* Only return checkpoints captured from this MicroVM.
|
|
50
|
+
*/
|
|
51
|
+
microvmId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Sort the results.
|
|
54
|
+
* The `sort` block is documented below.
|
|
55
|
+
*/
|
|
56
|
+
sorts?: inputs.GetMicrovmCheckpointsSort[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A collection of values returned by getMicrovmCheckpoints.
|
|
60
|
+
*/
|
|
61
|
+
export interface GetMicrovmCheckpointsResult {
|
|
62
|
+
/**
|
|
63
|
+
* A list of checkpoints satisfying any `filter` and `sort` criteria. Each checkpoint has the following attributes:
|
|
64
|
+
*/
|
|
65
|
+
readonly checkpoints: outputs.GetMicrovmCheckpointsCheckpoint[];
|
|
66
|
+
readonly filters?: outputs.GetMicrovmCheckpointsFilter[];
|
|
67
|
+
/**
|
|
68
|
+
* The provider-assigned unique ID for this managed resource.
|
|
69
|
+
*/
|
|
70
|
+
readonly id: string;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the MicroVM the checkpoint was captured from.
|
|
73
|
+
*/
|
|
74
|
+
readonly microvmId?: string;
|
|
75
|
+
readonly sorts?: outputs.GetMicrovmCheckpointsSort[];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get information on MicroVM checkpoints for use in other resources, with the
|
|
79
|
+
* ability to filter and sort the results. If no arguments are specified, all
|
|
80
|
+
* checkpoints on the account are returned.
|
|
81
|
+
*
|
|
82
|
+
* > **Note:** MicroVMs are in public preview.
|
|
83
|
+
*
|
|
84
|
+
* ## Example Usage
|
|
85
|
+
*
|
|
86
|
+
* Get the checkpoints captured from a MicroVM and restore the newest one:
|
|
87
|
+
*
|
|
88
|
+
* ```typescript
|
|
89
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
90
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
91
|
+
*
|
|
92
|
+
* const web = digitalocean.getMicrovmCheckpoints({
|
|
93
|
+
* microvmId: webDigitaloceanMicrovm.id,
|
|
94
|
+
* filters: [{
|
|
95
|
+
* key: "status",
|
|
96
|
+
* values: ["CHECKPOINT_AVAILABLE"],
|
|
97
|
+
* }],
|
|
98
|
+
* sorts: [{
|
|
99
|
+
* key: "created_at",
|
|
100
|
+
* direction: "desc",
|
|
101
|
+
* }],
|
|
102
|
+
* });
|
|
103
|
+
* const restored = new digitalocean.Microvm("restored", {
|
|
104
|
+
* name: "example-restored",
|
|
105
|
+
* source: {
|
|
106
|
+
* checkpointId: web.then(web => web.checkpoints?.[0]?.id),
|
|
107
|
+
* },
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare function getMicrovmCheckpointsOutput(args?: GetMicrovmCheckpointsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMicrovmCheckpointsResult>;
|
|
112
|
+
/**
|
|
113
|
+
* A collection of arguments for invoking getMicrovmCheckpoints.
|
|
114
|
+
*/
|
|
115
|
+
export interface GetMicrovmCheckpointsOutputArgs {
|
|
116
|
+
/**
|
|
117
|
+
* Filter the results.
|
|
118
|
+
* The `filter` block is documented below.
|
|
119
|
+
*/
|
|
120
|
+
filters?: pulumi.Input<pulumi.Input<inputs.GetMicrovmCheckpointsFilterArgs>[] | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* Only return checkpoints captured from this MicroVM.
|
|
123
|
+
*/
|
|
124
|
+
microvmId?: pulumi.Input<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Sort the results.
|
|
127
|
+
* The `sort` block is documented below.
|
|
128
|
+
*/
|
|
129
|
+
sorts?: pulumi.Input<pulumi.Input<inputs.GetMicrovmCheckpointsSortArgs>[] | undefined>;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=getMicrovmCheckpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMicrovmCheckpoints.d.ts","sourceRoot":"","sources":["../getMicrovmCheckpoints.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAi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OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC1F"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getMicrovmCheckpointsOutput = exports.getMicrovmCheckpoints = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Get information on MicroVM checkpoints for use in other resources, with the
|
|
33
|
+
* ability to filter and sort the results. If no arguments are specified, all
|
|
34
|
+
* checkpoints on the account are returned.
|
|
35
|
+
*
|
|
36
|
+
* > **Note:** MicroVMs are in public preview.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* Get the checkpoints captured from a MicroVM and restore the newest one:
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
45
|
+
*
|
|
46
|
+
* const web = digitalocean.getMicrovmCheckpoints({
|
|
47
|
+
* microvmId: webDigitaloceanMicrovm.id,
|
|
48
|
+
* filters: [{
|
|
49
|
+
* key: "status",
|
|
50
|
+
* values: ["CHECKPOINT_AVAILABLE"],
|
|
51
|
+
* }],
|
|
52
|
+
* sorts: [{
|
|
53
|
+
* key: "created_at",
|
|
54
|
+
* direction: "desc",
|
|
55
|
+
* }],
|
|
56
|
+
* });
|
|
57
|
+
* const restored = new digitalocean.Microvm("restored", {
|
|
58
|
+
* name: "example-restored",
|
|
59
|
+
* source: {
|
|
60
|
+
* checkpointId: web.then(web => web.checkpoints?.[0]?.id),
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
function getMicrovmCheckpoints(args, opts) {
|
|
66
|
+
args = args || {};
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
68
|
+
return pulumi.runtime.invoke("digitalocean:index/getMicrovmCheckpoints:getMicrovmCheckpoints", {
|
|
69
|
+
"filters": args.filters,
|
|
70
|
+
"microvmId": args.microvmId,
|
|
71
|
+
"sorts": args.sorts,
|
|
72
|
+
}, opts);
|
|
73
|
+
}
|
|
74
|
+
exports.getMicrovmCheckpoints = getMicrovmCheckpoints;
|
|
75
|
+
/**
|
|
76
|
+
* Get information on MicroVM checkpoints for use in other resources, with the
|
|
77
|
+
* ability to filter and sort the results. If no arguments are specified, all
|
|
78
|
+
* checkpoints on the account are returned.
|
|
79
|
+
*
|
|
80
|
+
* > **Note:** MicroVMs are in public preview.
|
|
81
|
+
*
|
|
82
|
+
* ## Example Usage
|
|
83
|
+
*
|
|
84
|
+
* Get the checkpoints captured from a MicroVM and restore the newest one:
|
|
85
|
+
*
|
|
86
|
+
* ```typescript
|
|
87
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
88
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
89
|
+
*
|
|
90
|
+
* const web = digitalocean.getMicrovmCheckpoints({
|
|
91
|
+
* microvmId: webDigitaloceanMicrovm.id,
|
|
92
|
+
* filters: [{
|
|
93
|
+
* key: "status",
|
|
94
|
+
* values: ["CHECKPOINT_AVAILABLE"],
|
|
95
|
+
* }],
|
|
96
|
+
* sorts: [{
|
|
97
|
+
* key: "created_at",
|
|
98
|
+
* direction: "desc",
|
|
99
|
+
* }],
|
|
100
|
+
* });
|
|
101
|
+
* const restored = new digitalocean.Microvm("restored", {
|
|
102
|
+
* name: "example-restored",
|
|
103
|
+
* source: {
|
|
104
|
+
* checkpointId: web.then(web => web.checkpoints?.[0]?.id),
|
|
105
|
+
* },
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
function getMicrovmCheckpointsOutput(args, opts) {
|
|
110
|
+
args = args || {};
|
|
111
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
112
|
+
return pulumi.runtime.invokeOutput("digitalocean:index/getMicrovmCheckpoints:getMicrovmCheckpoints", {
|
|
113
|
+
"filters": args.filters,
|
|
114
|
+
"microvmId": args.microvmId,
|
|
115
|
+
"sorts": args.sorts,
|
|
116
|
+
}, opts);
|
|
117
|
+
}
|
|
118
|
+
exports.getMicrovmCheckpointsOutput = getMicrovmCheckpointsOutput;
|
|
119
|
+
//# sourceMappingURL=getMicrovmCheckpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMicrovmCheckpoints.js","sourceRoot":"","sources":["../getMicrovmCheckpoints.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AAyCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE;QACjG,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kEAQC"}
|