1. Packages
  2. Volcengine
  3. API Docs
  4. mongodb
  5. MongoAllowLists
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.mongodb.MongoAllowLists

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 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.MongoAllowListsOutput({
    allowListIds: [fooMongoAllowList.id],
    regionId: "cn-beijing",
});
Copy
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.mongo_allow_lists_output(allow_list_ids=[foo_mongo_allow_list.id],
    region_id="cn-beijing")
Copy
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.MongoAllowListsOutput(ctx, mongodb.MongoAllowListsOutputArgs{
			AllowListIds: pulumi.StringArray{
				fooMongoAllowList.ID(),
			},
			RegionId: pulumi.String("cn-beijing"),
		}, nil)
		return nil
	})
}
Copy
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.MongoAllowLists.Invoke(new()
    {
        AllowListIds = new[]
        {
            fooMongoAllowList.Id,
        },
        RegionId = "cn-beijing",
    });

});
Copy
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.MongoAllowListsArgs;
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.MongoAllowLists(MongoAllowListsArgs.builder()
            .allowListIds(fooMongoAllowList.id())
            .regionId("cn-beijing")
            .build());

    }
}
Copy
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:MongoAllowLists
      Arguments:
        allowListIds:
          - ${fooMongoAllowList.id}
        regionId: cn-beijing
Copy

