volcengine.mongodb.Endpoints
Explore with Pulumi AI
Use this data source to query detailed information of mongodb endpoints
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Mongodb.Endpoints.Invoke(new()
{
InstanceId = "mongo-shard-xxx",
});
});
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 {
_, err := mongodb.Endpoints(ctx, &mongodb.EndpointsArgs{
InstanceId: pulumi.StringRef("mongo-shard-xxx"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.mongodb.MongodbFunctions;
import com.pulumi.volcengine.mongodb.inputs.EndpointsArgs;
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) {
final var foo = MongodbFunctions.Endpoints(EndpointsArgs.builder()
.instanceId("mongo-shard-xxx")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.mongodb.endpoints(instance_id="mongo-shard-xxx")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.mongodb.Endpoints({
instanceId: "mongo-shard-xxx",
});
variables:
foo:
fn::invoke:
Function: volcengine:mongodb:Endpoints
Arguments:
instanceId: mongo-shard-xxx
Using Endpoints
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 endpoints(args: EndpointsArgs, opts?: InvokeOptions): Promise<EndpointsResult>
function endpointsOutput(args: EndpointsOutputArgs, opts?: InvokeOptions): Output<EndpointsResult>
def endpoints(instance_id: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> EndpointsResult
def endpoints_output(instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[EndpointsResult]
func Endpoints(ctx *Context, args *EndpointsArgs, opts ...InvokeOption) (*EndpointsResult, error)
func EndpointsOutput(ctx *Context, args *EndpointsOutputArgs, opts ...InvokeOption) EndpointsResultOutput
public static class Endpoints
{
public static Task<EndpointsResult> InvokeAsync(EndpointsArgs args, InvokeOptions? opts = null)
public static Output<EndpointsResult> Invoke(EndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<EndpointsResult> endpoints(EndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:mongodb:Endpoints
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string The instance ID to query.
- Output
File string File name where to save data source results.
- Instance
Id string The instance ID to query.
- Output
File string File name where to save data source results.
- instance
Id String The instance ID to query.
- output
File String File name where to save data source results.
- instance
Id string The instance ID to query.
- output
File string File name where to save data source results.
- instance_
id str The instance ID to query.
- output_
file str File name where to save data source results.
- instance
Id String The instance ID to query.
- output
File String File name where to save data source results.
Endpoints Result
The following output properties are available:
- Endpoints
List<Volcengine.
Pulumi. Volcengine. Mongodb. Outputs. Endpoints Endpoint> The collection of mongodb endpoints query.
- Id string
The provider-assigned unique ID for this managed resource.
- Total
Count int The total count of mongodb endpoint query.
- Instance
Id string - Output
File string
- Endpoints
[]Endpoints
Endpoint The collection of mongodb endpoints query.
- Id string
The provider-assigned unique ID for this managed resource.
- Total
Count int The total count of mongodb endpoint query.
- Instance
Id string - Output
File string
- endpoints
List<Endpoints
Endpoint> The collection of mongodb endpoints query.
- id String
The provider-assigned unique ID for this managed resource.
- total
Count Integer The total count of mongodb endpoint query.
- instance
Id String - output
File String
- endpoints
Endpoints
Endpoint[] The collection of mongodb endpoints query.
- id string
The provider-assigned unique ID for this managed resource.
- total
Count number The total count of mongodb endpoint query.
- instance
Id string - output
File string
- endpoints
Sequence[Endpoints
Endpoint] The collection of mongodb endpoints query.
- id str
The provider-assigned unique ID for this managed resource.
- total_
count int The total count of mongodb endpoint query.
- instance_
id str - output_
file str
- endpoints List<Property Map>
The collection of mongodb endpoints query.
- id String
The provider-assigned unique ID for this managed resource.
- total
Count Number The total count of mongodb endpoint query.
- instance
Id String - output
File String
Supporting Types
EndpointsEndpoint
- Db
Addresses List<Volcengine.Pulumi. Volcengine. Mongodb. Inputs. Endpoints Endpoint Db Address> The list of mongodb addresses.
- Endpoint
Id string The ID of endpoint.
- Endpoint
Str string The endpoint information.
- Endpoint
Type string The node type corresponding to the endpoint.
- Network
Type string The network type of endpoint.
- Object
Id string The object ID corresponding to the endpoint.
- Subnet
Id string The subnet ID.
- Vpc
Id string The VPC ID.
- Db
Addresses []EndpointsEndpoint Db Address The list of mongodb addresses.
- Endpoint
Id string The ID of endpoint.
- Endpoint
Str string The endpoint information.
- Endpoint
Type string The node type corresponding to the endpoint.
- Network
Type string The network type of endpoint.
- Object
Id string The object ID corresponding to the endpoint.
- Subnet
Id string The subnet ID.
- Vpc
Id string The VPC ID.
- db
Addresses List<EndpointsEndpoint Db Address> The list of mongodb addresses.
- endpoint
Id String The ID of endpoint.
- endpoint
Str String The endpoint information.
- endpoint
Type String The node type corresponding to the endpoint.
- network
Type String The network type of endpoint.
- object
Id String The object ID corresponding to the endpoint.
- subnet
Id String The subnet ID.
- vpc
Id String The VPC ID.
- db
Addresses EndpointsEndpoint Db Address[] The list of mongodb addresses.
- endpoint
Id string The ID of endpoint.
- endpoint
Str string The endpoint information.
- endpoint
Type string The node type corresponding to the endpoint.
- network
Type string The network type of endpoint.
- object
Id string The object ID corresponding to the endpoint.
- subnet
Id string The subnet ID.
- vpc
Id string The VPC ID.
- db_
addresses Sequence[EndpointsEndpoint Db Address] The list of mongodb addresses.
- endpoint_
id str The ID of endpoint.
- endpoint_
str str The endpoint information.
- endpoint_
type str The node type corresponding to the endpoint.
- network_
type str The network type of endpoint.
- object_
id str The object ID corresponding to the endpoint.
- subnet_
id str The subnet ID.
- vpc_
id str The VPC ID.
- db
Addresses List<Property Map> The list of mongodb addresses.
- endpoint
Id String The ID of endpoint.
- endpoint
Str String The endpoint information.
- endpoint
Type String The node type corresponding to the endpoint.
- network
Type String The network type of endpoint.
- object
Id String The object ID corresponding to the endpoint.
- subnet
Id String The subnet ID.
- vpc
Id String The VPC ID.
EndpointsEndpointDbAddress
- Address
Domain string The domain of mongodb connection.
- Address
Ip string The IP of mongodb connection.
- Address
Port string The port of mongodb connection.
- Address
Type string The connection type of mongodb.
- Eip
Id string The EIP ID bound to the instance's public network address.
- Node
Id string The node ID.
- Address
Domain string The domain of mongodb connection.
- Address
Ip string The IP of mongodb connection.
- Address
Port string The port of mongodb connection.
- Address
Type string The connection type of mongodb.
- Eip
Id string The EIP ID bound to the instance's public network address.
- Node
Id string The node ID.
- address
Domain String The domain of mongodb connection.
- address
Ip String The IP of mongodb connection.
- address
Port String The port of mongodb connection.
- address
Type String The connection type of mongodb.
- eip
Id String The EIP ID bound to the instance's public network address.
- node
Id String The node ID.
- address
Domain string The domain of mongodb connection.
- address
Ip string The IP of mongodb connection.
- address
Port string The port of mongodb connection.
- address
Type string The connection type of mongodb.
- eip
Id string The EIP ID bound to the instance's public network address.
- node
Id string The node ID.
- address_
domain str The domain of mongodb connection.
- address_
ip str The IP of mongodb connection.
- address_
port str The port of mongodb connection.
- address_
type str The connection type of mongodb.
- eip_
id str The EIP ID bound to the instance's public network address.
- node_
id str The node ID.
- address
Domain String The domain of mongodb connection.
- address
Ip String The IP of mongodb connection.
- address
Port String The port of mongodb connection.
- address
Type String The connection type of mongodb.
- eip
Id String The EIP ID bound to the instance's public network address.
- node
Id String The node ID.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
volcengine
Terraform Provider.