MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi
mongodbatlas.getThirdPartyIntegrations
Explore with Pulumi AI
# Data Source: mongodbatlas.getThirdPartyIntegrations
mongodbatlas.getThirdPartyIntegrations
describes all Third-Party Integration Settings. This represents two Third-Party services PAGER_DUTY
and DATADOG
applied across the project.
NOTE: Groups and projects are synonymous terms. You may find
groupId
in the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testPagerDuty = new mongodbatlas.ThirdPartyIntegration("test_pager_duty", {
projectId: "<PROJECT-ID>",
type: "PAGER_DUTY",
serviceKey: "<PAGER-DUTY-SERVICE-KEY>",
});
const testDatadog = new mongodbatlas.ThirdPartyIntegration("test_datadog", {
projectId: "<PROJECT-ID>",
type: "DATADOG",
apiKey: "<API-KEY>",
region: "<REGION>",
});
const test = mongodbatlas.getThirdPartyIntegrationsOutput({
projectId: testPagerDuty.projectId,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_pager_duty = mongodbatlas.ThirdPartyIntegration("test_pager_duty",
project_id="<PROJECT-ID>",
type="PAGER_DUTY",
service_key="<PAGER-DUTY-SERVICE-KEY>")
test_datadog = mongodbatlas.ThirdPartyIntegration("test_datadog",
project_id="<PROJECT-ID>",
type="DATADOG",
api_key="<API-KEY>",
region="<REGION>")
test = mongodbatlas.get_third_party_integrations_output(project_id=test_pager_duty.project_id)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testPagerDuty, err := mongodbatlas.NewThirdPartyIntegration(ctx, "test_pager_duty", &mongodbatlas.ThirdPartyIntegrationArgs{
ProjectId: pulumi.String("<PROJECT-ID>"),
Type: pulumi.String("PAGER_DUTY"),
ServiceKey: pulumi.String("<PAGER-DUTY-SERVICE-KEY>"),
})
if err != nil {
return err
}
_, err = mongodbatlas.NewThirdPartyIntegration(ctx, "test_datadog", &mongodbatlas.ThirdPartyIntegrationArgs{
ProjectId: pulumi.String("<PROJECT-ID>"),
Type: pulumi.String("DATADOG"),
ApiKey: pulumi.String("<API-KEY>"),
Region: pulumi.String("<REGION>"),
})
if err != nil {
return err
}
_ = mongodbatlas.LookupThirdPartyIntegrationsOutput(ctx, mongodbatlas.GetThirdPartyIntegrationsOutputArgs{
ProjectId: testPagerDuty.ProjectId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testPagerDuty = new Mongodbatlas.ThirdPartyIntegration("test_pager_duty", new()
{
ProjectId = "<PROJECT-ID>",
Type = "PAGER_DUTY",
ServiceKey = "<PAGER-DUTY-SERVICE-KEY>",
});
var testDatadog = new Mongodbatlas.ThirdPartyIntegration("test_datadog", new()
{
ProjectId = "<PROJECT-ID>",
Type = "DATADOG",
ApiKey = "<API-KEY>",
Region = "<REGION>",
});
var test = Mongodbatlas.GetThirdPartyIntegrations.Invoke(new()
{
ProjectId = testPagerDuty.ProjectId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.ThirdPartyIntegration;
import com.pulumi.mongodbatlas.ThirdPartyIntegrationArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetThirdPartyIntegrationsArgs;
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 testPagerDuty = new ThirdPartyIntegration("testPagerDuty", ThirdPartyIntegrationArgs.builder()
.projectId("<PROJECT-ID>")
.type("PAGER_DUTY")
.serviceKey("<PAGER-DUTY-SERVICE-KEY>")
.build());
var testDatadog = new ThirdPartyIntegration("testDatadog", ThirdPartyIntegrationArgs.builder()
.projectId("<PROJECT-ID>")
.type("DATADOG")
.apiKey("<API-KEY>")
.region("<REGION>")
.build());
final var test = MongodbatlasFunctions.getThirdPartyIntegrations(GetThirdPartyIntegrationsArgs.builder()
.projectId(testPagerDuty.projectId())
.build());
}
}
resources:
testPagerDuty:
type: mongodbatlas:ThirdPartyIntegration
name: test_pager_duty
properties:
projectId: <PROJECT-ID>
type: PAGER_DUTY
serviceKey: <PAGER-DUTY-SERVICE-KEY>
testDatadog:
type: mongodbatlas:ThirdPartyIntegration
name: test_datadog
properties:
projectId: <PROJECT-ID>
type: DATADOG
apiKey: <API-KEY>
region: <REGION>
variables:
test:
fn::invoke:
Function: mongodbatlas:getThirdPartyIntegrations
Arguments:
projectId: ${testPagerDuty.projectId}
Using getThirdPartyIntegrations
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 getThirdPartyIntegrations(args: GetThirdPartyIntegrationsArgs, opts?: InvokeOptions): Promise<GetThirdPartyIntegrationsResult>
function getThirdPartyIntegrationsOutput(args: GetThirdPartyIntegrationsOutputArgs, opts?: InvokeOptions): Output<GetThirdPartyIntegrationsResult>
def get_third_party_integrations(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetThirdPartyIntegrationsResult
def get_third_party_integrations_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetThirdPartyIntegrationsResult]
func LookupThirdPartyIntegrations(ctx *Context, args *LookupThirdPartyIntegrationsArgs, opts ...InvokeOption) (*LookupThirdPartyIntegrationsResult, error)
func LookupThirdPartyIntegrationsOutput(ctx *Context, args *LookupThirdPartyIntegrationsOutputArgs, opts ...InvokeOption) LookupThirdPartyIntegrationsResultOutput
> Note: This function is named LookupThirdPartyIntegrations
in the Go SDK.
public static class GetThirdPartyIntegrations
{
public static Task<GetThirdPartyIntegrationsResult> InvokeAsync(GetThirdPartyIntegrationsArgs args, InvokeOptions? opts = null)
public static Output<GetThirdPartyIntegrationsResult> Invoke(GetThirdPartyIntegrationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetThirdPartyIntegrationsResult> getThirdPartyIntegrations(GetThirdPartyIntegrationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getThirdPartyIntegrations:getThirdPartyIntegrations
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - The unique ID for the project to get all Third-Party service integrations
- Project
Id string - The unique ID for the project to get all Third-Party service integrations
- project
Id String - The unique ID for the project to get all Third-Party service integrations
- project
Id string - The unique ID for the project to get all Third-Party service integrations
- project_
id str - The unique ID for the project to get all Third-Party service integrations
- project
Id String - The unique ID for the project to get all Third-Party service integrations
getThirdPartyIntegrations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - ID of the Atlas project the Third-Party Service Integration belongs to.
- Results
List<Get
Third Party Integrations Result> - A list where each represents a Third-Party service integration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - ID of the Atlas project the Third-Party Service Integration belongs to.
- Results
[]Get
Third Party Integrations Result - A list where each represents a Third-Party service integration.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - ID of the Atlas project the Third-Party Service Integration belongs to.
- results
List<Get
Third Party Integrations Result> - A list where each represents a Third-Party service integration.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - ID of the Atlas project the Third-Party Service Integration belongs to.
- results
Get
Third Party Integrations Result[] - A list where each represents a Third-Party service integration.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - ID of the Atlas project the Third-Party Service Integration belongs to.
- results
Sequence[Get
Third Party Integrations Result] - A list where each represents a Third-Party service integration.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - ID of the Atlas project the Third-Party Service Integration belongs to.
- results List<Property Map>
- A list where each represents a Third-Party service integration.
Supporting Types
GetThirdPartyIntegrationsResult
- Account
Id string - Api
Key string - Your API Key.
- Channel
Name string - Id string
- Unique identifier of the integration.
- Project
Id string - The unique ID for the project to get all Third-Party service integrations
- Region string
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- Routing
Key string - An optional field for your Routing Key.
WEBHOOK
- Secret string
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- Service
Key string - Your Service Key.
DATADOG
- Team
Name string - Type string
- Thirt-Party service integration type.
- Url string
- Your webhook URL.
- Enabled bool
- Whether your cluster has Prometheus enabled.
- Microsoft
Teams stringWebhook Url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- Service
Discovery string - Indicates which service discovery method is used, either file or http.
- User
Name string - Your Prometheus username.
- Account
Id string - Api
Key string - Your API Key.
- Channel
Name string - Id string
- Unique identifier of the integration.
- Project
Id string - The unique ID for the project to get all Third-Party service integrations
- Region string
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- Routing
Key string - An optional field for your Routing Key.
WEBHOOK
- Secret string
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- Service
Key string - Your Service Key.
DATADOG
- Team
Name string - Type string
- Thirt-Party service integration type.
- Url string
- Your webhook URL.
- Enabled bool
- Whether your cluster has Prometheus enabled.
- Microsoft
Teams stringWebhook Url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- Service
Discovery string - Indicates which service discovery method is used, either file or http.
- User
Name string - Your Prometheus username.
- account
Id String - api
Key String - Your API Key.
- channel
Name String - id String
- Unique identifier of the integration.
- project
Id String - The unique ID for the project to get all Third-Party service integrations
- region String
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- routing
Key String - An optional field for your Routing Key.
WEBHOOK
- secret String
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- service
Key String - Your Service Key.
DATADOG
- team
Name String - type String
- Thirt-Party service integration type.
- url String
- Your webhook URL.
- enabled Boolean
- Whether your cluster has Prometheus enabled.
- microsoft
Teams StringWebhook Url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- service
Discovery String - Indicates which service discovery method is used, either file or http.
- user
Name String - Your Prometheus username.
- account
Id string - api
Key string - Your API Key.
- channel
Name string - id string
- Unique identifier of the integration.
- project
Id string - The unique ID for the project to get all Third-Party service integrations
- region string
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- routing
Key string - An optional field for your Routing Key.
WEBHOOK
- secret string
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- service
Key string - Your Service Key.
DATADOG
- team
Name string - type string
- Thirt-Party service integration type.
- url string
- Your webhook URL.
- enabled boolean
- Whether your cluster has Prometheus enabled.
- microsoft
Teams stringWebhook Url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- service
Discovery string - Indicates which service discovery method is used, either file or http.
- user
Name string - Your Prometheus username.
- account_
id str - api_
key str - Your API Key.
- channel_
name str - id str
- Unique identifier of the integration.
- project_
id str - The unique ID for the project to get all Third-Party service integrations
- region str
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- routing_
key str - An optional field for your Routing Key.
WEBHOOK
- secret str
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- service_
key str - Your Service Key.
DATADOG
- team_
name str - type str
- Thirt-Party service integration type.
- url str
- Your webhook URL.
- enabled bool
- Whether your cluster has Prometheus enabled.
- microsoft_
teams_ strwebhook_ url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- service_
discovery str - Indicates which service discovery method is used, either file or http.
- user_
name str - Your Prometheus username.
- account
Id String - api
Key String - Your API Key.
- channel
Name String - id String
- Unique identifier of the integration.
- project
Id String - The unique ID for the project to get all Third-Party service integrations
- region String
- Two-letter code that indicates which API URL to use. See the
region
response field of MongoDB API Third-Party Service Integration documentation for more details. Opsgenie will use US by default.VICTOR_OPS
- routing
Key String - An optional field for your Routing Key.
WEBHOOK
- secret String
- An optional field for your webhook secret.
MICROSOFT_TEAMS
- service
Key String - Your Service Key.
DATADOG
- team
Name String - type String
- Thirt-Party service integration type.
- url String
- Your webhook URL.
- enabled Boolean
- Whether your cluster has Prometheus enabled.
- microsoft
Teams StringWebhook Url - Your Microsoft Teams incoming webhook URL.
PROMETHEUS
- service
Discovery String - Indicates which service discovery method is used, either file or http.
- user
Name String - Your Prometheus username.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.