Using MongoAllowLists

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 mongoAllowLists(args: MongoAllowListsArgs, opts?: InvokeOptions): Promise<MongoAllowListsResult>
function mongoAllowListsOutput(args: MongoAllowListsOutputArgs, opts?: InvokeOptions): Output<MongoAllowListsResult>
Copy
def mongo_allow_lists(allow_list_ids: Optional[Sequence[str]] = None,
                      instance_id: Optional[str] = None,
                      output_file: Optional[str] = None,
                      region_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> MongoAllowListsResult
def 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,
                      region_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[MongoAllowListsResult]
Copy
func MongoAllowLists(ctx *Context, args *MongoAllowListsArgs, opts ...InvokeOption) (*MongoAllowListsResult, error)
func MongoAllowListsOutput(ctx *Context, args *MongoAllowListsOutputArgs, opts ...InvokeOption) MongoAllowListsResultOutput
Copy
public static class MongoAllowLists 
{
    public static Task<MongoAllowListsResult> InvokeAsync(MongoAllowListsArgs args, InvokeOptions? opts = null)
    public static Output<MongoAllowListsResult> Invoke(MongoAllowListsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<MongoAllowListsResult> mongoAllowLists(MongoAllowListsArgs args, InvokeOptions options)
public static Output<MongoAllowListsResult> mongoAllowLists(MongoAllowListsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:mongodb:MongoAllowLists
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RegionId This property is required. string
The region ID.
AllowListIds List<string>
The allow list IDs to query.
InstanceId string
The instance ID to query.
OutputFile string
File name where to save data source results.
RegionId This property is required. string
The region ID.
AllowListIds []string
The allow list IDs to query.
InstanceId string
The instance ID to query.
OutputFile string
File name where to save data source results.
regionId This property is required. String
The region ID.
allowListIds List<String>
The allow list IDs to query.
instanceId String
The instance ID to query.
outputFile String
File name where to save data source results.
regionId This property is required. string
The region ID.
allowListIds string[]
The allow list IDs to query.
instanceId string
The instance ID to query.
outputFile string
File name where to save data source results.
region_id This property is required. str
The region ID.
allow_list_ids Sequence[str]
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.
regionId This property is required. String
The region ID.
allowListIds List<String>
The allow list IDs to query.
instanceId String
The instance ID to query.
outputFile String
File name where to save data source results.

MongoAllowLists Result

The following output properties are available:

AllowLists List<MongoAllowListsAllowList>
The collection of mongodb allow list query.
Id string
The provider-assigned unique ID for this managed resource.
RegionId string
TotalCount int
The total count of mongodb allow lists query.
AllowListIds List<string>
InstanceId string
The instance id that bound to the allow list.
OutputFile string
AllowLists []MongoAllowListsAllowList
The collection of mongodb allow list query.
Id string
The provider-assigned unique ID for this managed resource.
RegionId string
TotalCount int
The total count of mongodb allow lists query.
AllowListIds []string
InstanceId string
The instance id that bound to the allow list.
OutputFile string
allowLists List<MongoAllowListsAllowList>
The collection of mongodb allow list query.
id String
The provider-assigned unique ID for this managed resource.
regionId String
totalCount Integer
The total count of mongodb allow lists query.
allowListIds List<String>
instanceId String
The instance id that bound to the allow list.
outputFile String
allowLists MongoAllowListsAllowList[]
The collection of mongodb allow list query.
id string
The provider-assigned unique ID for this managed resource.
regionId string
totalCount number
The total count of mongodb allow lists query.
allowListIds string[]
instanceId string
The instance id that bound to the allow list.
outputFile string
allow_lists Sequence[MongoAllowListsAllowList]
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_ids Sequence[str]
instance_id str
The instance id that bound to the allow list.
output_file str
allowLists List<Property Map>
The collection of mongodb allow list query.
id String
The provider-assigned unique ID for this managed resource.
regionId String
totalCount Number
The total count of mongodb allow lists query.
allowListIds List<String>
instanceId String
The instance id that bound to the allow list.
outputFile String

Supporting Types

MongoAllowListsAllowList

AllowList This property is required. string
The list of IP address in allow list.
AllowListDesc This property is required. string
The description of allow list.
AllowListId This property is required. string
The ID of allow list.
AllowListIpNum This property is required. int
The number of allow list IPs.
AllowListName This property is required. string
The allow list name.
AllowListType This property is required. string
The IP address type in allow list.
AssociatedInstanceNum This property is required. int
The total number of instances bound under the allow list.
AssociatedInstances This property is required. List<MongoAllowListsAllowListAssociatedInstance>
The list of associated instances.
AllowList This property is required. string
The list of IP address in allow list.
AllowListDesc This property is required. string
The description of allow list.
AllowListId This property is required. string
The ID of allow list.
AllowListIpNum This property is required. int
The number of allow list IPs.
AllowListName This property is required. string
The allow list name.
AllowListType This property is required. string
The IP address type in allow list.
AssociatedInstanceNum This property is required. int
The total number of instances bound under the allow list.
AssociatedInstances This property is required. []MongoAllowListsAllowListAssociatedInstance
The list of associated instances.
allowList This property is required. String
The list of IP address in allow list.
allowListDesc This property is required. String
The description of allow list.
allowListId This property is required. String
The ID of allow list.
allowListIpNum This property is required. Integer
The number of allow list IPs.
allowListName This property is required. String
The allow list name.
allowListType This property is required. String
The IP address type in allow list.
associatedInstanceNum This property is required. Integer
The total number of instances bound under the allow list.
associatedInstances This property is required. List<MongoAllowListsAllowListAssociatedInstance>
The list of associated instances.
allowList This property is required. string
The list of IP address in allow list.
allowListDesc This property is required. string
The description of allow list.
allowListId This property is required. string
The ID of allow list.
allowListIpNum This property is required. number
The number of allow list IPs.
allowListName This property is required. string
The allow list name.
allowListType This property is required. string
The IP address type in allow list.
associatedInstanceNum This property is required. number
The total number of instances bound under the allow list.
associatedInstances This property is required. MongoAllowListsAllowListAssociatedInstance[]
The list of associated instances.
allow_list This property is required. str
The list of IP address in allow list.
allow_list_desc This property is required. str
The description of allow list.
allow_list_id This property is required. str
The ID of allow list.
allow_list_ip_num This property is required. int
The number of allow list IPs.
allow_list_name This property is required. str
The allow list name.
allow_list_type This property is required. str
The IP address type in allow list.
associated_instance_num This property is required. int
The total number of instances bound under the allow list.
associated_instances This property is required. Sequence[MongoAllowListsAllowListAssociatedInstance]
The list of associated instances.
allowList This property is required. String
The list of IP address in allow list.
allowListDesc This property is required. String
The description of allow list.
allowListId This property is required. String
The ID of allow list.
allowListIpNum This property is required. Number
The number of allow list IPs.
allowListName This property is required. String
The allow list name.
allowListType This property is required. String
The IP address type in allow list.
associatedInstanceNum This property is required. Number
The total number of instances bound under the allow list.
associatedInstances This property is required. List<Property Map>
The list of associated instances.

MongoAllowListsAllowListAssociatedInstance

InstanceId This property is required. string
The instance ID to query.
InstanceName This property is required. string
The instance name that bound to the allow list.
Vpc This property is required. string
The VPC ID.
InstanceId This property is required. string
The instance ID to query.
InstanceName This property is required. string
The instance name that bound to the allow list.
Vpc This property is required. string
The VPC ID.
instanceId This property is required. String
The instance ID to query.
instanceName This property is required. String
The instance name that bound to the allow list.
vpc This property is required. String
The VPC ID.
instanceId This property is required. string
The instance ID to query.
instanceName This property is required. string
The instance name that bound to the allow list.
vpc This property is required. string
The VPC ID.
instance_id This property is required. str
The instance ID to query.
instance_name This property is required. str
The instance name that bound to the allow list.
vpc This property is required. str
The VPC ID.
instanceId This property is required. String
The instance ID to query.
instanceName This property is required. String
The instance name that bound to the allow list.
vpc This property is required. String
The VPC ID.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine