@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
package/getImages.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
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 images for use in other resources (e.g. creating a Droplet
|
|
9
|
+
* based on a snapshot), with the ability to filter and sort the results. If no filters are specified,
|
|
10
|
+
* all images will be returned.
|
|
11
|
+
*
|
|
12
|
+
* This data source is useful if the image in question is not managed by the provider or you need to utilize any
|
|
13
|
+
* of the image's data.
|
|
14
|
+
*
|
|
15
|
+
* Note: You can use the `digitalocean.getImage` data source to obtain metadata
|
|
16
|
+
* about a single image if you already know the `slug`, unique `name`, or `id` to retrieve.
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
*
|
|
20
|
+
* Use the `filter` block with a `key` string and `values` list to filter images.
|
|
21
|
+
*
|
|
22
|
+
* For example to find all Ubuntu images:
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
27
|
+
*
|
|
28
|
+
* const ubuntu = pulumi.output(digitalocean.getImages({
|
|
29
|
+
* filters: [{
|
|
30
|
+
* key: "distribution",
|
|
31
|
+
* values: ["Ubuntu"],
|
|
32
|
+
* }],
|
|
33
|
+
* }));
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* You can filter on multiple fields and sort the results as well:
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
41
|
+
*
|
|
42
|
+
* const available = pulumi.output(digitalocean.getImages({
|
|
43
|
+
* filters: [
|
|
44
|
+
* {
|
|
45
|
+
* key: "distribution",
|
|
46
|
+
* values: ["Ubuntu"],
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* key: "regions",
|
|
50
|
+
* values: ["nyc3"],
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* sorts: [{
|
|
54
|
+
* direction: "desc",
|
|
55
|
+
* key: "created",
|
|
56
|
+
* }],
|
|
57
|
+
* }));
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function getImages(args, opts) {
|
|
61
|
+
args = args || {};
|
|
62
|
+
if (!opts) {
|
|
63
|
+
opts = {};
|
|
64
|
+
}
|
|
65
|
+
if (!opts.version) {
|
|
66
|
+
opts.version = utilities.getVersion();
|
|
67
|
+
}
|
|
68
|
+
return pulumi.runtime.invoke("digitalocean:index/getImages:getImages", {
|
|
69
|
+
"filters": args.filters,
|
|
70
|
+
"sorts": args.sorts,
|
|
71
|
+
}, opts);
|
|
72
|
+
}
|
|
73
|
+
exports.getImages = getImages;
|
|
74
|
+
//# sourceMappingURL=getImages.js.map
|
package/getImages.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getImages.js","sourceRoot":"","sources":["../getImages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,wCAAwC,EAAE;QACnE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,8BAaC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves information about a DigitalOcean Kubernetes cluster for use in other resources. This data source provides all of the cluster's properties as configured on your DigitalOcean account. This is useful if the cluster in question is not managed by the provider.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getKubernetesCluster(args: GetKubernetesClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetKubernetesClusterResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getKubernetesCluster.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetKubernetesClusterArgs {
|
|
11
|
+
/**
|
|
12
|
+
* The name of Kubernetes cluster.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* A list of tag names applied to the node pool.
|
|
17
|
+
*/
|
|
18
|
+
tags?: string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A collection of values returned by getKubernetesCluster.
|
|
22
|
+
*/
|
|
23
|
+
export interface GetKubernetesClusterResult {
|
|
24
|
+
/**
|
|
25
|
+
* A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
26
|
+
* * `kube_config.0` - A representation of the Kubernetes cluster's kubeconfig with the following attributes:
|
|
27
|
+
*/
|
|
28
|
+
readonly autoUpgrade: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The range of IP addresses in the overlay network of the Kubernetes cluster.
|
|
31
|
+
*/
|
|
32
|
+
readonly clusterSubnet: string;
|
|
33
|
+
/**
|
|
34
|
+
* The date and time when the node was created.
|
|
35
|
+
*/
|
|
36
|
+
readonly createdAt: string;
|
|
37
|
+
/**
|
|
38
|
+
* The base URL of the API server on the Kubernetes master node.
|
|
39
|
+
*/
|
|
40
|
+
readonly endpoint: string;
|
|
41
|
+
/**
|
|
42
|
+
* The provider-assigned unique ID for this managed resource.
|
|
43
|
+
*/
|
|
44
|
+
readonly id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The public IPv4 address of the Kubernetes master node.
|
|
47
|
+
*/
|
|
48
|
+
readonly ipv4Address: string;
|
|
49
|
+
readonly kubeConfigs: outputs.GetKubernetesClusterKubeConfig[];
|
|
50
|
+
/**
|
|
51
|
+
* The maintenance policy of the Kubernetes cluster. Digital Ocean has a default maintenancen window.
|
|
52
|
+
*/
|
|
53
|
+
readonly maintenancePolicies: outputs.GetKubernetesClusterMaintenancePolicy[];
|
|
54
|
+
/**
|
|
55
|
+
* The auto-generated name for the node.
|
|
56
|
+
*/
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/**
|
|
59
|
+
* A list of node pools associated with the cluster. Each node pool exports the following attributes:
|
|
60
|
+
*/
|
|
61
|
+
readonly nodePools: outputs.GetKubernetesClusterNodePool[];
|
|
62
|
+
/**
|
|
63
|
+
* The slug identifier for the region where the Kubernetes cluster is located.
|
|
64
|
+
*/
|
|
65
|
+
readonly region: string;
|
|
66
|
+
/**
|
|
67
|
+
* The range of assignable IP addresses for services running in the Kubernetes cluster.
|
|
68
|
+
*/
|
|
69
|
+
readonly serviceSubnet: string;
|
|
70
|
+
/**
|
|
71
|
+
* A string indicating the current status of the individual node.
|
|
72
|
+
*/
|
|
73
|
+
readonly status: string;
|
|
74
|
+
readonly surgeUpgrade: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* A list of tag names applied to the node pool.
|
|
77
|
+
*/
|
|
78
|
+
readonly tags?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* The date and time when the node was last updated.
|
|
81
|
+
*/
|
|
82
|
+
readonly updatedAt: string;
|
|
83
|
+
/**
|
|
84
|
+
* The uniform resource name (URN) for the Kubernetes cluster.
|
|
85
|
+
*/
|
|
86
|
+
readonly urn: string;
|
|
87
|
+
/**
|
|
88
|
+
* The slug identifier for the version of Kubernetes used for the cluster.
|
|
89
|
+
*/
|
|
90
|
+
readonly version: string;
|
|
91
|
+
/**
|
|
92
|
+
* The ID of the VPC where the Kubernetes cluster is located.
|
|
93
|
+
*/
|
|
94
|
+
readonly vpcUuid: string;
|
|
95
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Retrieves information about a DigitalOcean Kubernetes cluster for use in other resources. This data source provides all of the cluster's properties as configured on your DigitalOcean account. This is useful if the cluster in question is not managed by the provider.
|
|
9
|
+
*/
|
|
10
|
+
function getKubernetesCluster(args, opts) {
|
|
11
|
+
if (!opts) {
|
|
12
|
+
opts = {};
|
|
13
|
+
}
|
|
14
|
+
if (!opts.version) {
|
|
15
|
+
opts.version = utilities.getVersion();
|
|
16
|
+
}
|
|
17
|
+
return pulumi.runtime.invoke("digitalocean:index/getKubernetesCluster:getKubernetesCluster", {
|
|
18
|
+
"name": args.name,
|
|
19
|
+
"tags": args.tags,
|
|
20
|
+
}, opts);
|
|
21
|
+
}
|
|
22
|
+
exports.getKubernetesCluster = getKubernetesCluster;
|
|
23
|
+
//# sourceMappingURL=getKubernetesCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKubernetesCluster.js","sourceRoot":"","sources":["../getKubernetesCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,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,8DAA8D,EAAE;QACzF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,oDAYC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides access to the available DigitalOcean Kubernetes Service versions.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
* ### Output a list of all available versions
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
11
|
+
*
|
|
12
|
+
* const example = digitalocean.getKubernetesVersions({});
|
|
13
|
+
* export const k8s_versions = example.then(example => example.validVersions);
|
|
14
|
+
* ```
|
|
15
|
+
* ### Create a Kubernetes cluster using the most recent version available
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
20
|
+
*
|
|
21
|
+
* const example = digitalocean.getKubernetesVersions({});
|
|
22
|
+
* const example_cluster = new digitalocean.KubernetesCluster("example-cluster", {
|
|
23
|
+
* region: "lon1",
|
|
24
|
+
* version: example.then(example => example.latestVersion),
|
|
25
|
+
* nodePool: {
|
|
26
|
+
* name: "default",
|
|
27
|
+
* size: "s-1vcpu-2gb",
|
|
28
|
+
* nodeCount: 3,
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
* ### Pin a Kubernetes cluster to a specific minor version
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
37
|
+
*
|
|
38
|
+
* const example = digitalocean.getKubernetesVersions({
|
|
39
|
+
* versionPrefix: "1.16.",
|
|
40
|
+
* });
|
|
41
|
+
* const example_cluster = new digitalocean.KubernetesCluster("example-cluster", {
|
|
42
|
+
* region: "lon1",
|
|
43
|
+
* version: example.then(example => example.latestVersion),
|
|
44
|
+
* nodePool: {
|
|
45
|
+
* name: "default",
|
|
46
|
+
* size: "s-1vcpu-2gb",
|
|
47
|
+
* nodeCount: 3,
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function getKubernetesVersions(args?: GetKubernetesVersionsArgs, opts?: pulumi.InvokeOptions): Promise<GetKubernetesVersionsResult>;
|
|
53
|
+
/**
|
|
54
|
+
* A collection of arguments for invoking getKubernetesVersions.
|
|
55
|
+
*/
|
|
56
|
+
export interface GetKubernetesVersionsArgs {
|
|
57
|
+
/**
|
|
58
|
+
* If provided, the provider will only return versions that match the string prefix. For example, `1.15.` will match all 1.15.x series releases.
|
|
59
|
+
*/
|
|
60
|
+
versionPrefix?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A collection of values returned by getKubernetesVersions.
|
|
64
|
+
*/
|
|
65
|
+
export interface GetKubernetesVersionsResult {
|
|
66
|
+
/**
|
|
67
|
+
* The provider-assigned unique ID for this managed resource.
|
|
68
|
+
*/
|
|
69
|
+
readonly id: string;
|
|
70
|
+
/**
|
|
71
|
+
* The most recent version available.
|
|
72
|
+
*/
|
|
73
|
+
readonly latestVersion: string;
|
|
74
|
+
/**
|
|
75
|
+
* A list of available versions.
|
|
76
|
+
*/
|
|
77
|
+
readonly validVersions: string[];
|
|
78
|
+
readonly versionPrefix?: string;
|
|
79
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 access to the available DigitalOcean Kubernetes Service versions.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
* ### Output a list of all available versions
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
16
|
+
*
|
|
17
|
+
* const example = digitalocean.getKubernetesVersions({});
|
|
18
|
+
* export const k8s_versions = example.then(example => example.validVersions);
|
|
19
|
+
* ```
|
|
20
|
+
* ### Create a Kubernetes cluster using the most recent version available
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
25
|
+
*
|
|
26
|
+
* const example = digitalocean.getKubernetesVersions({});
|
|
27
|
+
* const example_cluster = new digitalocean.KubernetesCluster("example-cluster", {
|
|
28
|
+
* region: "lon1",
|
|
29
|
+
* version: example.then(example => example.latestVersion),
|
|
30
|
+
* nodePool: {
|
|
31
|
+
* name: "default",
|
|
32
|
+
* size: "s-1vcpu-2gb",
|
|
33
|
+
* nodeCount: 3,
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
* ### Pin a Kubernetes cluster to a specific minor version
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
42
|
+
*
|
|
43
|
+
* const example = digitalocean.getKubernetesVersions({
|
|
44
|
+
* versionPrefix: "1.16.",
|
|
45
|
+
* });
|
|
46
|
+
* const example_cluster = new digitalocean.KubernetesCluster("example-cluster", {
|
|
47
|
+
* region: "lon1",
|
|
48
|
+
* version: example.then(example => example.latestVersion),
|
|
49
|
+
* nodePool: {
|
|
50
|
+
* name: "default",
|
|
51
|
+
* size: "s-1vcpu-2gb",
|
|
52
|
+
* nodeCount: 3,
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
function getKubernetesVersions(args, opts) {
|
|
58
|
+
args = args || {};
|
|
59
|
+
if (!opts) {
|
|
60
|
+
opts = {};
|
|
61
|
+
}
|
|
62
|
+
if (!opts.version) {
|
|
63
|
+
opts.version = utilities.getVersion();
|
|
64
|
+
}
|
|
65
|
+
return pulumi.runtime.invoke("digitalocean:index/getKubernetesVersions:getKubernetesVersions", {
|
|
66
|
+
"versionPrefix": args.versionPrefix,
|
|
67
|
+
}, opts);
|
|
68
|
+
}
|
|
69
|
+
exports.getKubernetesVersions = getKubernetesVersions;
|
|
70
|
+
//# sourceMappingURL=getKubernetesVersions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKubernetesVersions.js","sourceRoot":"","sources":["../getKubernetesVersions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,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,gEAAgE,EAAE;QAC3F,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,sDAYC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Get information on a load balancer for use in other resources. This data source
|
|
5
|
+
* provides all of the load balancers properties as configured on your DigitalOcean
|
|
6
|
+
* account. This is useful if the load balancer in question is not managed by
|
|
7
|
+
* the provider or you need to utilize any of the load balancers data.
|
|
8
|
+
*
|
|
9
|
+
* An error is triggered if the provided load balancer name does not exist.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Get the load balancer:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
18
|
+
*
|
|
19
|
+
* const example = digitalocean.getLoadBalancer({
|
|
20
|
+
* name: "app",
|
|
21
|
+
* });
|
|
22
|
+
* export const lbOutput = example.then(example => example.ip);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function getLoadBalancer(args: GetLoadBalancerArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadBalancerResult>;
|
|
26
|
+
/**
|
|
27
|
+
* A collection of arguments for invoking getLoadBalancer.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetLoadBalancerArgs {
|
|
30
|
+
/**
|
|
31
|
+
* The name of load balancer.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A collection of values returned by getLoadBalancer.
|
|
37
|
+
*/
|
|
38
|
+
export interface GetLoadBalancerResult {
|
|
39
|
+
readonly algorithm: string;
|
|
40
|
+
readonly dropletIds: number[];
|
|
41
|
+
readonly dropletTag: string;
|
|
42
|
+
readonly enableBackendKeepalive: boolean;
|
|
43
|
+
readonly enableProxyProtocol: boolean;
|
|
44
|
+
readonly forwardingRules: outputs.GetLoadBalancerForwardingRule[];
|
|
45
|
+
readonly healthchecks: outputs.GetLoadBalancerHealthcheck[];
|
|
46
|
+
/**
|
|
47
|
+
* The provider-assigned unique ID for this managed resource.
|
|
48
|
+
*/
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly ip: string;
|
|
51
|
+
readonly loadBalancerUrn: string;
|
|
52
|
+
readonly name: string;
|
|
53
|
+
readonly redirectHttpToHttps: boolean;
|
|
54
|
+
readonly region: string;
|
|
55
|
+
readonly size: string;
|
|
56
|
+
readonly status: string;
|
|
57
|
+
readonly stickySessions: outputs.GetLoadBalancerStickySession[];
|
|
58
|
+
readonly vpcUuid: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 load balancer for use in other resources. This data source
|
|
9
|
+
* provides all of the load balancers properties as configured on your DigitalOcean
|
|
10
|
+
* account. This is useful if the load balancer in question is not managed by
|
|
11
|
+
* the provider or you need to utilize any of the load balancers data.
|
|
12
|
+
*
|
|
13
|
+
* An error is triggered if the provided load balancer name does not exist.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* Get the load balancer:
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
22
|
+
*
|
|
23
|
+
* const example = digitalocean.getLoadBalancer({
|
|
24
|
+
* name: "app",
|
|
25
|
+
* });
|
|
26
|
+
* export const lbOutput = example.then(example => example.ip);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
function getLoadBalancer(args, opts) {
|
|
30
|
+
if (!opts) {
|
|
31
|
+
opts = {};
|
|
32
|
+
}
|
|
33
|
+
if (!opts.version) {
|
|
34
|
+
opts.version = utilities.getVersion();
|
|
35
|
+
}
|
|
36
|
+
return pulumi.runtime.invoke("digitalocean:index/getLoadBalancer:getLoadBalancer", {
|
|
37
|
+
"name": args.name,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
exports.getLoadBalancer = getLoadBalancer;
|
|
41
|
+
//# sourceMappingURL=getLoadBalancer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLoadBalancer.js","sourceRoot":"","sources":["../getLoadBalancer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,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,oDAAoD,EAAE;QAC/E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,0CAWC"}
|
package/getProject.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a single DigitalOcean project. If neither the `id` nor `name` attributes are provided,
|
|
4
|
+
* then this data source returns the default project.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
11
|
+
*
|
|
12
|
+
* const defaultProject = pulumi.output(digitalocean.getProject());
|
|
13
|
+
* const staging = pulumi.output(digitalocean.getProject({
|
|
14
|
+
* name: "My Staging Project",
|
|
15
|
+
* }));
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function getProject(args?: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking getProject.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProjectArgs {
|
|
23
|
+
/**
|
|
24
|
+
* the ID of the project to retrieve
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* the name of the project to retrieve. The data source will raise an error if more than
|
|
29
|
+
* one project has the provided name or if no project has that name.
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A collection of values returned by getProject.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetProjectResult {
|
|
37
|
+
/**
|
|
38
|
+
* The date and time when the project was created, (ISO8601)
|
|
39
|
+
*/
|
|
40
|
+
readonly createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* The description of the project
|
|
43
|
+
*/
|
|
44
|
+
readonly description: string;
|
|
45
|
+
/**
|
|
46
|
+
* The environment of the project's resources. The possible values are: `Development`, `Staging`, `Production`.
|
|
47
|
+
*/
|
|
48
|
+
readonly environment: string;
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly isDefault: boolean;
|
|
51
|
+
readonly name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the project owner.
|
|
54
|
+
*/
|
|
55
|
+
readonly ownerId: number;
|
|
56
|
+
/**
|
|
57
|
+
* The unique universal identifier of the project owner.
|
|
58
|
+
*/
|
|
59
|
+
readonly ownerUuid: string;
|
|
60
|
+
/**
|
|
61
|
+
* The purpose of the project, (Default: "Web Application")
|
|
62
|
+
*/
|
|
63
|
+
readonly purpose: string;
|
|
64
|
+
/**
|
|
65
|
+
* A set of uniform resource names (URNs) for the resources associated with the project
|
|
66
|
+
*/
|
|
67
|
+
readonly resources: string[];
|
|
68
|
+
/**
|
|
69
|
+
* The date and time when the project was last updated, (ISO8601)
|
|
70
|
+
*/
|
|
71
|
+
readonly updatedAt: string;
|
|
72
|
+
}
|
package/getProject.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 single DigitalOcean project. If neither the `id` nor `name` attributes are provided,
|
|
9
|
+
* then this data source returns the default project.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
16
|
+
*
|
|
17
|
+
* const defaultProject = pulumi.output(digitalocean.getProject());
|
|
18
|
+
* const staging = pulumi.output(digitalocean.getProject({
|
|
19
|
+
* name: "My Staging Project",
|
|
20
|
+
* }));
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function getProject(args, opts) {
|
|
24
|
+
args = args || {};
|
|
25
|
+
if (!opts) {
|
|
26
|
+
opts = {};
|
|
27
|
+
}
|
|
28
|
+
if (!opts.version) {
|
|
29
|
+
opts.version = utilities.getVersion();
|
|
30
|
+
}
|
|
31
|
+
return pulumi.runtime.invoke("digitalocean:index/getProject:getProject", {
|
|
32
|
+
"id": args.id,
|
|
33
|
+
"name": args.name,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getProject = getProject;
|
|
37
|
+
//# sourceMappingURL=getProject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;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;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}
|
package/getProjects.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve information about all DigitalOcean projects associated with an account, with
|
|
5
|
+
* the ability to filter and sort the results. If no filters are specified, all projects
|
|
6
|
+
* will be returned.
|
|
7
|
+
*
|
|
8
|
+
* Note: You can use the `digitalocean.Project` data source to
|
|
9
|
+
* obtain metadata about a single project if you already know the `id` to retrieve or the unique
|
|
10
|
+
* `name` of the project.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* Use the `filter` block with a `key` string and `values` list to filter projects.
|
|
15
|
+
*
|
|
16
|
+
* For example to find all staging environment projects:
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
21
|
+
*
|
|
22
|
+
* const staging = pulumi.output(digitalocean.getProjects({
|
|
23
|
+
* filters: [{
|
|
24
|
+
* key: "environment",
|
|
25
|
+
* values: ["Staging"],
|
|
26
|
+
* }],
|
|
27
|
+
* }));
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* You can filter on multiple fields and sort the results as well:
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
35
|
+
*
|
|
36
|
+
* const non_default_production = pulumi.output(digitalocean.getProjects({
|
|
37
|
+
* filters: [
|
|
38
|
+
* {
|
|
39
|
+
* key: "environment",
|
|
40
|
+
* values: ["Production"],
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* key: "is_default",
|
|
44
|
+
* values: ["false"],
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* sorts: [{
|
|
48
|
+
* direction: "asc",
|
|
49
|
+
* key: "name",
|
|
50
|
+
* }],
|
|
51
|
+
* }));
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function getProjects(args?: GetProjectsArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectsResult>;
|
|
55
|
+
/**
|
|
56
|
+
* A collection of arguments for invoking getProjects.
|
|
57
|
+
*/
|
|
58
|
+
export interface GetProjectsArgs {
|
|
59
|
+
/**
|
|
60
|
+
* Filter the results.
|
|
61
|
+
* The `filter` block is documented below.
|
|
62
|
+
*/
|
|
63
|
+
filters?: inputs.GetProjectsFilter[];
|
|
64
|
+
/**
|
|
65
|
+
* Sort the results.
|
|
66
|
+
* The `sort` block is documented below.
|
|
67
|
+
*/
|
|
68
|
+
sorts?: inputs.GetProjectsSort[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A collection of values returned by getProjects.
|
|
72
|
+
*/
|
|
73
|
+
export interface GetProjectsResult {
|
|
74
|
+
readonly filters?: outputs.GetProjectsFilter[];
|
|
75
|
+
/**
|
|
76
|
+
* The provider-assigned unique ID for this managed resource.
|
|
77
|
+
*/
|
|
78
|
+
readonly id: string;
|
|
79
|
+
/**
|
|
80
|
+
* A set of projects satisfying any `filter` and `sort` criteria. Each project has
|
|
81
|
+
* the following attributes:
|
|
82
|
+
*/
|
|
83
|
+
readonly projects: outputs.GetProjectsProject[];
|
|
84
|
+
readonly sorts?: outputs.GetProjectsSort[];
|
|
85
|
+
}
|