@volcengine/pulumi 0.0.30 → 0.0.31
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/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
|
@@ -66,6 +66,11 @@ export declare class PermissionSetAssignment extends pulumi.CustomResource {
|
|
|
66
66
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
67
|
*/
|
|
68
68
|
static isInstance(obj: any): obj is PermissionSetAssignment;
|
|
69
|
+
/**
|
|
70
|
+
* The deprovision strategy when deleting the cloud identity permission set assignment. Valid values: `DeprovisionForLastPermissionSetOnAccount`, `None`. Default is `DeprovisionForLastPermissionSetOnAccount`.
|
|
71
|
+
* When the `deprovisionStrategy` is `DeprovisionForLastPermissionSetOnAccount`, and the permission set assignment to be deleted is the last assignment for the same account, this option is used for the DeprovisionPermissionSet operation.
|
|
72
|
+
*/
|
|
73
|
+
readonly deprovisionStrategy: pulumi.Output<string | undefined>;
|
|
69
74
|
/**
|
|
70
75
|
* The id of the cloud identity permission set.
|
|
71
76
|
*/
|
|
@@ -95,6 +100,11 @@ export declare class PermissionSetAssignment extends pulumi.CustomResource {
|
|
|
95
100
|
* Input properties used for looking up and filtering PermissionSetAssignment resources.
|
|
96
101
|
*/
|
|
97
102
|
export interface PermissionSetAssignmentState {
|
|
103
|
+
/**
|
|
104
|
+
* The deprovision strategy when deleting the cloud identity permission set assignment. Valid values: `DeprovisionForLastPermissionSetOnAccount`, `None`. Default is `DeprovisionForLastPermissionSetOnAccount`.
|
|
105
|
+
* When the `deprovisionStrategy` is `DeprovisionForLastPermissionSetOnAccount`, and the permission set assignment to be deleted is the last assignment for the same account, this option is used for the DeprovisionPermissionSet operation.
|
|
106
|
+
*/
|
|
107
|
+
deprovisionStrategy?: pulumi.Input<string>;
|
|
98
108
|
/**
|
|
99
109
|
* The id of the cloud identity permission set.
|
|
100
110
|
*/
|
|
@@ -116,6 +126,11 @@ export interface PermissionSetAssignmentState {
|
|
|
116
126
|
* The set of arguments for constructing a PermissionSetAssignment resource.
|
|
117
127
|
*/
|
|
118
128
|
export interface PermissionSetAssignmentArgs {
|
|
129
|
+
/**
|
|
130
|
+
* The deprovision strategy when deleting the cloud identity permission set assignment. Valid values: `DeprovisionForLastPermissionSetOnAccount`, `None`. Default is `DeprovisionForLastPermissionSetOnAccount`.
|
|
131
|
+
* When the `deprovisionStrategy` is `DeprovisionForLastPermissionSetOnAccount`, and the permission set assignment to be deleted is the last assignment for the same account, this option is used for the DeprovisionPermissionSet operation.
|
|
132
|
+
*/
|
|
133
|
+
deprovisionStrategy?: pulumi.Input<string>;
|
|
119
134
|
/**
|
|
120
135
|
* The id of the cloud identity permission set.
|
|
121
136
|
*/
|
|
@@ -84,6 +84,7 @@ class PermissionSetAssignment extends pulumi.CustomResource {
|
|
|
84
84
|
opts = opts || {};
|
|
85
85
|
if (opts.id) {
|
|
86
86
|
const state = argsOrState;
|
|
87
|
+
resourceInputs["deprovisionStrategy"] = state ? state.deprovisionStrategy : undefined;
|
|
87
88
|
resourceInputs["permissionSetId"] = state ? state.permissionSetId : undefined;
|
|
88
89
|
resourceInputs["principalId"] = state ? state.principalId : undefined;
|
|
89
90
|
resourceInputs["principalType"] = state ? state.principalType : undefined;
|
|
@@ -103,6 +104,7 @@ class PermissionSetAssignment extends pulumi.CustomResource {
|
|
|
103
104
|
if ((!args || args.targetId === undefined) && !opts.urn) {
|
|
104
105
|
throw new Error("Missing required property 'targetId'");
|
|
105
106
|
}
|
|
107
|
+
resourceInputs["deprovisionStrategy"] = args ? args.deprovisionStrategy : undefined;
|
|
106
108
|
resourceInputs["permissionSetId"] = args ? args.permissionSetId : undefined;
|
|
107
109
|
resourceInputs["principalId"] = args ? args.principalId : undefined;
|
|
108
110
|
resourceInputs["principalType"] = args ? args.principalType : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionSetAssignment.js","sourceRoot":"","sources":["../../cloud_identity/permissionSetAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;
|
|
1
|
+
{"version":3,"file":"permissionSetAssignment.js","sourceRoot":"","sources":["../../cloud_identity/permissionSetAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;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aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA1FL,0DA2FC;AA7EG,gBAAgB;AACO,oCAAY,GAAG,2EAA2E,CAAC"}
|
|
@@ -36,15 +36,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
36
36
|
* });
|
|
37
37
|
* const fooPermissionSetAssignment = new volcengine.cloud_identity.PermissionSetAssignment("fooPermissionSetAssignment", {
|
|
38
38
|
* permissionSetId: fooPermissionSet.id,
|
|
39
|
-
* targetId: "
|
|
39
|
+
* targetId: "210005****",
|
|
40
40
|
* principalType: "User",
|
|
41
41
|
* principalId: fooUser.id,
|
|
42
|
+
* deprovisionStrategy: "None",
|
|
42
43
|
* });
|
|
44
|
+
* // It is not recommended to use this resource to provision the permission_set.
|
|
43
45
|
* // When the `volcengine_cloud_identity_permission_set` is updated, you can use this resource to provision the permission set.
|
|
44
|
-
* // When deleting this resource, resource `volcengine_cloud_identity_permission_set_assignment` must be deleted first
|
|
46
|
+
* // When deleting this resource, resource `volcengine_cloud_identity_permission_set_assignment` must be deleted first, and the `deprovision_strategy` of `volcengine_cloud_identity_permission_set_assignment` should be set as `None`.
|
|
45
47
|
* const fooPermissionSetProvisioning = new volcengine.cloud_identity.PermissionSetProvisioning("fooPermissionSetProvisioning", {
|
|
46
48
|
* permissionSetId: fooPermissionSet.id,
|
|
47
|
-
* targetId: "
|
|
49
|
+
* targetId: "210005****",
|
|
48
50
|
* provisioningStatus: "Provisioned",
|
|
49
51
|
* });
|
|
50
52
|
* ```
|
|
@@ -42,15 +42,17 @@ const utilities = require("../utilities");
|
|
|
42
42
|
* });
|
|
43
43
|
* const fooPermissionSetAssignment = new volcengine.cloud_identity.PermissionSetAssignment("fooPermissionSetAssignment", {
|
|
44
44
|
* permissionSetId: fooPermissionSet.id,
|
|
45
|
-
* targetId: "
|
|
45
|
+
* targetId: "210005****",
|
|
46
46
|
* principalType: "User",
|
|
47
47
|
* principalId: fooUser.id,
|
|
48
|
+
* deprovisionStrategy: "None",
|
|
48
49
|
* });
|
|
50
|
+
* // It is not recommended to use this resource to provision the permission_set.
|
|
49
51
|
* // When the `volcengine_cloud_identity_permission_set` is updated, you can use this resource to provision the permission set.
|
|
50
|
-
* // When deleting this resource, resource `volcengine_cloud_identity_permission_set_assignment` must be deleted first
|
|
52
|
+
* // When deleting this resource, resource `volcengine_cloud_identity_permission_set_assignment` must be deleted first, and the `deprovision_strategy` of `volcengine_cloud_identity_permission_set_assignment` should be set as `None`.
|
|
51
53
|
* const fooPermissionSetProvisioning = new volcengine.cloud_identity.PermissionSetProvisioning("fooPermissionSetProvisioning", {
|
|
52
54
|
* permissionSetId: fooPermissionSet.id,
|
|
53
|
-
* targetId: "
|
|
55
|
+
* targetId: "210005****",
|
|
54
56
|
* provisioningStatus: "Provisioned",
|
|
55
57
|
* });
|
|
56
58
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissionSetProvisioning.js","sourceRoot":"","sources":["../../cloud_identity/permissionSetProvisioning.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"permissionSetProvisioning.js","sourceRoot":"","sources":["../../cloud_identity/permissionSetProvisioning.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC;aAClE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,kBAAkB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/D,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;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,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AA3EL,8DA4EC;AA9DG,gBAAgB;AACO,sCAAY,GAAG,+EAA+E,CAAC"}
|
package/nas/fileSystem.d.ts
CHANGED
|
@@ -3,6 +3,64 @@ import * as inputs from "../types/input";
|
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
5
|
* Provides a resource to manage nas file system
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
11
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
12
|
+
*
|
|
13
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
14
|
+
* // create nas file system
|
|
15
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
16
|
+
* fileSystemName: "acc-test-fs",
|
|
17
|
+
* description: "acc-test",
|
|
18
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
19
|
+
* capacity: 103,
|
|
20
|
+
* projectName: "default",
|
|
21
|
+
* tags: [{
|
|
22
|
+
* key: "k1",
|
|
23
|
+
* value: "v1",
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* // create vpc
|
|
27
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
28
|
+
* vpcName: "acc-test-vpc",
|
|
29
|
+
* cidrBlock: "172.16.0.0/16",
|
|
30
|
+
* });
|
|
31
|
+
* // create subnet
|
|
32
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
33
|
+
* subnetName: "acc-test-subnet",
|
|
34
|
+
* cidrBlock: "172.16.0.0/24",
|
|
35
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
36
|
+
* vpcId: fooVpc.id,
|
|
37
|
+
* });
|
|
38
|
+
* // create nas permission group
|
|
39
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
40
|
+
* permissionGroupName: "acc-test",
|
|
41
|
+
* description: "acctest",
|
|
42
|
+
* permissionRules: [
|
|
43
|
+
* {
|
|
44
|
+
* cidrIp: "*",
|
|
45
|
+
* rwMode: "RW",
|
|
46
|
+
* useMode: "All_squash",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* cidrIp: "192.168.0.0",
|
|
50
|
+
* rwMode: "RO",
|
|
51
|
+
* useMode: "All_squash",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* });
|
|
55
|
+
* // create nas mount point
|
|
56
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
57
|
+
* fileSystemId: fooFileSystem.id,
|
|
58
|
+
* mountPointName: "acc-test",
|
|
59
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
60
|
+
* subnetId: fooSubnet.id,
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
6
64
|
* ## Import
|
|
7
65
|
*
|
|
8
66
|
* NasFileSystem can be imported using the id, e.g.
|
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,iFAA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C/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,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,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS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I,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>;
|
package/nas/mountPoints.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
|
/** @deprecated volcengine.nas.MountPoints has been deprecated in favor of volcengine.nas.getMountPoints */
|
|
12
68
|
function mountPoints(args, opts) {
|
|
@@ -23,6 +79,62 @@ function mountPoints(args, opts) {
|
|
|
23
79
|
exports.mountPoints = mountPoints;
|
|
24
80
|
/**
|
|
25
81
|
* Use this data source to query detailed information of nas mount points
|
|
82
|
+
* ## Example Usage
|
|
83
|
+
*
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
86
|
+
* import * as volcengine from "@pulumi/volcengine";
|
|
87
|
+
* import * as volcengine from "@volcengine/pulumi";
|
|
88
|
+
*
|
|
89
|
+
* const fooZones = volcengine.nas.getZones({});
|
|
90
|
+
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
|
|
91
|
+
* vpcName: "acc-test-project1",
|
|
92
|
+
* cidrBlock: "172.16.0.0/16",
|
|
93
|
+
* });
|
|
94
|
+
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
|
|
95
|
+
* subnetName: "acc-subnet-test-2",
|
|
96
|
+
* cidrBlock: "172.16.0.0/24",
|
|
97
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
98
|
+
* vpcId: fooVpc.id,
|
|
99
|
+
* });
|
|
100
|
+
* const fooPermissionGroup = new volcengine.nas.PermissionGroup("fooPermissionGroup", {
|
|
101
|
+
* permissionGroupName: "acc-test",
|
|
102
|
+
* description: "acctest",
|
|
103
|
+
* permissionRules: [
|
|
104
|
+
* {
|
|
105
|
+
* cidrIp: "*",
|
|
106
|
+
* rwMode: "RW",
|
|
107
|
+
* useMode: "All_squash",
|
|
108
|
+
* },
|
|
109
|
+
* {
|
|
110
|
+
* cidrIp: "192.168.0.0",
|
|
111
|
+
* rwMode: "RO",
|
|
112
|
+
* useMode: "All_squash",
|
|
113
|
+
* },
|
|
114
|
+
* ],
|
|
115
|
+
* });
|
|
116
|
+
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
|
|
117
|
+
* fileSystemName: "acc-test-fs",
|
|
118
|
+
* description: "acc-test",
|
|
119
|
+
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
|
|
120
|
+
* capacity: 103,
|
|
121
|
+
* projectName: "default",
|
|
122
|
+
* tags: [{
|
|
123
|
+
* key: "k1",
|
|
124
|
+
* value: "v1",
|
|
125
|
+
* }],
|
|
126
|
+
* });
|
|
127
|
+
* const fooMountPoint = new volcengine.nas.MountPoint("fooMountPoint", {
|
|
128
|
+
* fileSystemId: fooFileSystem.id,
|
|
129
|
+
* mountPointName: "acc-test",
|
|
130
|
+
* permissionGroupId: fooPermissionGroup.id,
|
|
131
|
+
* subnetId: fooSubnet.id,
|
|
132
|
+
* });
|
|
133
|
+
* const fooMountPoints = volcengine.nas.getMountPointsOutput({
|
|
134
|
+
* fileSystemId: fooFileSystem.id,
|
|
135
|
+
* mountPointId: fooMountPoint.mountPointId,
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
26
138
|
*/
|
|
27
139
|
/** @deprecated volcengine.nas.MountPoints has been deprecated in favor of volcengine.nas.getMountPoints */
|
|
28
140
|
function mountPointsOutput(args, opts) {
|
package/nas/mountPoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountPoints.js","sourceRoot":"","sources":["../../nas/mountPoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"mountPoints.js","sourceRoot":"","sources":["../../nas/mountPoints.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,2GAA2G;AAC3G,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,qHAAqH,CAAC,CAAA;IAEtI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,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;AAXD,kCAWC;AA8DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,2GAA2G;AAC3G,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|