@pulumiverse/scaleway 1.36.0-alpha.1761749977 → 1.36.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/databaseInstance.d.ts +30 -9
- package/databaseInstance.js +21 -0
- package/databaseInstance.js.map +1 -1
- package/databaseUser.d.ts +1 -1
- package/databaseUser.js +1 -1
- package/databases/getInstance.d.ts +1 -0
- package/databases/getInstance.js.map +1 -1
- package/databases/instance.d.ts +30 -9
- package/databases/instance.js +21 -0
- package/databases/instance.js.map +1 -1
- package/databases/user.d.ts +1 -1
- package/databases/user.js +1 -1
- package/elasticmetal/getOffer.d.ts +6 -0
- package/elasticmetal/getOffer.js.map +1 -1
- package/fileFilesystem.d.ts +4 -4
- package/fileFilesystem.js +5 -5
- package/fileFilesystem.js.map +1 -1
- package/getBaremetalOffer.d.ts +6 -0
- package/getBaremetalOffer.js.map +1 -1
- package/getDatabaseInstance.d.ts +1 -0
- package/getDatabaseInstance.js.map +1 -1
- package/getInstanceServer.d.ts +2 -22
- package/getInstanceServer.js.map +1 -1
- package/getKubernetesCluster.d.ts +3 -0
- package/getKubernetesCluster.js.map +1 -1
- package/iam/getPolicy.d.ts +129 -0
- package/iam/getPolicy.js +66 -0
- package/iam/getPolicy.js.map +1 -0
- package/iam/index.d.ts +3 -0
- package/iam/index.js +4 -1
- package/iam/index.js.map +1 -1
- package/instance/getServer.d.ts +2 -22
- package/instance/getServer.js.map +1 -1
- package/instance/server.d.ts +40 -83
- package/instance/server.js +34 -12
- package/instance/server.js.map +1 -1
- package/instanceServer.d.ts +40 -83
- package/instanceServer.js +34 -12
- package/instanceServer.js.map +1 -1
- package/iot/device.d.ts +0 -23
- package/iot/device.js +0 -23
- package/iot/device.js.map +1 -1
- package/iot/route.d.ts +10 -10
- package/iot/route.js +10 -10
- package/iotDevice.d.ts +0 -23
- package/iotDevice.js +0 -23
- package/iotDevice.js.map +1 -1
- package/iotRoute.d.ts +10 -10
- package/iotRoute.js +10 -10
- package/kubernetes/cluster.d.ts +65 -2
- package/kubernetes/cluster.js +8 -2
- package/kubernetes/cluster.js.map +1 -1
- package/kubernetes/getCluster.d.ts +3 -0
- package/kubernetes/getCluster.js.map +1 -1
- package/kubernetesCluster.d.ts +65 -2
- package/kubernetesCluster.js +8 -2
- package/kubernetesCluster.js.map +1 -1
- package/object/bucketPolicy.d.ts +0 -36
- package/object/bucketPolicy.js +0 -36
- package/object/bucketPolicy.js.map +1 -1
- package/objectBucketPolicy.d.ts +0 -36
- package/objectBucketPolicy.js +0 -36
- package/objectBucketPolicy.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +58 -2
- package/types/output.d.ts +140 -62
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to get information on an existing IAM policy based on its ID.
|
|
5
|
+
* For more information refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
12
|
+
*
|
|
13
|
+
* // Get policy by id
|
|
14
|
+
* const findById = scaleway.iam.getPolicy({
|
|
15
|
+
* policyId: "11111111-1111-1111-1111-111111111111",
|
|
16
|
+
* });
|
|
17
|
+
* // Get policy by name
|
|
18
|
+
* const findByName = scaleway.iam.getPolicy({
|
|
19
|
+
* name: "my_policy",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPolicy(args?: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of arguments for invoking getPolicy.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetPolicyArgs {
|
|
28
|
+
/**
|
|
29
|
+
* The name of the IAM policy.
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the IAM policy.
|
|
34
|
+
*
|
|
35
|
+
* > **Note** You must specify at least one: `name` and/or `policyId`.
|
|
36
|
+
*/
|
|
37
|
+
policyId?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A collection of values returned by getPolicy.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetPolicyResult {
|
|
43
|
+
/**
|
|
44
|
+
* ID of the application the policy is linked to
|
|
45
|
+
*/
|
|
46
|
+
readonly applicationId: string;
|
|
47
|
+
/**
|
|
48
|
+
* The date and time of the creation of the policy.
|
|
49
|
+
*/
|
|
50
|
+
readonly createdAt: string;
|
|
51
|
+
/**
|
|
52
|
+
* The description of the IAM policy.
|
|
53
|
+
*/
|
|
54
|
+
readonly description: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the policy is editable.
|
|
57
|
+
*/
|
|
58
|
+
readonly editable: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* ID of the group the policy is linked to
|
|
61
|
+
*/
|
|
62
|
+
readonly groupId: string;
|
|
63
|
+
/**
|
|
64
|
+
* The provider-assigned unique ID for this managed resource.
|
|
65
|
+
*/
|
|
66
|
+
readonly id: string;
|
|
67
|
+
readonly name?: string;
|
|
68
|
+
/**
|
|
69
|
+
* If the policy doesn't apply to a principal.
|
|
70
|
+
*/
|
|
71
|
+
readonly noPrincipal: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* ID of organization scoped to the rule.
|
|
74
|
+
*/
|
|
75
|
+
readonly organizationId: string;
|
|
76
|
+
readonly policyId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* List of rules in the policy.
|
|
79
|
+
*/
|
|
80
|
+
readonly rules: outputs.iam.GetPolicyRule[];
|
|
81
|
+
/**
|
|
82
|
+
* The tags associated with the IAM policy.
|
|
83
|
+
*/
|
|
84
|
+
readonly tags: string[];
|
|
85
|
+
/**
|
|
86
|
+
* The date and time of the last update of the policy.
|
|
87
|
+
*/
|
|
88
|
+
readonly updatedAt: string;
|
|
89
|
+
/**
|
|
90
|
+
* ID of the user the policy is linked to
|
|
91
|
+
*/
|
|
92
|
+
readonly userId: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Use this data source to get information on an existing IAM policy based on its ID.
|
|
96
|
+
* For more information refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/).
|
|
97
|
+
*
|
|
98
|
+
* ## Example Usage
|
|
99
|
+
*
|
|
100
|
+
* ```typescript
|
|
101
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
102
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
103
|
+
*
|
|
104
|
+
* // Get policy by id
|
|
105
|
+
* const findById = scaleway.iam.getPolicy({
|
|
106
|
+
* policyId: "11111111-1111-1111-1111-111111111111",
|
|
107
|
+
* });
|
|
108
|
+
* // Get policy by name
|
|
109
|
+
* const findByName = scaleway.iam.getPolicy({
|
|
110
|
+
* name: "my_policy",
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export declare function getPolicyOutput(args?: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
|
|
115
|
+
/**
|
|
116
|
+
* A collection of arguments for invoking getPolicy.
|
|
117
|
+
*/
|
|
118
|
+
export interface GetPolicyOutputArgs {
|
|
119
|
+
/**
|
|
120
|
+
* The name of the IAM policy.
|
|
121
|
+
*/
|
|
122
|
+
name?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the IAM policy.
|
|
125
|
+
*
|
|
126
|
+
* > **Note** You must specify at least one: `name` and/or `policyId`.
|
|
127
|
+
*/
|
|
128
|
+
policyId?: pulumi.Input<string>;
|
|
129
|
+
}
|
package/iam/getPolicy.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getPolicyOutput = exports.getPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to get information on an existing IAM policy based on its ID.
|
|
10
|
+
* For more information refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/).
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
17
|
+
*
|
|
18
|
+
* // Get policy by id
|
|
19
|
+
* const findById = scaleway.iam.getPolicy({
|
|
20
|
+
* policyId: "11111111-1111-1111-1111-111111111111",
|
|
21
|
+
* });
|
|
22
|
+
* // Get policy by name
|
|
23
|
+
* const findByName = scaleway.iam.getPolicy({
|
|
24
|
+
* name: "my_policy",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function getPolicy(args, opts) {
|
|
29
|
+
args = args || {};
|
|
30
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
31
|
+
return pulumi.runtime.invoke("scaleway:iam/getPolicy:getPolicy", {
|
|
32
|
+
"name": args.name,
|
|
33
|
+
"policyId": args.policyId,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getPolicy = getPolicy;
|
|
37
|
+
/**
|
|
38
|
+
* Use this data source to get information on an existing IAM policy based on its ID.
|
|
39
|
+
* For more information refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/).
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
46
|
+
*
|
|
47
|
+
* // Get policy by id
|
|
48
|
+
* const findById = scaleway.iam.getPolicy({
|
|
49
|
+
* policyId: "11111111-1111-1111-1111-111111111111",
|
|
50
|
+
* });
|
|
51
|
+
* // Get policy by name
|
|
52
|
+
* const findByName = scaleway.iam.getPolicy({
|
|
53
|
+
* name: "my_policy",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
function getPolicyOutput(args, opts) {
|
|
58
|
+
args = args || {};
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
60
|
+
return pulumi.runtime.invokeOutput("scaleway:iam/getPolicy:getPolicy", {
|
|
61
|
+
"name": args.name,
|
|
62
|
+
"policyId": args.policyId,
|
|
63
|
+
}, opts);
|
|
64
|
+
}
|
|
65
|
+
exports.getPolicyOutput = getPolicyOutput;
|
|
66
|
+
//# sourceMappingURL=getPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicy.js","sourceRoot":"","sources":["../../iam/getPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,kCAAkC,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAyED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,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,kCAAkC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
|
package/iam/index.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export declare const getApplicationOutput: typeof import("./getApplication").get
|
|
|
13
13
|
export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup";
|
|
14
14
|
export declare const getGroup: typeof import("./getGroup").getGroup;
|
|
15
15
|
export declare const getGroupOutput: typeof import("./getGroup").getGroupOutput;
|
|
16
|
+
export { GetPolicyArgs, GetPolicyResult, GetPolicyOutputArgs } from "./getPolicy";
|
|
17
|
+
export declare const getPolicy: typeof import("./getPolicy").getPolicy;
|
|
18
|
+
export declare const getPolicyOutput: typeof import("./getPolicy").getPolicyOutput;
|
|
16
19
|
export { GetSshKeyArgs, GetSshKeyResult, GetSshKeyOutputArgs } from "./getSshKey";
|
|
17
20
|
export declare const getSshKey: typeof import("./getSshKey").getSshKey;
|
|
18
21
|
export declare const getSshKeyOutput: typeof import("./getSshKey").getSshKeyOutput;
|
package/iam/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.User = exports.SshKey = exports.Policy = exports.GroupMembership = exports.Group = exports.getUserOutput = exports.getUser = exports.getSshKeyOutput = exports.getSshKey = exports.getGroupOutput = exports.getGroup = exports.getApplicationOutput = exports.getApplication = exports.getApiKeyOutput = exports.getApiKey = exports.Application = exports.ApiKey = void 0;
|
|
5
|
+
exports.User = exports.SshKey = exports.Policy = exports.GroupMembership = exports.Group = exports.getUserOutput = exports.getUser = exports.getSshKeyOutput = exports.getSshKey = exports.getPolicyOutput = exports.getPolicy = exports.getGroupOutput = exports.getGroup = exports.getApplicationOutput = exports.getApplication = exports.getApiKeyOutput = exports.getApiKey = exports.Application = exports.ApiKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.ApiKey = null;
|
|
@@ -18,6 +18,9 @@ utilities.lazyLoad(exports, ["getApplication", "getApplicationOutput"], () => re
|
|
|
18
18
|
exports.getGroup = null;
|
|
19
19
|
exports.getGroupOutput = null;
|
|
20
20
|
utilities.lazyLoad(exports, ["getGroup", "getGroupOutput"], () => require("./getGroup"));
|
|
21
|
+
exports.getPolicy = null;
|
|
22
|
+
exports.getPolicyOutput = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["getPolicy", "getPolicyOutput"], () => require("./getPolicy"));
|
|
21
24
|
exports.getSshKey = null;
|
|
22
25
|
exports.getSshKeyOutput = null;
|
|
23
26
|
utilities.lazyLoad(exports, ["getSshKey", "getSshKeyOutput"], () => require("./getSshKey"));
|
package/iam/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../iam/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,MAAM,GAAqC,IAAW,CAAC;AACpE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAA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AO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;AACvE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA"}
|
package/instance/getServer.d.ts
CHANGED
|
@@ -45,10 +45,7 @@ export interface GetServerResult {
|
|
|
45
45
|
* True if dynamic IP in enable on the server.
|
|
46
46
|
*/
|
|
47
47
|
readonly enableDynamicIp: boolean;
|
|
48
|
-
|
|
49
|
-
* Determines if IPv6 is enabled for the server.
|
|
50
|
-
*/
|
|
51
|
-
readonly enableIpv6: boolean;
|
|
48
|
+
readonly filesystems: outputs.instance.GetServerFilesystem[];
|
|
52
49
|
/**
|
|
53
50
|
* The provider-assigned unique ID for this managed resource.
|
|
54
51
|
*/
|
|
@@ -59,18 +56,6 @@ export interface GetServerResult {
|
|
|
59
56
|
readonly image: string;
|
|
60
57
|
readonly ipId: string;
|
|
61
58
|
readonly ipIds: string[];
|
|
62
|
-
/**
|
|
63
|
-
* The default ipv6 address routed to the server. ( Only set when enableIpv6 is set to true )
|
|
64
|
-
*/
|
|
65
|
-
readonly ipv6Address: string;
|
|
66
|
-
/**
|
|
67
|
-
* The ipv6 gateway address. ( Only set when enableIpv6 is set to true )
|
|
68
|
-
*/
|
|
69
|
-
readonly ipv6Gateway: string;
|
|
70
|
-
/**
|
|
71
|
-
* The prefix length of the ipv6 subnet routed to the server. ( Only set when enableIpv6 is set to true )
|
|
72
|
-
*/
|
|
73
|
-
readonly ipv6PrefixLength: number;
|
|
74
59
|
readonly name?: string;
|
|
75
60
|
/**
|
|
76
61
|
* The ID of the organization the server is associated with.
|
|
@@ -85,17 +70,12 @@ export interface GetServerResult {
|
|
|
85
70
|
*/
|
|
86
71
|
readonly placementGroupPolicyRespected: boolean;
|
|
87
72
|
/**
|
|
88
|
-
* The
|
|
73
|
+
* The list of private IPs of the server.
|
|
89
74
|
*/
|
|
90
|
-
readonly privateIp: string;
|
|
91
75
|
readonly privateIps: outputs.instance.GetServerPrivateIp[];
|
|
92
76
|
readonly privateNetworks: outputs.instance.GetServerPrivateNetwork[];
|
|
93
77
|
readonly projectId?: string;
|
|
94
78
|
readonly protected: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* The public IP address of the server.
|
|
97
|
-
*/
|
|
98
|
-
readonly publicIp: string;
|
|
99
79
|
/**
|
|
100
80
|
* The list of public IPs of the server
|
|
101
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServer.js","sourceRoot":"","sources":["../../instance/getServer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,uCAAuC,EAAE;QAClE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;
|
|
1
|
+
{"version":3,"file":"getServer.js","sourceRoot":"","sources":["../../instance/getServer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,uCAAuC,EAAE;QAClE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;AAyGD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,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,uCAAuC,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC"}
|
package/instance/server.d.ts
CHANGED
|
@@ -46,6 +46,38 @@ import * as outputs from "../types/output";
|
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
|
+
* ### With filesystem
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
54
|
+
*
|
|
55
|
+
* const volume = new scaleway.block.Volume("volume", {
|
|
56
|
+
* iops: 15000,
|
|
57
|
+
* sizeInGb: 15,
|
|
58
|
+
* });
|
|
59
|
+
* const terraformInstanceFilesystem = new scaleway.FileFilesystem("terraform_instance_filesystem", {
|
|
60
|
+
* name: "filesystem-instance-terraform",
|
|
61
|
+
* sizeInGb: 100,
|
|
62
|
+
* });
|
|
63
|
+
* const base = new scaleway.instance.Server("base", {
|
|
64
|
+
* type: "POP2-HM-2C-16G",
|
|
65
|
+
* state: "started",
|
|
66
|
+
* tags: [
|
|
67
|
+
* "terraform-test",
|
|
68
|
+
* "scaleway_instance_server",
|
|
69
|
+
* "state",
|
|
70
|
+
* ],
|
|
71
|
+
* rootVolume: {
|
|
72
|
+
* volumeType: "sbs_volume",
|
|
73
|
+
* volumeId: volume.id,
|
|
74
|
+
* },
|
|
75
|
+
* filesystems: [{
|
|
76
|
+
* filesystemId: terraformInstanceFilesystem.id,
|
|
77
|
+
* }],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
49
81
|
* ### With a reserved IP
|
|
50
82
|
*
|
|
51
83
|
* ```typescript
|
|
@@ -244,12 +276,9 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
244
276
|
*/
|
|
245
277
|
readonly enableDynamicIp: pulumi.Output<boolean | undefined>;
|
|
246
278
|
/**
|
|
247
|
-
*
|
|
248
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
249
|
-
*
|
|
250
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
279
|
+
* List of filesystems attached to the server.
|
|
251
280
|
*/
|
|
252
|
-
readonly
|
|
281
|
+
readonly filesystems: pulumi.Output<outputs.instance.ServerFilesystem[]>;
|
|
253
282
|
/**
|
|
254
283
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
255
284
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
@@ -269,27 +298,6 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
269
298
|
* > `ipId` to `ipIds` migration: if moving the ip from the old `ipId` field to the new `ipIds`, it should not detach the ip.
|
|
270
299
|
*/
|
|
271
300
|
readonly ipIds: pulumi.Output<string[] | undefined>;
|
|
272
|
-
/**
|
|
273
|
-
* The default ipv6 address routed to the server. ( Only set when enableIpv6 is set to true )
|
|
274
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
275
|
-
*
|
|
276
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
277
|
-
*/
|
|
278
|
-
readonly ipv6Address: pulumi.Output<string>;
|
|
279
|
-
/**
|
|
280
|
-
* The ipv6 gateway address. ( Only set when enableIpv6 is set to true )
|
|
281
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
282
|
-
*
|
|
283
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
284
|
-
*/
|
|
285
|
-
readonly ipv6Gateway: pulumi.Output<string>;
|
|
286
|
-
/**
|
|
287
|
-
* The prefix length of the ipv6 subnet routed to the server. ( Only set when enableIpv6 is set to true )
|
|
288
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
289
|
-
*
|
|
290
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
291
|
-
*/
|
|
292
|
-
readonly ipv6PrefixLength: pulumi.Output<number>;
|
|
293
301
|
/**
|
|
294
302
|
* The name of the server.
|
|
295
303
|
*/
|
|
@@ -306,15 +314,9 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
306
314
|
*/
|
|
307
315
|
readonly placementGroupId: pulumi.Output<string | undefined>;
|
|
308
316
|
/**
|
|
309
|
-
* (Deprecated) Always false, use instancePlacementGroup
|
|
317
|
+
* (Deprecated) Always false, use instancePlacementGroup resource to known when the placement group policy is respected.
|
|
310
318
|
*/
|
|
311
319
|
readonly placementGroupPolicyRespected: pulumi.Output<boolean>;
|
|
312
|
-
/**
|
|
313
|
-
* The Scaleway internal IP address of the server (Deprecated use ipamIp datasource instead).
|
|
314
|
-
*
|
|
315
|
-
* @deprecated Use ipamIp datasource instead to fetch your server's IP in your private network.
|
|
316
|
-
*/
|
|
317
|
-
readonly privateIp: pulumi.Output<string>;
|
|
318
320
|
/**
|
|
319
321
|
* The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
320
322
|
*/
|
|
@@ -332,12 +334,6 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
332
334
|
* Set to true to activate server protection option.
|
|
333
335
|
*/
|
|
334
336
|
readonly protected: pulumi.Output<boolean | undefined>;
|
|
335
|
-
/**
|
|
336
|
-
* The public IP address of the server (Deprecated use `publicIps` instead).
|
|
337
|
-
*
|
|
338
|
-
* @deprecated Use publicIps instead
|
|
339
|
-
*/
|
|
340
|
-
readonly publicIp: pulumi.Output<string>;
|
|
341
337
|
/**
|
|
342
338
|
* The list of public IPs of the server.
|
|
343
339
|
*/
|
|
@@ -433,12 +429,9 @@ export interface ServerState {
|
|
|
433
429
|
*/
|
|
434
430
|
enableDynamicIp?: pulumi.Input<boolean>;
|
|
435
431
|
/**
|
|
436
|
-
*
|
|
437
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
438
|
-
*
|
|
439
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
432
|
+
* List of filesystems attached to the server.
|
|
440
433
|
*/
|
|
441
|
-
|
|
434
|
+
filesystems?: pulumi.Input<pulumi.Input<inputs.instance.ServerFilesystem>[]>;
|
|
442
435
|
/**
|
|
443
436
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
444
437
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
@@ -458,27 +451,6 @@ export interface ServerState {
|
|
|
458
451
|
* > `ipId` to `ipIds` migration: if moving the ip from the old `ipId` field to the new `ipIds`, it should not detach the ip.
|
|
459
452
|
*/
|
|
460
453
|
ipIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
461
|
-
/**
|
|
462
|
-
* The default ipv6 address routed to the server. ( Only set when enableIpv6 is set to true )
|
|
463
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
464
|
-
*
|
|
465
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
466
|
-
*/
|
|
467
|
-
ipv6Address?: pulumi.Input<string>;
|
|
468
|
-
/**
|
|
469
|
-
* The ipv6 gateway address. ( Only set when enableIpv6 is set to true )
|
|
470
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
471
|
-
*
|
|
472
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
473
|
-
*/
|
|
474
|
-
ipv6Gateway?: pulumi.Input<string>;
|
|
475
|
-
/**
|
|
476
|
-
* The prefix length of the ipv6 subnet routed to the server. ( Only set when enableIpv6 is set to true )
|
|
477
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
478
|
-
*
|
|
479
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
480
|
-
*/
|
|
481
|
-
ipv6PrefixLength?: pulumi.Input<number>;
|
|
482
454
|
/**
|
|
483
455
|
* The name of the server.
|
|
484
456
|
*/
|
|
@@ -495,15 +467,9 @@ export interface ServerState {
|
|
|
495
467
|
*/
|
|
496
468
|
placementGroupId?: pulumi.Input<string>;
|
|
497
469
|
/**
|
|
498
|
-
* (Deprecated) Always false, use instancePlacementGroup
|
|
470
|
+
* (Deprecated) Always false, use instancePlacementGroup resource to known when the placement group policy is respected.
|
|
499
471
|
*/
|
|
500
472
|
placementGroupPolicyRespected?: pulumi.Input<boolean>;
|
|
501
|
-
/**
|
|
502
|
-
* The Scaleway internal IP address of the server (Deprecated use ipamIp datasource instead).
|
|
503
|
-
*
|
|
504
|
-
* @deprecated Use ipamIp datasource instead to fetch your server's IP in your private network.
|
|
505
|
-
*/
|
|
506
|
-
privateIp?: pulumi.Input<string>;
|
|
507
473
|
/**
|
|
508
474
|
* The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
509
475
|
*/
|
|
@@ -521,12 +487,6 @@ export interface ServerState {
|
|
|
521
487
|
* Set to true to activate server protection option.
|
|
522
488
|
*/
|
|
523
489
|
protected?: pulumi.Input<boolean>;
|
|
524
|
-
/**
|
|
525
|
-
* The public IP address of the server (Deprecated use `publicIps` instead).
|
|
526
|
-
*
|
|
527
|
-
* @deprecated Use publicIps instead
|
|
528
|
-
*/
|
|
529
|
-
publicIp?: pulumi.Input<string>;
|
|
530
490
|
/**
|
|
531
491
|
* The list of public IPs of the server.
|
|
532
492
|
*/
|
|
@@ -614,12 +574,9 @@ export interface ServerArgs {
|
|
|
614
574
|
*/
|
|
615
575
|
enableDynamicIp?: pulumi.Input<boolean>;
|
|
616
576
|
/**
|
|
617
|
-
*
|
|
618
|
-
* Deprecated: Please use a scaleway.instance.Ip with a `routedIpv6` type.
|
|
619
|
-
*
|
|
620
|
-
* @deprecated Please use a scaleway.instance.Ip with a `routedIpv6` type
|
|
577
|
+
* List of filesystems attached to the server.
|
|
621
578
|
*/
|
|
622
|
-
|
|
579
|
+
filesystems?: pulumi.Input<pulumi.Input<inputs.instance.ServerFilesystem>[]>;
|
|
623
580
|
/**
|
|
624
581
|
* The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
625
582
|
* to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
package/instance/server.js
CHANGED
|
@@ -50,6 +50,38 @@ const utilities = require("../utilities");
|
|
|
50
50
|
* });
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
+
* ### With filesystem
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as scaleway from "@pulumiverse/scaleway";
|
|
58
|
+
*
|
|
59
|
+
* const volume = new scaleway.block.Volume("volume", {
|
|
60
|
+
* iops: 15000,
|
|
61
|
+
* sizeInGb: 15,
|
|
62
|
+
* });
|
|
63
|
+
* const terraformInstanceFilesystem = new scaleway.FileFilesystem("terraform_instance_filesystem", {
|
|
64
|
+
* name: "filesystem-instance-terraform",
|
|
65
|
+
* sizeInGb: 100,
|
|
66
|
+
* });
|
|
67
|
+
* const base = new scaleway.instance.Server("base", {
|
|
68
|
+
* type: "POP2-HM-2C-16G",
|
|
69
|
+
* state: "started",
|
|
70
|
+
* tags: [
|
|
71
|
+
* "terraform-test",
|
|
72
|
+
* "scaleway_instance_server",
|
|
73
|
+
* "state",
|
|
74
|
+
* ],
|
|
75
|
+
* rootVolume: {
|
|
76
|
+
* volumeType: "sbs_volume",
|
|
77
|
+
* volumeId: volume.id,
|
|
78
|
+
* },
|
|
79
|
+
* filesystems: [{
|
|
80
|
+
* filesystemId: terraformInstanceFilesystem.id,
|
|
81
|
+
* }],
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
53
85
|
* ### With a reserved IP
|
|
54
86
|
*
|
|
55
87
|
* ```typescript
|
|
@@ -232,23 +264,18 @@ class Server extends pulumi.CustomResource {
|
|
|
232
264
|
resourceInputs["bootscriptId"] = state?.bootscriptId;
|
|
233
265
|
resourceInputs["cloudInit"] = state?.cloudInit;
|
|
234
266
|
resourceInputs["enableDynamicIp"] = state?.enableDynamicIp;
|
|
235
|
-
resourceInputs["
|
|
267
|
+
resourceInputs["filesystems"] = state?.filesystems;
|
|
236
268
|
resourceInputs["image"] = state?.image;
|
|
237
269
|
resourceInputs["ipId"] = state?.ipId;
|
|
238
270
|
resourceInputs["ipIds"] = state?.ipIds;
|
|
239
|
-
resourceInputs["ipv6Address"] = state?.ipv6Address;
|
|
240
|
-
resourceInputs["ipv6Gateway"] = state?.ipv6Gateway;
|
|
241
|
-
resourceInputs["ipv6PrefixLength"] = state?.ipv6PrefixLength;
|
|
242
271
|
resourceInputs["name"] = state?.name;
|
|
243
272
|
resourceInputs["organizationId"] = state?.organizationId;
|
|
244
273
|
resourceInputs["placementGroupId"] = state?.placementGroupId;
|
|
245
274
|
resourceInputs["placementGroupPolicyRespected"] = state?.placementGroupPolicyRespected;
|
|
246
|
-
resourceInputs["privateIp"] = state?.privateIp;
|
|
247
275
|
resourceInputs["privateIps"] = state?.privateIps;
|
|
248
276
|
resourceInputs["privateNetworks"] = state?.privateNetworks;
|
|
249
277
|
resourceInputs["projectId"] = state?.projectId;
|
|
250
278
|
resourceInputs["protected"] = state?.protected;
|
|
251
|
-
resourceInputs["publicIp"] = state?.publicIp;
|
|
252
279
|
resourceInputs["publicIps"] = state?.publicIps;
|
|
253
280
|
resourceInputs["replaceOnTypeChange"] = state?.replaceOnTypeChange;
|
|
254
281
|
resourceInputs["rootVolume"] = state?.rootVolume;
|
|
@@ -270,7 +297,7 @@ class Server extends pulumi.CustomResource {
|
|
|
270
297
|
resourceInputs["bootscriptId"] = args?.bootscriptId;
|
|
271
298
|
resourceInputs["cloudInit"] = args?.cloudInit;
|
|
272
299
|
resourceInputs["enableDynamicIp"] = args?.enableDynamicIp;
|
|
273
|
-
resourceInputs["
|
|
300
|
+
resourceInputs["filesystems"] = args?.filesystems;
|
|
274
301
|
resourceInputs["image"] = args?.image;
|
|
275
302
|
resourceInputs["ipId"] = args?.ipId;
|
|
276
303
|
resourceInputs["ipIds"] = args?.ipIds;
|
|
@@ -289,13 +316,8 @@ class Server extends pulumi.CustomResource {
|
|
|
289
316
|
resourceInputs["type"] = args?.type;
|
|
290
317
|
resourceInputs["userData"] = args?.userData;
|
|
291
318
|
resourceInputs["zone"] = args?.zone;
|
|
292
|
-
resourceInputs["ipv6Address"] = undefined /*out*/;
|
|
293
|
-
resourceInputs["ipv6Gateway"] = undefined /*out*/;
|
|
294
|
-
resourceInputs["ipv6PrefixLength"] = undefined /*out*/;
|
|
295
319
|
resourceInputs["organizationId"] = undefined /*out*/;
|
|
296
320
|
resourceInputs["placementGroupPolicyRespected"] = undefined /*out*/;
|
|
297
|
-
resourceInputs["privateIp"] = undefined /*out*/;
|
|
298
|
-
resourceInputs["publicIp"] = undefined /*out*/;
|
|
299
321
|
}
|
|
300
322
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
301
323
|
const aliasOpts = { aliases: [{ type: "scaleway:index/instanceServer:InstanceServer" }] };
|
package/instance/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../instance/server.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../instance/server.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgOG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,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