@pulumi/digitalocean 4.7.0-alpha.1633346817
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/LICENSE +202 -0
- package/README.md +68 -0
- package/app.d.ts +203 -0
- package/app.js +174 -0
- package/app.js.map +1 -0
- package/cdn.d.ts +169 -0
- package/cdn.js +116 -0
- package/cdn.js.map +1 -0
- package/certificate.d.ts +225 -0
- package/certificate.js +137 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +28 -0
- package/config/vars.js.map +1 -0
- package/containerRegistry.d.ts +88 -0
- package/containerRegistry.js +83 -0
- package/containerRegistry.js.map +1 -0
- package/containerRegistryDockerCredentials.d.ts +108 -0
- package/containerRegistryDockerCredentials.js +93 -0
- package/containerRegistryDockerCredentials.js.map +1 -0
- package/customImage.d.ts +155 -0
- package/customImage.js +113 -0
- package/customImage.js.map +1 -0
- package/databaseCluster.d.ts +306 -0
- package/databaseCluster.js +165 -0
- package/databaseCluster.js.map +1 -0
- package/databaseConnectionPool.d.ts +189 -0
- package/databaseConnectionPool.js +120 -0
- package/databaseConnectionPool.js.map +1 -0
- package/databaseDb.d.ts +87 -0
- package/databaseDb.js +82 -0
- package/databaseDb.js.map +1 -0
- package/databaseFirewall.d.ts +129 -0
- package/databaseFirewall.js +126 -0
- package/databaseFirewall.js.map +1 -0
- package/databaseReplica.d.ts +204 -0
- package/databaseReplica.js +110 -0
- package/databaseReplica.js.map +1 -0
- package/databaseUser.d.ts +117 -0
- package/databaseUser.js +90 -0
- package/databaseUser.js.map +1 -0
- package/dnsRecord.d.ts +200 -0
- package/dnsRecord.js +114 -0
- package/dnsRecord.js.map +1 -0
- package/domain.d.ts +103 -0
- package/domain.js +83 -0
- package/domain.js.map +1 -0
- package/droplet.d.ts +386 -0
- package/droplet.js +137 -0
- package/droplet.js.map +1 -0
- package/dropletSnapshot.d.ts +117 -0
- package/dropletSnapshot.js +88 -0
- package/dropletSnapshot.js.map +1 -0
- package/firewall.d.ts +226 -0
- package/firewall.js +150 -0
- package/firewall.js.map +1 -0
- package/floatingIp.d.ts +112 -0
- package/floatingIp.js +91 -0
- package/floatingIp.js.map +1 -0
- package/floatingIpAssignment.d.ts +85 -0
- package/floatingIpAssignment.js +83 -0
- package/floatingIpAssignment.js.map +1 -0
- package/getAccount.d.ts +32 -0
- package/getAccount.js +31 -0
- package/getAccount.js.map +1 -0
- package/getApp.d.ts +63 -0
- package/getApp.js +36 -0
- package/getApp.js.map +1 -0
- package/getCertificate.d.ts +48 -0
- package/getCertificate.js +40 -0
- package/getCertificate.js.map +1 -0
- package/getContainerRegistry.d.ts +54 -0
- package/getContainerRegistry.js +41 -0
- package/getContainerRegistry.js.map +1 -0
- package/getDatabaseCluster.d.ts +103 -0
- package/getDatabaseCluster.js +35 -0
- package/getDatabaseCluster.js.map +1 -0
- package/getDatabaseReplica.d.ts +87 -0
- package/getDatabaseReplica.js +40 -0
- package/getDatabaseReplica.js.map +1 -0
- package/getDomain.d.ts +37 -0
- package/getDomain.js +28 -0
- package/getDomain.js.map +1 -0
- package/getDomains.d.ts +61 -0
- package/getDomains.js +49 -0
- package/getDomains.js.map +1 -0
- package/getDroplet.d.ts +161 -0
- package/getDroplet.js +67 -0
- package/getDroplet.js.map +1 -0
- package/getDropletSnapshot.d.ts +76 -0
- package/getDropletSnapshot.js +43 -0
- package/getDropletSnapshot.js.map +1 -0
- package/getDroplets.d.ts +85 -0
- package/getDroplets.js +73 -0
- package/getDroplets.js.map +1 -0
- package/getFirewall.d.ts +83 -0
- package/getFirewall.js +40 -0
- package/getFirewall.js.map +1 -0
- package/getFloatingIp.d.ts +48 -0
- package/getFloatingIp.js +43 -0
- package/getFloatingIp.js.map +1 -0
- package/getImage.d.ts +110 -0
- package/getImage.js +71 -0
- package/getImage.js.map +1 -0
- package/getImages.d.ts +90 -0
- package/getImages.js +74 -0
- package/getImages.js.map +1 -0
- package/getKubernetesCluster.d.ts +95 -0
- package/getKubernetesCluster.js +23 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getKubernetesVersions.d.ts +79 -0
- package/getKubernetesVersions.js +70 -0
- package/getKubernetesVersions.js.map +1 -0
- package/getLoadBalancer.d.ts +59 -0
- package/getLoadBalancer.js +41 -0
- package/getLoadBalancer.js.map +1 -0
- package/getProject.d.ts +72 -0
- package/getProject.js +37 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +85 -0
- package/getProjects.js +72 -0
- package/getProjects.js.map +1 -0
- package/getRecord.d.ts +42 -0
- package/getRecord.js +28 -0
- package/getRecord.js.map +1 -0
- package/getRecords.d.ts +39 -0
- package/getRecords.js +25 -0
- package/getRecords.js.map +1 -0
- package/getRegion.d.ts +56 -0
- package/getRegion.js +35 -0
- package/getRegion.js.map +1 -0
- package/getRegions.d.ts +82 -0
- package/getRegions.js +70 -0
- package/getRegions.js.map +1 -0
- package/getSizes.d.ts +35 -0
- package/getSizes.js +26 -0
- package/getSizes.js.map +1 -0
- package/getSpacesBucket.d.ts +59 -0
- package/getSpacesBucket.js +39 -0
- package/getSpacesBucket.js.map +1 -0
- package/getSpacesBucketObject.d.ts +125 -0
- package/getSpacesBucketObject.js +53 -0
- package/getSpacesBucketObject.js.map +1 -0
- package/getSpacesBucketObjects.d.ts +83 -0
- package/getSpacesBucketObjects.js +49 -0
- package/getSpacesBucketObjects.js.map +1 -0
- package/getSpacesBuckets.d.ts +75 -0
- package/getSpacesBuckets.js +63 -0
- package/getSpacesBuckets.js.map +1 -0
- package/getSshKey.d.ts +47 -0
- package/getSshKey.js +46 -0
- package/getSshKey.js.map +1 -0
- package/getSshKeys.d.ts +58 -0
- package/getSshKeys.js +46 -0
- package/getSshKeys.js.map +1 -0
- package/getTag.d.ts +71 -0
- package/getTag.js +45 -0
- package/getTag.js.map +1 -0
- package/getTags.d.ts +50 -0
- package/getTags.js +41 -0
- package/getTags.js.map +1 -0
- package/getVolume.d.ts +98 -0
- package/getVolume.js +64 -0
- package/getVolume.js.map +1 -0
- package/getVolumeSnapshot.d.ts +98 -0
- package/getVolumeSnapshot.js +61 -0
- package/getVolumeSnapshot.js.map +1 -0
- package/getVpc.d.ts +95 -0
- package/getVpc.js +61 -0
- package/getVpc.js.map +1 -0
- package/index.d.ts +74 -0
- package/index.js +240 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +220 -0
- package/kubernetesCluster.js +102 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodePool.d.ts +242 -0
- package/kubernetesNodePool.js +141 -0
- package/kubernetesNodePool.js.map +1 -0
- package/loadBalancer.d.ts +307 -0
- package/loadBalancer.js +161 -0
- package/loadBalancer.js.map +1 -0
- package/monitorAlert.d.ts +193 -0
- package/monitorAlert.js +99 -0
- package/monitorAlert.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +27 -0
- package/package.json.dev +27 -0
- package/project.d.ts +191 -0
- package/project.js +129 -0
- package/project.js.map +1 -0
- package/projectResources.d.ts +100 -0
- package/projectResources.js +98 -0
- package/projectResources.js.map +1 -0
- package/provider.d.ts +67 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/spacesBucket.d.ts +210 -0
- package/spacesBucket.js +139 -0
- package/spacesBucket.js.map +1 -0
- package/spacesBucketObject.d.ts +293 -0
- package/spacesBucketObject.js +139 -0
- package/spacesBucketObject.js.map +1 -0
- package/sshKey.d.ts +103 -0
- package/sshKey.js +89 -0
- package/sshKey.js.map +1 -0
- package/tag.d.ts +127 -0
- package/tag.js +93 -0
- package/tag.js.map +1 -0
- package/types/enums/index.d.ts +151 -0
- package/types/enums/index.js +148 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +12 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1584 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2730 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
- package/volume.d.ts +225 -0
- package/volume.js +128 -0
- package/volume.js.map +1 -0
- package/volumeAttachment.d.ts +88 -0
- package/volumeAttachment.js +86 -0
- package/volumeAttachment.js.map +1 -0
- package/volumeSnapshot.d.ts +129 -0
- package/volumeSnapshot.js +90 -0
- package/volumeSnapshot.js.map +1 -0
- package/vpc.d.ts +152 -0
- package/vpc.js +109 -0
- package/vpc.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseCluster.js","sourceRoot":"","sources":["../getDatabaseCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,gDAYC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides information on a DigitalOcean database replica.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
10
|
+
*
|
|
11
|
+
* const example = digitalocean.getDatabaseCluster({
|
|
12
|
+
* name: "example-cluster",
|
|
13
|
+
* });
|
|
14
|
+
* const read-only = example.then(example => digitalocean.getDatabaseReplica({
|
|
15
|
+
* clusterId: example.id,
|
|
16
|
+
* name: "terra-test-ro",
|
|
17
|
+
* }));
|
|
18
|
+
* export const replicaOutput = read_only.then(read_only => read_only.uri);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDatabaseReplica(args: GetDatabaseReplicaArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseReplicaResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getDatabaseReplica.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetDatabaseReplicaArgs {
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the original source database cluster.
|
|
28
|
+
*/
|
|
29
|
+
clusterId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name for the database replica.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* A list of tag names to be applied to the database replica.
|
|
36
|
+
*/
|
|
37
|
+
tags?: string[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A collection of values returned by getDatabaseReplica.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetDatabaseReplicaResult {
|
|
43
|
+
readonly clusterId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the replica's default database.
|
|
46
|
+
*/
|
|
47
|
+
readonly database: string;
|
|
48
|
+
/**
|
|
49
|
+
* Database replica's hostname.
|
|
50
|
+
*/
|
|
51
|
+
readonly host: string;
|
|
52
|
+
/**
|
|
53
|
+
* The provider-assigned unique ID for this managed resource.
|
|
54
|
+
*/
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly name: string;
|
|
57
|
+
/**
|
|
58
|
+
* Password for the replica's default user.
|
|
59
|
+
*/
|
|
60
|
+
readonly password: string;
|
|
61
|
+
/**
|
|
62
|
+
* Network port that the database replica is listening on.
|
|
63
|
+
*/
|
|
64
|
+
readonly port: number;
|
|
65
|
+
/**
|
|
66
|
+
* Same as `host`, but only accessible from resources within the account and in the same region.
|
|
67
|
+
*/
|
|
68
|
+
readonly privateHost: string;
|
|
69
|
+
readonly privateNetworkUuid: string;
|
|
70
|
+
/**
|
|
71
|
+
* Same as `uri`, but only accessible from resources within the account and in the same region.
|
|
72
|
+
*/
|
|
73
|
+
readonly privateUri: string;
|
|
74
|
+
readonly region: string;
|
|
75
|
+
/**
|
|
76
|
+
* A list of tag names to be applied to the database replica.
|
|
77
|
+
*/
|
|
78
|
+
readonly tags?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* The full URI for connecting to the database replica.
|
|
81
|
+
*/
|
|
82
|
+
readonly uri: string;
|
|
83
|
+
/**
|
|
84
|
+
* Username for the replica's default user.
|
|
85
|
+
*/
|
|
86
|
+
readonly user: string;
|
|
87
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides information on a DigitalOcean database replica.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
15
|
+
*
|
|
16
|
+
* const example = digitalocean.getDatabaseCluster({
|
|
17
|
+
* name: "example-cluster",
|
|
18
|
+
* });
|
|
19
|
+
* const read-only = example.then(example => digitalocean.getDatabaseReplica({
|
|
20
|
+
* clusterId: example.id,
|
|
21
|
+
* name: "terra-test-ro",
|
|
22
|
+
* }));
|
|
23
|
+
* export const replicaOutput = read_only.then(read_only => read_only.uri);
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
function getDatabaseReplica(args, opts) {
|
|
27
|
+
if (!opts) {
|
|
28
|
+
opts = {};
|
|
29
|
+
}
|
|
30
|
+
if (!opts.version) {
|
|
31
|
+
opts.version = utilities.getVersion();
|
|
32
|
+
}
|
|
33
|
+
return pulumi.runtime.invoke("digitalocean:index/getDatabaseReplica:getDatabaseReplica", {
|
|
34
|
+
"clusterId": args.clusterId,
|
|
35
|
+
"name": args.name,
|
|
36
|
+
"tags": args.tags,
|
|
37
|
+
}, opts);
|
|
38
|
+
}
|
|
39
|
+
exports.getDatabaseReplica = getDatabaseReplica;
|
|
40
|
+
//# sourceMappingURL=getDatabaseReplica.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseReplica.js","sourceRoot":"","sources":["../getDatabaseReplica.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gDAaC"}
|
package/getDomain.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a domain. This data source provides the name, TTL, and zone
|
|
4
|
+
* file as configured on your DigitalOcean account. This is useful if the domain
|
|
5
|
+
* name in question is not managed by this provider or you need to utilize TTL or zone
|
|
6
|
+
* file data.
|
|
7
|
+
*
|
|
8
|
+
* An error is triggered if the provided domain name is not managed with your
|
|
9
|
+
* DigitalOcean account.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainResult>;
|
|
12
|
+
/**
|
|
13
|
+
* A collection of arguments for invoking getDomain.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDomainArgs {
|
|
16
|
+
/**
|
|
17
|
+
* The name of the domain.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getDomain.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetDomainResult {
|
|
25
|
+
/**
|
|
26
|
+
* The uniform resource name of the domain
|
|
27
|
+
* * `zoneFile`: The zone file of the domain.
|
|
28
|
+
*/
|
|
29
|
+
readonly domainUrn: string;
|
|
30
|
+
/**
|
|
31
|
+
* The provider-assigned unique ID for this managed resource.
|
|
32
|
+
*/
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly ttl: number;
|
|
36
|
+
readonly zoneFile: string;
|
|
37
|
+
}
|
package/getDomain.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get information on a domain. This data source provides the name, TTL, and zone
|
|
9
|
+
* file as configured on your DigitalOcean account. This is useful if the domain
|
|
10
|
+
* name in question is not managed by this provider or you need to utilize TTL or zone
|
|
11
|
+
* file data.
|
|
12
|
+
*
|
|
13
|
+
* An error is triggered if the provided domain name is not managed with your
|
|
14
|
+
* DigitalOcean account.
|
|
15
|
+
*/
|
|
16
|
+
function getDomain(args, opts) {
|
|
17
|
+
if (!opts) {
|
|
18
|
+
opts = {};
|
|
19
|
+
}
|
|
20
|
+
if (!opts.version) {
|
|
21
|
+
opts.version = utilities.getVersion();
|
|
22
|
+
}
|
|
23
|
+
return pulumi.runtime.invoke("digitalocean:index/getDomain:getDomain", {
|
|
24
|
+
"name": args.name,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getDomain = getDomain;
|
|
28
|
+
//# sourceMappingURL=getDomain.js.map
|
package/getDomain.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDomain.js","sourceRoot":"","sources":["../getDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC"}
|
package/getDomains.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Get information on domains for use in other resources, with the ability to filter and sort the results.
|
|
5
|
+
* If no filters are specified, all domains will be returned.
|
|
6
|
+
*
|
|
7
|
+
* This data source is useful if the domains in question are not managed by this provider or you need to
|
|
8
|
+
* utilize any of the domains' data.
|
|
9
|
+
*
|
|
10
|
+
* Note: You can use the `digitalocean.Domain` data source to obtain metadata
|
|
11
|
+
* about a single domain if you already know the `name`.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* Use the `filter` block with a `key` string and `values` list to filter domains. (This example
|
|
16
|
+
* also uses the regular expression `matchBy` mode in order to match domains by suffix.)
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
21
|
+
*
|
|
22
|
+
* const examples = pulumi.output(digitalocean.getDomains({
|
|
23
|
+
* filters: [{
|
|
24
|
+
* key: "name",
|
|
25
|
+
* matchBy: "re",
|
|
26
|
+
* values: ["example\\.com$"],
|
|
27
|
+
* }],
|
|
28
|
+
* }));
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getDomains(args?: GetDomainsArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainsResult>;
|
|
32
|
+
/**
|
|
33
|
+
* A collection of arguments for invoking getDomains.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetDomainsArgs {
|
|
36
|
+
/**
|
|
37
|
+
* Filter the results.
|
|
38
|
+
* The `filter` block is documented below.
|
|
39
|
+
*/
|
|
40
|
+
filters?: inputs.GetDomainsFilter[];
|
|
41
|
+
/**
|
|
42
|
+
* Sort the results.
|
|
43
|
+
* The `sort` block is documented below.
|
|
44
|
+
*/
|
|
45
|
+
sorts?: inputs.GetDomainsSort[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A collection of values returned by getDomains.
|
|
49
|
+
*/
|
|
50
|
+
export interface GetDomainsResult {
|
|
51
|
+
/**
|
|
52
|
+
* A list of domains satisfying any `filter` and `sort` criteria. Each domain has the following attributes:
|
|
53
|
+
*/
|
|
54
|
+
readonly domains: outputs.GetDomainsDomain[];
|
|
55
|
+
readonly filters?: outputs.GetDomainsFilter[];
|
|
56
|
+
/**
|
|
57
|
+
* The provider-assigned unique ID for this managed resource.
|
|
58
|
+
*/
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly sorts?: outputs.GetDomainsSort[];
|
|
61
|
+
}
|
package/getDomains.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get information on domains for use in other resources, with the ability to filter and sort the results.
|
|
9
|
+
* If no filters are specified, all domains will be returned.
|
|
10
|
+
*
|
|
11
|
+
* This data source is useful if the domains in question are not managed by this provider or you need to
|
|
12
|
+
* utilize any of the domains' data.
|
|
13
|
+
*
|
|
14
|
+
* Note: You can use the `digitalocean.Domain` data source to obtain metadata
|
|
15
|
+
* about a single domain if you already know the `name`.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* Use the `filter` block with a `key` string and `values` list to filter domains. (This example
|
|
20
|
+
* also uses the regular expression `matchBy` mode in order to match domains by suffix.)
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
25
|
+
*
|
|
26
|
+
* const examples = pulumi.output(digitalocean.getDomains({
|
|
27
|
+
* filters: [{
|
|
28
|
+
* key: "name",
|
|
29
|
+
* matchBy: "re",
|
|
30
|
+
* values: ["example\\.com$"],
|
|
31
|
+
* }],
|
|
32
|
+
* }));
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
function getDomains(args, opts) {
|
|
36
|
+
args = args || {};
|
|
37
|
+
if (!opts) {
|
|
38
|
+
opts = {};
|
|
39
|
+
}
|
|
40
|
+
if (!opts.version) {
|
|
41
|
+
opts.version = utilities.getVersion();
|
|
42
|
+
}
|
|
43
|
+
return pulumi.runtime.invoke("digitalocean:index/getDomains:getDomains", {
|
|
44
|
+
"filters": args.filters,
|
|
45
|
+
"sorts": args.sorts,
|
|
46
|
+
}, opts);
|
|
47
|
+
}
|
|
48
|
+
exports.getDomains = getDomains;
|
|
49
|
+
//# sourceMappingURL=getDomains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDomains.js","sourceRoot":"","sources":["../getDomains.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}
|
package/getDroplet.d.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a Droplet for use in other resources. This data source provides
|
|
4
|
+
* all of the Droplet's properties as configured on your DigitalOcean account. This
|
|
5
|
+
* is useful if the Droplet in question is not managed by this provider or you need to
|
|
6
|
+
* utilize any of the Droplet's data.
|
|
7
|
+
*
|
|
8
|
+
* **Note:** This data source returns a single Droplet. When specifying a `tag`, an
|
|
9
|
+
* error is triggered if more than one Droplet is found.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Get the Droplet by name:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
18
|
+
*
|
|
19
|
+
* const example = digitalocean.getDroplet({
|
|
20
|
+
* name: "web",
|
|
21
|
+
* });
|
|
22
|
+
* export const dropletOutput = example.then(example => example.ipv4Address);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Get the Droplet by tag:
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
30
|
+
*
|
|
31
|
+
* const example = pulumi.output(digitalocean.getDroplet({
|
|
32
|
+
* tag: "web",
|
|
33
|
+
* }));
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* Get the Droplet by ID:
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
41
|
+
*
|
|
42
|
+
* const example = digitalocean.getDroplet({
|
|
43
|
+
* id: digitalocean_kubernetes_cluster.example.node_pool[0].nodes[0].droplet_id,
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function getDroplet(args?: GetDropletArgs, opts?: pulumi.InvokeOptions): Promise<GetDropletResult>;
|
|
48
|
+
/**
|
|
49
|
+
* A collection of arguments for invoking getDroplet.
|
|
50
|
+
*/
|
|
51
|
+
export interface GetDropletArgs {
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the Droplet
|
|
54
|
+
*/
|
|
55
|
+
id?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The name of the Droplet.
|
|
58
|
+
*/
|
|
59
|
+
name?: string;
|
|
60
|
+
/**
|
|
61
|
+
* A tag applied to the Droplet.
|
|
62
|
+
*/
|
|
63
|
+
tag?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A collection of values returned by getDroplet.
|
|
67
|
+
*/
|
|
68
|
+
export interface GetDropletResult {
|
|
69
|
+
/**
|
|
70
|
+
* Whether backups are enabled.
|
|
71
|
+
*/
|
|
72
|
+
readonly backups: boolean;
|
|
73
|
+
readonly createdAt: string;
|
|
74
|
+
/**
|
|
75
|
+
* The size of the Droplets disk in GB.
|
|
76
|
+
*/
|
|
77
|
+
readonly disk: number;
|
|
78
|
+
readonly id: number;
|
|
79
|
+
/**
|
|
80
|
+
* The Droplet image ID or slug.
|
|
81
|
+
*/
|
|
82
|
+
readonly image: string;
|
|
83
|
+
/**
|
|
84
|
+
* The Droplets public IPv4 address
|
|
85
|
+
*/
|
|
86
|
+
readonly ipv4Address: string;
|
|
87
|
+
/**
|
|
88
|
+
* The Droplets private IPv4 address
|
|
89
|
+
*/
|
|
90
|
+
readonly ipv4AddressPrivate: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether IPv6 is enabled.
|
|
93
|
+
*/
|
|
94
|
+
readonly ipv6: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The Droplets public IPv6 address
|
|
97
|
+
*/
|
|
98
|
+
readonly ipv6Address: string;
|
|
99
|
+
/**
|
|
100
|
+
* The Droplets private IPv6 address
|
|
101
|
+
*/
|
|
102
|
+
readonly ipv6AddressPrivate: string;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the Droplet is locked.
|
|
105
|
+
*/
|
|
106
|
+
readonly locked: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The amount of the Droplets memory in MB.
|
|
109
|
+
*/
|
|
110
|
+
readonly memory: number;
|
|
111
|
+
/**
|
|
112
|
+
* Whether monitoring agent is installed.
|
|
113
|
+
*/
|
|
114
|
+
readonly monitoring: boolean;
|
|
115
|
+
readonly name: string;
|
|
116
|
+
/**
|
|
117
|
+
* Droplet hourly price.
|
|
118
|
+
*/
|
|
119
|
+
readonly priceHourly: number;
|
|
120
|
+
/**
|
|
121
|
+
* Droplet monthly price.
|
|
122
|
+
*/
|
|
123
|
+
readonly priceMonthly: number;
|
|
124
|
+
/**
|
|
125
|
+
* Whether private networks are enabled.
|
|
126
|
+
*/
|
|
127
|
+
readonly privateNetworking: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* The region the Droplet is running in.
|
|
130
|
+
*/
|
|
131
|
+
readonly region: string;
|
|
132
|
+
/**
|
|
133
|
+
* The unique slug that indentifies the type of Droplet.
|
|
134
|
+
*/
|
|
135
|
+
readonly size: string;
|
|
136
|
+
/**
|
|
137
|
+
* The status of the Droplet.
|
|
138
|
+
*/
|
|
139
|
+
readonly status: string;
|
|
140
|
+
readonly tag?: string;
|
|
141
|
+
/**
|
|
142
|
+
* A list of the tags associated to the Droplet.
|
|
143
|
+
*/
|
|
144
|
+
readonly tags: string[];
|
|
145
|
+
/**
|
|
146
|
+
* The uniform resource name of the Droplet
|
|
147
|
+
*/
|
|
148
|
+
readonly urn: string;
|
|
149
|
+
/**
|
|
150
|
+
* The number of the Droplets virtual CPUs.
|
|
151
|
+
*/
|
|
152
|
+
readonly vcpus: number;
|
|
153
|
+
/**
|
|
154
|
+
* List of the IDs of each volumes attached to the Droplet.
|
|
155
|
+
*/
|
|
156
|
+
readonly volumeIds: string[];
|
|
157
|
+
/**
|
|
158
|
+
* The ID of the VPC where the Droplet is located.
|
|
159
|
+
*/
|
|
160
|
+
readonly vpcUuid: string;
|
|
161
|
+
}
|
package/getDroplet.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get information on a Droplet for use in other resources. This data source provides
|
|
9
|
+
* all of the Droplet's properties as configured on your DigitalOcean account. This
|
|
10
|
+
* is useful if the Droplet in question is not managed by this provider or you need to
|
|
11
|
+
* utilize any of the Droplet's data.
|
|
12
|
+
*
|
|
13
|
+
* **Note:** This data source returns a single Droplet. When specifying a `tag`, an
|
|
14
|
+
* error is triggered if more than one Droplet is found.
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* Get the Droplet by name:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
23
|
+
*
|
|
24
|
+
* const example = digitalocean.getDroplet({
|
|
25
|
+
* name: "web",
|
|
26
|
+
* });
|
|
27
|
+
* export const dropletOutput = example.then(example => example.ipv4Address);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Get the Droplet by tag:
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
35
|
+
*
|
|
36
|
+
* const example = pulumi.output(digitalocean.getDroplet({
|
|
37
|
+
* tag: "web",
|
|
38
|
+
* }));
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* Get the Droplet by ID:
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
46
|
+
*
|
|
47
|
+
* const example = digitalocean.getDroplet({
|
|
48
|
+
* id: digitalocean_kubernetes_cluster.example.node_pool[0].nodes[0].droplet_id,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function getDroplet(args, opts) {
|
|
53
|
+
args = args || {};
|
|
54
|
+
if (!opts) {
|
|
55
|
+
opts = {};
|
|
56
|
+
}
|
|
57
|
+
if (!opts.version) {
|
|
58
|
+
opts.version = utilities.getVersion();
|
|
59
|
+
}
|
|
60
|
+
return pulumi.runtime.invoke("digitalocean:index/getDroplet:getDroplet", {
|
|
61
|
+
"id": args.id,
|
|
62
|
+
"name": args.name,
|
|
63
|
+
"tag": args.tag,
|
|
64
|
+
}, opts);
|
|
65
|
+
}
|
|
66
|
+
exports.getDroplet = getDroplet;
|
|
67
|
+
//# sourceMappingURL=getDroplet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDroplet.js","sourceRoot":"","sources":["../getDroplet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,gCAcC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Droplet snapshots are saved instances of a Droplet. Use this data
|
|
4
|
+
* source to retrieve the ID of a DigitalOcean Droplet snapshot for use in other
|
|
5
|
+
* resources.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* Get the Droplet snapshot:
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
14
|
+
*
|
|
15
|
+
* const web_snapshot = pulumi.output(digitalocean.getDropletSnapshot({
|
|
16
|
+
* mostRecent: true,
|
|
17
|
+
* nameRegex: "^web",
|
|
18
|
+
* region: "nyc3",
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getDropletSnapshot(args?: GetDropletSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetDropletSnapshotResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getDropletSnapshot.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetDropletSnapshotArgs {
|
|
27
|
+
/**
|
|
28
|
+
* If more than one result is returned, use the most recent Droplet snapshot.
|
|
29
|
+
*/
|
|
30
|
+
mostRecent?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the Droplet snapshot.
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A regex string to apply to the Droplet snapshot list returned by DigitalOcean. This allows more advanced filtering not supported from the DigitalOcean API. This filtering is done locally on what DigitalOcean returns.
|
|
37
|
+
*/
|
|
38
|
+
nameRegex?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A "slug" representing a DigitalOcean region (e.g. `nyc1`). If set, only Droplet snapshots available in the region will be returned.
|
|
41
|
+
*/
|
|
42
|
+
region?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A collection of values returned by getDropletSnapshot.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetDropletSnapshotResult {
|
|
48
|
+
/**
|
|
49
|
+
* The date and time the Droplet snapshot was created.
|
|
50
|
+
*/
|
|
51
|
+
readonly createdAt: string;
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the Droplet from which the Droplet snapshot originated.
|
|
54
|
+
*/
|
|
55
|
+
readonly dropletId: string;
|
|
56
|
+
/**
|
|
57
|
+
* The provider-assigned unique ID for this managed resource.
|
|
58
|
+
*/
|
|
59
|
+
readonly id: string;
|
|
60
|
+
/**
|
|
61
|
+
* The minimum size in gigabytes required for a Droplet to be created based on this Droplet snapshot.
|
|
62
|
+
*/
|
|
63
|
+
readonly minDiskSize: number;
|
|
64
|
+
readonly mostRecent?: boolean;
|
|
65
|
+
readonly name?: string;
|
|
66
|
+
readonly nameRegex?: string;
|
|
67
|
+
readonly region?: string;
|
|
68
|
+
/**
|
|
69
|
+
* A list of DigitalOcean region "slugs" indicating where the Droplet snapshot is available.
|
|
70
|
+
*/
|
|
71
|
+
readonly regions: string[];
|
|
72
|
+
/**
|
|
73
|
+
* The billable size of the Droplet snapshot in gigabytes.
|
|
74
|
+
*/
|
|
75
|
+
readonly size: number;
|
|
76
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Droplet snapshots are saved instances of a Droplet. Use this data
|
|
9
|
+
* source to retrieve the ID of a DigitalOcean Droplet snapshot for use in other
|
|
10
|
+
* resources.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* Get the Droplet snapshot:
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
19
|
+
*
|
|
20
|
+
* const web_snapshot = pulumi.output(digitalocean.getDropletSnapshot({
|
|
21
|
+
* mostRecent: true,
|
|
22
|
+
* nameRegex: "^web",
|
|
23
|
+
* region: "nyc3",
|
|
24
|
+
* }));
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
function getDropletSnapshot(args, opts) {
|
|
28
|
+
args = args || {};
|
|
29
|
+
if (!opts) {
|
|
30
|
+
opts = {};
|
|
31
|
+
}
|
|
32
|
+
if (!opts.version) {
|
|
33
|
+
opts.version = utilities.getVersion();
|
|
34
|
+
}
|
|
35
|
+
return pulumi.runtime.invoke("digitalocean:index/getDropletSnapshot:getDropletSnapshot", {
|
|
36
|
+
"mostRecent": args.mostRecent,
|
|
37
|
+
"name": args.name,
|
|
38
|
+
"nameRegex": args.nameRegex,
|
|
39
|
+
"region": args.region,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
exports.getDropletSnapshot = getDropletSnapshot;
|
|
43
|
+
//# sourceMappingURL=getDropletSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDropletSnapshot.js","sourceRoot":"","sources":["../getDropletSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,gDAeC"}
|