Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of mongodb allow lists
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooMongoAllowList = new volcengine.mongodb.MongoAllowList("fooMongoAllowList", {
allowListName: "acc-test",
allowListDesc: "acc-test",
allowListType: "IPv4",
allowList: "10.1.1.3,10.2.3.0/24,10.1.1.1",
});
const fooMongoAllowLists = volcengine.mongodb.getMongoAllowListsOutput({
allowListIds: [fooMongoAllowList.id],
regionId: "cn-beijing",
});
import pulumi
import pulumi_volcengine as volcengine
foo_mongo_allow_list = volcengine.mongodb.MongoAllowList("fooMongoAllowList",
allow_list_name="acc-test",
allow_list_desc="acc-test",
allow_list_type="IPv4",
allow_list="10.1.1.3,10.2.3.0/24,10.1.1.1")
foo_mongo_allow_lists = volcengine.mongodb.get_mongo_allow_lists_output(allow_list_ids=[foo_mongo_allow_list.id],
region_id="cn-beijing")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/mongodb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooMongoAllowList, err := mongodb.NewMongoAllowList(ctx, "fooMongoAllowList", &mongodb.MongoAllowListArgs{
AllowListName: pulumi.String("acc-test"),
AllowListDesc: pulumi.String("acc-test"),
AllowListType: pulumi.String("IPv4"),
AllowList: pulumi.String("10.1.1.3,10.2.3.0/24,10.1.1.1"),
})
if err != nil {
return err
}
_ = mongodb.GetMongoAllowListsOutput(ctx, mongodb.GetMongoAllowListsOutputArgs{
AllowListIds: pulumi.StringArray{
fooMongoAllowList.ID(),
},
RegionId: pulumi.String("cn-beijing"),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooMongoAllowList = new Volcengine.Mongodb.MongoAllowList("fooMongoAllowList", new()
{
AllowListName = "acc-test",
AllowListDesc = "acc-test",
AllowListType = "IPv4",
AllowList = "10.1.1.3,10.2.3.0/24,10.1.1.1",
});
var fooMongoAllowLists = Volcengine.Mongodb.GetMongoAllowLists.Invoke(new()
{
AllowListIds = new[]
{
fooMongoAllowList.Id,
},
RegionId = "cn-beijing",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.mongodb.MongoAllowList;
import com.pulumi.volcengine.mongodb.MongoAllowListArgs;
import com.pulumi.volcengine.mongodb.MongodbFunctions;
import com.pulumi.volcengine.mongodb.inputs.GetMongoAllowListsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooMongoAllowList = new MongoAllowList("fooMongoAllowList", MongoAllowListArgs.builder()
.allowListName("acc-test")
.allowListDesc("acc-test")
.allowListType("IPv4")
.allowList("10.1.1.3,10.2.3.0/24,10.1.1.1")
.build());
final var fooMongoAllowLists = MongodbFunctions.getMongoAllowLists(GetMongoAllowListsArgs.builder()
.allowListIds(fooMongoAllowList.id())
.regionId("cn-beijing")
.build());
}
}
resources:
fooMongoAllowList:
type: volcengine:mongodb:MongoAllowList
properties:
allowListName: acc-test
allowListDesc: acc-test
allowListType: IPv4
allowList: 10.1.1.3,10.2.3.0/24,10.1.1.1
variables:
fooMongoAllowLists:
fn::invoke:
Function: volcengine:mongodb:getMongoAllowLists
Arguments:
allowListIds:
- ${fooMongoAllowList.id}
regionId: cn-beijing
Using getMongoAllowLists
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMongoAllowLists(args: GetMongoAllowListsArgs, opts?: InvokeOptions): Promise<GetMongoAllowListsResult>
function getMongoAllowListsOutput(args: GetMongoAllowListsOutputArgs, opts?: InvokeOptions): Output<GetMongoAllowListsResult>def get_mongo_allow_lists(allow_list_ids: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
region_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongoAllowListsResult
def get_mongo_allow_lists_output(allow_list_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMongoAllowListsResult]func GetMongoAllowLists(ctx *Context, args *GetMongoAllowListsArgs, opts ...InvokeOption) (*GetMongoAllowListsResult, error)
func GetMongoAllowListsOutput(ctx *Context, args *GetMongoAllowListsOutputArgs, opts ...InvokeOption) GetMongoAllowListsResultOutput> Note: This function is named GetMongoAllowLists in the Go SDK.
public static class GetMongoAllowLists
{
public static Task<GetMongoAllowListsResult> InvokeAsync(GetMongoAllowListsArgs args, InvokeOptions? opts = null)
public static Output<GetMongoAllowListsResult> Invoke(GetMongoAllowListsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMongoAllowListsResult> getMongoAllowLists(GetMongoAllowListsArgs args, InvokeOptions options)
public static Output<GetMongoAllowListsResult> getMongoAllowLists(GetMongoAllowListsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:mongodb/getMongoAllowLists:getMongoAllowLists
arguments:
# arguments dictionaryThe following arguments are supported:
- Region
Id string - The region ID.
- Allow
List List<string>Ids - The allow list IDs to query.
- Instance
Id string - The instance ID to query.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the allow list.
- Region
Id string - The region ID.
- Allow
List []stringIds - The allow list IDs to query.
- Instance
Id string - The instance ID to query.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the allow list.
- region
Id String - The region ID.
- allow
List List<String>Ids - The allow list IDs to query.
- instance
Id String - The instance ID to query.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the allow list.
- region
Id string - The region ID.
- allow
List string[]Ids - The allow list IDs to query.
- instance
Id string - The instance ID to query.
- output
File string - File name where to save data source results.
- project
Name string - The project name of the allow list.
- region_
id str - The region ID.
- allow_
list_ Sequence[str]ids - The allow list IDs to query.
- instance_
id str - The instance ID to query.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of the allow list.
- region
Id String - The region ID.
- allow
List List<String>Ids - The allow list IDs to query.
- instance
Id String - The instance ID to query.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the allow list.
getMongoAllowLists Result
The following output properties are available:
- Allow
Lists List<GetMongo Allow Lists Allow List> - The collection of mongodb allow list query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - Total
Count int - The total count of mongodb allow lists query.
- Allow
List List<string>Ids - Instance
Id string - The instance id that bound to the allow list.
- Output
File string - Project
Name string - The project name of the allow list.
- Allow
Lists []GetMongo Allow Lists Allow List - The collection of mongodb allow list query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - Total
Count int - The total count of mongodb allow lists query.
- Allow
List []stringIds - Instance
Id string - The instance id that bound to the allow list.
- Output
File string - Project
Name string - The project name of the allow list.
- allow
Lists List<GetMongo Allow Lists Allow List> - The collection of mongodb allow list query.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - total
Count Integer - The total count of mongodb allow lists query.
- allow
List List<String>Ids - instance
Id String - The instance id that bound to the allow list.
- output
File String - project
Name String - The project name of the allow list.
- allow
Lists GetMongo Allow Lists Allow List[] - The collection of mongodb allow list query.
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - total
Count number - The total count of mongodb allow lists query.
- allow
List string[]Ids - instance
Id string - The instance id that bound to the allow list.
- output
File string - project
Name string - The project name of the allow list.
- allow_
lists Sequence[GetMongo Allow Lists Allow List] - The collection of mongodb allow list query.
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - total_
count int - The total count of mongodb allow lists query.
- allow_
list_ Sequence[str]ids - instance_
id str - The instance id that bound to the allow list.
- output_
file str - project_
name str - The project name of the allow list.
- allow
Lists List<Property Map> - The collection of mongodb allow list query.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - total
Count Number - The total count of mongodb allow lists query.
- allow
List List<String>Ids - instance
Id String - The instance id that bound to the allow list.
- output
File String - project
Name String - The project name of the allow list.
Supporting Types
GetMongoAllowListsAllowList
- Allow
List string - The list of IP address in allow list.
- Allow
List stringDesc - The description of allow list.
- Allow
List stringId - The ID of allow list.
- Allow
List intIp Num - The number of allow list IPs.
- Allow
List stringName - The allow list name.
- Allow
List stringType - The IP address type in allow list.
- Associated
Instance intNum - The total number of instances bound under the allow list.
- Associated
Instances List<GetMongo Allow Lists Allow List Associated Instance> - The list of associated instances.
- Project
Name string - The project name of the allow list.
- Allow
List string - The list of IP address in allow list.
- Allow
List stringDesc - The description of allow list.
- Allow
List stringId - The ID of allow list.
- Allow
List intIp Num - The number of allow list IPs.
- Allow
List stringName - The allow list name.
- Allow
List stringType - The IP address type in allow list.
- Associated
Instance intNum - The total number of instances bound under the allow list.
- Associated
Instances []GetMongo Allow Lists Allow List Associated Instance - The list of associated instances.
- Project
Name string - The project name of the allow list.
- allow
List String - The list of IP address in allow list.
- allow
List StringDesc - The description of allow list.
- allow
List StringId - The ID of allow list.
- allow
List IntegerIp Num - The number of allow list IPs.
- allow
List StringName - The allow list name.
- allow
List StringType - The IP address type in allow list.
- associated
Instance IntegerNum - The total number of instances bound under the allow list.
- associated
Instances List<GetMongo Allow Lists Allow List Associated Instance> - The list of associated instances.
- project
Name String - The project name of the allow list.
- allow
List string - The list of IP address in allow list.
- allow
List stringDesc - The description of allow list.
- allow
List stringId - The ID of allow list.
- allow
List numberIp Num - The number of allow list IPs.
- allow
List stringName - The allow list name.
- allow
List stringType - The IP address type in allow list.
- associated
Instance numberNum - The total number of instances bound under the allow list.
- associated
Instances GetMongo Allow Lists Allow List Associated Instance[] - The list of associated instances.
- project
Name string - The project name of the allow list.
- allow_
list str - The list of IP address in allow list.
- allow_
list_ strdesc - The description of allow list.
- allow_
list_ strid - The ID of allow list.
- allow_
list_ intip_ num - The number of allow list IPs.
- allow_
list_ strname - The allow list name.
- allow_
list_ strtype - The IP address type in allow list.
- associated_
instance_ intnum - The total number of instances bound under the allow list.
- associated_
instances Sequence[GetMongo Allow Lists Allow List Associated Instance] - The list of associated instances.
- project_
name str - The project name of the allow list.
- allow
List String - The list of IP address in allow list.
- allow
List StringDesc - The description of allow list.
- allow
List StringId - The ID of allow list.
- allow
List NumberIp Num - The number of allow list IPs.
- allow
List StringName - The allow list name.
- allow
List StringType - The IP address type in allow list.
- associated
Instance NumberNum - The total number of instances bound under the allow list.
- associated
Instances List<Property Map> - The list of associated instances.
- project
Name String - The project name of the allow list.
GetMongoAllowListsAllowListAssociatedInstance
- Instance
Id string - The instance ID to query.
- Instance
Name string - The instance name that bound to the allow list.
- Project
Name string - The project name of the allow list.
- Vpc string
- The VPC ID.
- Instance
Id string - The instance ID to query.
- Instance
Name string - The instance name that bound to the allow list.
- Project
Name string - The project name of the allow list.
- Vpc string
- The VPC ID.
- instance
Id String - The instance ID to query.
- instance
Name String - The instance name that bound to the allow list.
- project
Name String - The project name of the allow list.
- vpc String
- The VPC ID.
- instance
Id string - The instance ID to query.
- instance
Name string - The instance name that bound to the allow list.
- project
Name string - The project name of the allow list.
- vpc string
- The VPC ID.
- instance_
id str - The instance ID to query.
- instance_
name str - The instance name that bound to the allow list.
- project_
name str - The project name of the allow list.
- vpc str
- The VPC ID.
- instance
Id String - The instance ID to query.
- instance
Name String - The instance name that bound to the allow list.
- project
Name String - The project name of the allow list.
- vpc String
- The VPC ID.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
