@volcengine/pulumi 0.0.30 → 0.0.32
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/cloud_identity/permissionSetAssignment.d.ts +15 -0
- package/cloud_identity/permissionSetAssignment.js +2 -0
- package/cloud_identity/permissionSetAssignment.js.map +1 -1
- package/cloud_identity/permissionSetProvisioning.d.ts +5 -3
- package/cloud_identity/permissionSetProvisioning.js +5 -3
- package/cloud_identity/permissionSetProvisioning.js.map +1 -1
- package/dns/backup.d.ts +10 -1
- package/dns/backup.js +10 -1
- package/dns/backup.js.map +1 -1
- package/dns/zone.d.ts +1 -1
- package/dns/zone.js +1 -1
- package/ebs/getMaxExtraPerformances.d.ts +82 -0
- package/ebs/getMaxExtraPerformances.js +30 -0
- package/ebs/getMaxExtraPerformances.js.map +1 -0
- package/ebs/index.d.ts +6 -0
- package/ebs/index.js +7 -1
- package/ebs/index.js.map +1 -1
- package/ebs/maxExtraPerformances.d.ts +84 -0
- package/ebs/maxExtraPerformances.js +33 -0
- package/ebs/maxExtraPerformances.js.map +1 -0
- package/ebs/volume.d.ts +22 -14
- package/ebs/volume.js +7 -2
- package/ebs/volume.js.map +1 -1
- package/escloud_v2/escloudInstanceV2.d.ts +19 -3
- package/escloud_v2/escloudInstanceV2.js +19 -3
- package/escloud_v2/escloudInstanceV2.js.map +1 -1
- package/kafka/instance.d.ts +37 -0
- package/kafka/instance.js +37 -0
- package/kafka/instance.js.map +1 -1
- package/mongodb/instance.d.ts +66 -11
- package/mongodb/instance.js +40 -11
- package/mongodb/instance.js.map +1 -1
- package/nas/fileSystem.d.ts +58 -0
- package/nas/fileSystem.js +58 -0
- package/nas/fileSystem.js.map +1 -1
- package/nas/getMountPoints.d.ts +112 -0
- package/nas/getMountPoints.js +112 -0
- package/nas/getMountPoints.js.map +1 -1
- package/nas/mountPoint.d.ts +53 -0
- package/nas/mountPoint.js +53 -0
- package/nas/mountPoint.js.map +1 -1
- package/nas/mountPoints.d.ts +112 -0
- package/nas/mountPoints.js +112 -0
- package/nas/mountPoints.js.map +1 -1
- package/package.json +1 -1
- package/rds_mysql/instance.d.ts +42 -8
- package/rds_mysql/instance.js +42 -8
- package/rds_mysql/instance.js.map +1 -1
- package/rds_postgresql/instance.d.ts +54 -3
- package/rds_postgresql/instance.js +54 -3
- package/rds_postgresql/instance.js.map +1 -1
- package/redis/instance.d.ts +8 -1
- package/redis/instance.js +8 -1
- package/redis/instance.js.map +1 -1
- package/types/output.d.ts +220 -0
- package/vke/getPermissions.d.ts +137 -0
- package/vke/getPermissions.js +55 -0
- package/vke/getPermissions.js.map +1 -0
- package/vke/index.d.ts +9 -0
- package/vke/index.js +12 -1
- package/vke/index.js.map +1 -1
- package/vke/permission.d.ts +269 -0
- package/vke/permission.js +165 -0
- package/vke/permission.js.map +1 -0
- package/vke/permissions.d.ts +139 -0
- package/vke/permissions.js +58 -0
- package/vke/permissions.js.map +1 -0
- package/vpc/routeEntry.d.ts +27 -6
- package/vpc/routeEntry.js +27 -6
- package/vpc/routeEntry.js.map +1 -1
package/nas/fileSystem.js
CHANGED
|
@@ -7,6 +7,64 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Provides a resource to manage nas file system
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
18
|
+
* // create nas file system
|
|
19
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
20
|
+
* fileSystemName: "acc-test-fs",
|
|
21
|
+
* description: "acc-test",
|
|
22
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
23
|
+
* capacity: 103,
|
|
24
|
+
* projectName: "default",
|
|
25
|
+
* tags: [{
|
|
26
|
+
* key: "k1",
|
|
27
|
+
* value: "v1",
|
|
28
|
+
* }],
|
|
29
|
+
* });
|
|
30
|
+
* // create vpc
|
|
31
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
32
|
+
* vpcName: "acc-test-vpc",
|
|
33
|
+
* cidrBlock: "172.16.0.0/16",
|
|
34
|
+
* });
|
|
35
|
+
* // create subnet
|
|
36
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
37
|
+
* subnetName: "acc-test-subnet",
|
|
38
|
+
* cidrBlock: "172.16.0.0/24",
|
|
39
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
40
|
+
* vpcId: fooVpc.id,
|
|
41
|
+
* });
|
|
42
|
+
* // create nas permission group
|
|
43
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
44
|
+
* permissionGroupName: "acc-test",
|
|
45
|
+
* description: "acctest",
|
|
46
|
+
* permissionRules: [
|
|
47
|
+
* {
|
|
48
|
+
* cidrIp: "*",
|
|
49
|
+
* rwMode: "RW",
|
|
50
|
+
* useMode: "All_squash",
|
|
51
|
+
* },
|
|
52
|
+
* {
|
|
53
|
+
* cidrIp: "192.168.0.0",
|
|
54
|
+
* rwMode: "RO",
|
|
55
|
+
* useMode: "All_squash",
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* });
|
|
59
|
+
* // create nas mount point
|
|
60
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
61
|
+
* fileSystemId: fooFileSystem.id,
|
|
62
|
+
* mountPointName: "acc-test",
|
|
63
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
64
|
+
* subnetId: fooSubnet.id,
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
10
68
|
* ## Import
|
|
11
69
|
*
|
|
12
70
|
* NasFileSystem can be imported using the id, e.g.
|
package/nas/fileSystem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSystem.js","sourceRoot":"","sources":["../../nas/fileSystem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"fileSystem.js","sourceRoot":"","sources":["../../nas/fileSystem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmFD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC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AAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApKL,gCAqKC;AAvJG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
|
package/nas/getMountPoints.d.ts
CHANGED
|
@@ -2,6 +2,62 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as outputs from "../types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Use this data source to query detailed information of nas mount points
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
13
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
14
|
+
* vpcName: "acc-test-project1",
|
|
15
|
+
* cidrBlock: "172.16.0.0/16",
|
|
16
|
+
* });
|
|
17
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
18
|
+
* subnetName: "acc-subnet-test-2",
|
|
19
|
+
* cidrBlock: "172.16.0.0/24",
|
|
20
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
21
|
+
* vpcId: fooVpc.id,
|
|
22
|
+
* });
|
|
23
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
24
|
+
* permissionGroupName: "acc-test",
|
|
25
|
+
* description: "acctest",
|
|
26
|
+
* permissionRules: [
|
|
27
|
+
* {
|
|
28
|
+
* cidrIp: "*",
|
|
29
|
+
* rwMode: "RW",
|
|
30
|
+
* useMode: "All_squash",
|
|
31
|
+
* },
|
|
32
|
+
* {
|
|
33
|
+
* cidrIp: "192.168.0.0",
|
|
34
|
+
* rwMode: "RO",
|
|
35
|
+
* useMode: "All_squash",
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* });
|
|
39
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
40
|
+
* fileSystemName: "acc-test-fs",
|
|
41
|
+
* description: "acc-test",
|
|
42
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
43
|
+
* capacity: 103,
|
|
44
|
+
* projectName: "default",
|
|
45
|
+
* tags: [{
|
|
46
|
+
* key: "k1",
|
|
47
|
+
* value: "v1",
|
|
48
|
+
* }],
|
|
49
|
+
* });
|
|
50
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
51
|
+
* fileSystemId: fooFileSystem.id,
|
|
52
|
+
* mountPointName: "acc-test",
|
|
53
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
54
|
+
* subnetId: fooSubnet.id,
|
|
55
|
+
* });
|
|
56
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
57
|
+
* fileSystemId: fooFileSystem.id,
|
|
58
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
5
61
|
*/
|
|
6
62
|
export declare function getMountPoints(args: GetMountPointsArgs, opts?: pulumi.InvokeOptions): Promise<GetMountPointsResult>;
|
|
7
63
|
/**
|
|
@@ -65,6 +121,62 @@ export interface GetMountPointsResult {
|
|
|
65
121
|
}
|
|
66
122
|
/**
|
|
67
123
|
* Use this data source to query detailed information of nas mount points
|
|
124
|
+
* ## Example Usage
|
|
125
|
+
*
|
|
126
|
+
* ```typescript
|
|
127
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
128
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
129
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
130
|
+
*
|
|
131
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
132
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
133
|
+
* vpcName: "acc-test-project1",
|
|
134
|
+
* cidrBlock: "172.16.0.0/16",
|
|
135
|
+
* });
|
|
136
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
137
|
+
* subnetName: "acc-subnet-test-2",
|
|
138
|
+
* cidrBlock: "172.16.0.0/24",
|
|
139
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
140
|
+
* vpcId: fooVpc.id,
|
|
141
|
+
* });
|
|
142
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
143
|
+
* permissionGroupName: "acc-test",
|
|
144
|
+
* description: "acctest",
|
|
145
|
+
* permissionRules: [
|
|
146
|
+
* {
|
|
147
|
+
* cidrIp: "*",
|
|
148
|
+
* rwMode: "RW",
|
|
149
|
+
* useMode: "All_squash",
|
|
150
|
+
* },
|
|
151
|
+
* {
|
|
152
|
+
* cidrIp: "192.168.0.0",
|
|
153
|
+
* rwMode: "RO",
|
|
154
|
+
* useMode: "All_squash",
|
|
155
|
+
* },
|
|
156
|
+
* ],
|
|
157
|
+
* });
|
|
158
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
159
|
+
* fileSystemName: "acc-test-fs",
|
|
160
|
+
* description: "acc-test",
|
|
161
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
162
|
+
* capacity: 103,
|
|
163
|
+
* projectName: "default",
|
|
164
|
+
* tags: [{
|
|
165
|
+
* key: "k1",
|
|
166
|
+
* value: "v1",
|
|
167
|
+
* }],
|
|
168
|
+
* });
|
|
169
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
170
|
+
* fileSystemId: fooFileSystem.id,
|
|
171
|
+
* mountPointName: "acc-test",
|
|
172
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
173
|
+
* subnetId: fooSubnet.id,
|
|
174
|
+
* });
|
|
175
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
176
|
+
* fileSystemId: fooFileSystem.id,
|
|
177
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
178
|
+
* });
|
|
179
|
+
* ```
|
|
68
180
|
*/
|
|
69
181
|
export declare function getMountPointsOutput(args: GetMountPointsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMountPointsResult>;
|
|
70
182
|
/**
|
package/nas/getMountPoints.js
CHANGED
|
@@ -7,6 +7,62 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Use this data source to query detailed information of nas mount points
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
18
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
19
|
+
* vpcName: "acc-test-project1",
|
|
20
|
+
* cidrBlock: "172.16.0.0/16",
|
|
21
|
+
* });
|
|
22
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
23
|
+
* subnetName: "acc-subnet-test-2",
|
|
24
|
+
* cidrBlock: "172.16.0.0/24",
|
|
25
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
26
|
+
* vpcId: fooVpc.id,
|
|
27
|
+
* });
|
|
28
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
29
|
+
* permissionGroupName: "acc-test",
|
|
30
|
+
* description: "acctest",
|
|
31
|
+
* permissionRules: [
|
|
32
|
+
* {
|
|
33
|
+
* cidrIp: "*",
|
|
34
|
+
* rwMode: "RW",
|
|
35
|
+
* useMode: "All_squash",
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* cidrIp: "192.168.0.0",
|
|
39
|
+
* rwMode: "RO",
|
|
40
|
+
* useMode: "All_squash",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
45
|
+
* fileSystemName: "acc-test-fs",
|
|
46
|
+
* description: "acc-test",
|
|
47
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
48
|
+
* capacity: 103,
|
|
49
|
+
* projectName: "default",
|
|
50
|
+
* tags: [{
|
|
51
|
+
* key: "k1",
|
|
52
|
+
* value: "v1",
|
|
53
|
+
* }],
|
|
54
|
+
* });
|
|
55
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
56
|
+
* fileSystemId: fooFileSystem.id,
|
|
57
|
+
* mountPointName: "acc-test",
|
|
58
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
59
|
+
* subnetId: fooSubnet.id,
|
|
60
|
+
* });
|
|
61
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
62
|
+
* fileSystemId: fooFileSystem.id,
|
|
63
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
10
66
|
*/
|
|
11
67
|
function getMountPoints(args, opts) {
|
|
12
68
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -21,6 +77,62 @@ function getMountPoints(args, opts) {
|
|
|
21
77
|
exports.getMountPoints = getMountPoints;
|
|
22
78
|
/**
|
|
23
79
|
* Use this data source to query detailed information of nas mount points
|
|
80
|
+
* ## Example Usage
|
|
81
|
+
*
|
|
82
|
+
* ```typescript
|
|
83
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
84
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
85
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
86
|
+
*
|
|
87
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
88
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
89
|
+
* vpcName: "acc-test-project1",
|
|
90
|
+
* cidrBlock: "172.16.0.0/16",
|
|
91
|
+
* });
|
|
92
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
93
|
+
* subnetName: "acc-subnet-test-2",
|
|
94
|
+
* cidrBlock: "172.16.0.0/24",
|
|
95
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
96
|
+
* vpcId: fooVpc.id,
|
|
97
|
+
* });
|
|
98
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
99
|
+
* permissionGroupName: "acc-test",
|
|
100
|
+
* description: "acctest",
|
|
101
|
+
* permissionRules: [
|
|
102
|
+
* {
|
|
103
|
+
* cidrIp: "*",
|
|
104
|
+
* rwMode: "RW",
|
|
105
|
+
* useMode: "All_squash",
|
|
106
|
+
* },
|
|
107
|
+
* {
|
|
108
|
+
* cidrIp: "192.168.0.0",
|
|
109
|
+
* rwMode: "RO",
|
|
110
|
+
* useMode: "All_squash",
|
|
111
|
+
* },
|
|
112
|
+
* ],
|
|
113
|
+
* });
|
|
114
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
115
|
+
* fileSystemName: "acc-test-fs",
|
|
116
|
+
* description: "acc-test",
|
|
117
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
118
|
+
* capacity: 103,
|
|
119
|
+
* projectName: "default",
|
|
120
|
+
* tags: [{
|
|
121
|
+
* key: "k1",
|
|
122
|
+
* value: "v1",
|
|
123
|
+
* }],
|
|
124
|
+
* });
|
|
125
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
126
|
+
* fileSystemId: fooFileSystem.id,
|
|
127
|
+
* mountPointName: "acc-test",
|
|
128
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
129
|
+
* subnetId: fooSubnet.id,
|
|
130
|
+
* });
|
|
131
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
132
|
+
* fileSystemId: fooFileSystem.id,
|
|
133
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
24
136
|
*/
|
|
25
137
|
function getMountPointsOutput(args, opts) {
|
|
26
138
|
return pulumi.output(args).apply((a) => getMountPoints(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMountPoints.js","sourceRoot":"","sources":["../../nas/getMountPoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getMountPoints.js","sourceRoot":"","sources":["../../nas/getMountPoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,wCAUC;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/nas/mountPoint.d.ts
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Provides a resource to manage nas mount point
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
9
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
10
|
+
*
|
|
11
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
12
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
13
|
+
* vpcName: "acc-test-project1",
|
|
14
|
+
* cidrBlock: "172.16.0.0/16",
|
|
15
|
+
* });
|
|
16
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
17
|
+
* subnetName: "acc-subnet-test-2",
|
|
18
|
+
* cidrBlock: "172.16.0.0/24",
|
|
19
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
20
|
+
* vpcId: fooVpc.id,
|
|
21
|
+
* });
|
|
22
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
23
|
+
* permissionGroupName: "acc-test",
|
|
24
|
+
* description: "acctest",
|
|
25
|
+
* permissionRules: [
|
|
26
|
+
* {
|
|
27
|
+
* cidrIp: "*",
|
|
28
|
+
* rwMode: "RW",
|
|
29
|
+
* useMode: "All_squash",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* cidrIp: "192.168.0.0",
|
|
33
|
+
* rwMode: "RO",
|
|
34
|
+
* useMode: "All_squash",
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* });
|
|
38
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
39
|
+
* fileSystemName: "acc-test-fs",
|
|
40
|
+
* description: "acc-test",
|
|
41
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
42
|
+
* capacity: 103,
|
|
43
|
+
* projectName: "default",
|
|
44
|
+
* tags: [{
|
|
45
|
+
* key: "k1",
|
|
46
|
+
* value: "v1",
|
|
47
|
+
* }],
|
|
48
|
+
* });
|
|
49
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
50
|
+
* fileSystemId: fooFileSystem.id,
|
|
51
|
+
* mountPointName: "acc-test",
|
|
52
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
53
|
+
* subnetId: fooSubnet.id,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
4
57
|
* ## Import
|
|
5
58
|
*
|
|
6
59
|
* Nas Mount Point can be imported using the file system id and mount point id, e.g.
|
package/nas/mountPoint.js
CHANGED
|
@@ -7,6 +7,59 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Provides a resource to manage nas mount point
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
15
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
18
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
19
|
+
* vpcName: "acc-test-project1",
|
|
20
|
+
* cidrBlock: "172.16.0.0/16",
|
|
21
|
+
* });
|
|
22
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
23
|
+
* subnetName: "acc-subnet-test-2",
|
|
24
|
+
* cidrBlock: "172.16.0.0/24",
|
|
25
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
26
|
+
* vpcId: fooVpc.id,
|
|
27
|
+
* });
|
|
28
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
29
|
+
* permissionGroupName: "acc-test",
|
|
30
|
+
* description: "acctest",
|
|
31
|
+
* permissionRules: [
|
|
32
|
+
* {
|
|
33
|
+
* cidrIp: "*",
|
|
34
|
+
* rwMode: "RW",
|
|
35
|
+
* useMode: "All_squash",
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* cidrIp: "192.168.0.0",
|
|
39
|
+
* rwMode: "RO",
|
|
40
|
+
* useMode: "All_squash",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
45
|
+
* fileSystemName: "acc-test-fs",
|
|
46
|
+
* description: "acc-test",
|
|
47
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
48
|
+
* capacity: 103,
|
|
49
|
+
* projectName: "default",
|
|
50
|
+
* tags: [{
|
|
51
|
+
* key: "k1",
|
|
52
|
+
* value: "v1",
|
|
53
|
+
* }],
|
|
54
|
+
* });
|
|
55
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
56
|
+
* fileSystemId: fooFileSystem.id,
|
|
57
|
+
* mountPointName: "acc-test",
|
|
58
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
59
|
+
* subnetId: fooSubnet.id,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
10
63
|
* ## Import
|
|
11
64
|
*
|
|
12
65
|
* Nas Mount Point can be imported using the file system id and mount point id, e.g.
|
package/nas/mountPoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountPoint.js","sourceRoot":"","sources":["../../nas/mountPoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"mountPoint.js","sourceRoot":"","sources":["../../nas/mountPoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cA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aACpE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAzFL,gCA0FC;AA5EG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
|
package/nas/mountPoints.d.ts
CHANGED
|
@@ -2,6 +2,62 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as outputs from "../types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Use this data source to query detailed information of nas mount points
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
10
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
11
|
+
*
|
|
12
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
13
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
14
|
+
* vpcName: "acc-test-project1",
|
|
15
|
+
* cidrBlock: "172.16.0.0/16",
|
|
16
|
+
* });
|
|
17
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
18
|
+
* subnetName: "acc-subnet-test-2",
|
|
19
|
+
* cidrBlock: "172.16.0.0/24",
|
|
20
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
21
|
+
* vpcId: fooVpc.id,
|
|
22
|
+
* });
|
|
23
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
24
|
+
* permissionGroupName: "acc-test",
|
|
25
|
+
* description: "acctest",
|
|
26
|
+
* permissionRules: [
|
|
27
|
+
* {
|
|
28
|
+
* cidrIp: "*",
|
|
29
|
+
* rwMode: "RW",
|
|
30
|
+
* useMode: "All_squash",
|
|
31
|
+
* },
|
|
32
|
+
* {
|
|
33
|
+
* cidrIp: "192.168.0.0",
|
|
34
|
+
* rwMode: "RO",
|
|
35
|
+
* useMode: "All_squash",
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* });
|
|
39
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
40
|
+
* fileSystemName: "acc-test-fs",
|
|
41
|
+
* description: "acc-test",
|
|
42
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
43
|
+
* capacity: 103,
|
|
44
|
+
* projectName: "default",
|
|
45
|
+
* tags: [{
|
|
46
|
+
* key: "k1",
|
|
47
|
+
* value: "v1",
|
|
48
|
+
* }],
|
|
49
|
+
* });
|
|
50
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
51
|
+
* fileSystemId: fooFileSystem.id,
|
|
52
|
+
* mountPointName: "acc-test",
|
|
53
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
54
|
+
* subnetId: fooSubnet.id,
|
|
55
|
+
* });
|
|
56
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
57
|
+
* fileSystemId: fooFileSystem.id,
|
|
58
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
5
61
|
*/
|
|
6
62
|
/** @deprecated volcengine.nas.MountPoints has been deprecated in favor of volcengine.nas.getMountPoints */
|
|
7
63
|
export declare function mountPoints(args: MountPointsArgs, opts?: pulumi.InvokeOptions): Promise<MountPointsResult>;
|
|
@@ -66,6 +122,62 @@ export interface MountPointsResult {
|
|
|
66
122
|
}
|
|
67
123
|
/**
|
|
68
124
|
* Use this data source to query detailed information of nas mount points
|
|
125
|
+
* ## Example Usage
|
|
126
|
+
*
|
|
127
|
+
* ```typescript
|
|
128
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
129
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
130
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
131
|
+
*
|
|
132
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
133
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
134
|
+
* vpcName: "acc-test-project1",
|
|
135
|
+
* cidrBlock: "172.16.0.0/16",
|
|
136
|
+
* });
|
|
137
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
138
|
+
* subnetName: "acc-subnet-test-2",
|
|
139
|
+
* cidrBlock: "172.16.0.0/24",
|
|
140
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
141
|
+
* vpcId: fooVpc.id,
|
|
142
|
+
* });
|
|
143
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
144
|
+
* permissionGroupName: "acc-test",
|
|
145
|
+
* description: "acctest",
|
|
146
|
+
* permissionRules: [
|
|
147
|
+
* {
|
|
148
|
+
* cidrIp: "*",
|
|
149
|
+
* rwMode: "RW",
|
|
150
|
+
* useMode: "All_squash",
|
|
151
|
+
* },
|
|
152
|
+
* {
|
|
153
|
+
* cidrIp: "192.168.0.0",
|
|
154
|
+
* rwMode: "RO",
|
|
155
|
+
* useMode: "All_squash",
|
|
156
|
+
* },
|
|
157
|
+
* ],
|
|
158
|
+
* });
|
|
159
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
160
|
+
* fileSystemName: "acc-test-fs",
|
|
161
|
+
* description: "acc-test",
|
|
162
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
163
|
+
* capacity: 103,
|
|
164
|
+
* projectName: "default",
|
|
165
|
+
* tags: [{
|
|
166
|
+
* key: "k1",
|
|
167
|
+
* value: "v1",
|
|
168
|
+
* }],
|
|
169
|
+
* });
|
|
170
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
171
|
+
* fileSystemId: fooFileSystem.id,
|
|
172
|
+
* mountPointName: "acc-test",
|
|
173
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
174
|
+
* subnetId: fooSubnet.id,
|
|
175
|
+
* });
|
|
176
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
177
|
+
* fileSystemId: fooFileSystem.id,
|
|
178
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
179
|
+
* });
|
|
180
|
+
* ```
|
|
69
181
|
*/
|
|
70
182
|
/** @deprecated volcengine.nas.MountPoints has been deprecated in favor of volcengine.nas.getMountPoints */
|
|
71
183
|
export declare function mountPointsOutput(args: MountPointsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<MountPointsResult>;
|