mongodbatlas.getThirdPartyIntegrations

Explore with Pulumi AI

mongodbatlas.getThirdPartyIntegrations describe all Third-Party Integration Settings. This represents two Third-Party services PAGER_DUTY and FLOWDOCK applied across the project.

NOTE: Groups and projects are synonymous terms. You may find groupId in the official documentation.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

return await Deployment.RunAsync(() => 
{
    var testPagerDuty = new Mongodbatlas.ThirdPartyIntegration("testPagerDuty", new()
    {
        ProjectId = "<PROJECT-ID>",
        Type = "PAGER_DUTY",
        ServiceKey = "<PAGER-DUTY-SERVICE-KEY>",
    });

    var testFlowdock = new Mongodbatlas.ThirdPartyIntegration("testFlowdock", new()
    {
        ProjectId = "<PROJECT-ID>",
        Type = "FLOWDOCK",
        FlowName = "<FLOW-NAME>",
        ApiToken = "<API-TOKEN>",
        OrgName = "<ORG-NAME>",
    });

    var test = Mongodbatlas.GetThirdPartyIntegrations.Invoke(new()
    {
        ProjectId = testPagerDuty.ProjectId,
    });

});
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, "testPagerDuty", &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, "testFlowdock", &mongodbatlas.ThirdPartyIntegrationArgs{
			ProjectId: pulumi.String("<PROJECT-ID>"),
			Type:      pulumi.String("FLOWDOCK"),
			FlowName:  pulumi.String("<FLOW-NAME>"),
			ApiToken:  pulumi.String("<API-TOKEN>"),
			OrgName:   pulumi.String("<ORG-NAME>"),
		})
		if err != nil {
			return err
		}
		_ = mongodbatlas.LookupThirdPartyIntegrationsOutput(ctx, mongodbatlas.GetThirdPartyIntegrationsOutputArgs{
			ProjectId: testPagerDuty.ProjectId,
		}, nil)
		return nil
	})
}
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 testFlowdock = new ThirdPartyIntegration("testFlowdock", ThirdPartyIntegrationArgs.builder()        
            .projectId("<PROJECT-ID>")
            .type("FLOWDOCK")
            .flowName("<FLOW-NAME>")
            .apiToken("<API-TOKEN>")
            .orgName("<ORG-NAME>")
            .build());

        final var test = MongodbatlasFunctions.getThirdPartyIntegrations(GetThirdPartyIntegrationsArgs.builder()
            .projectId(testPagerDuty.projectId())
            .build());

    }
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas

test_pager_duty = mongodbatlas.ThirdPartyIntegration("testPagerDuty",
    project_id="<PROJECT-ID>",
    type="PAGER_DUTY",
    service_key="<PAGER-DUTY-SERVICE-KEY>")
test_flowdock = mongodbatlas.ThirdPartyIntegration("testFlowdock",
    project_id="<PROJECT-ID>",
    type="FLOWDOCK",
    flow_name="<FLOW-NAME>",
    api_token="<API-TOKEN>",
    org_name="<ORG-NAME>")
test = mongodbatlas.get_third_party_integrations_output(project_id=test_pager_duty.project_id)
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";

const testPagerDuty = new mongodbatlas.ThirdPartyIntegration("testPagerDuty", {
    projectId: "<PROJECT-ID>",
    type: "PAGER_DUTY",
    serviceKey: "<PAGER-DUTY-SERVICE-KEY>",
});
const testFlowdock = new mongodbatlas.ThirdPartyIntegration("testFlowdock", {
    projectId: "<PROJECT-ID>",
    type: "FLOWDOCK",
    flowName: "<FLOW-NAME>",
    apiToken: "<API-TOKEN>",
    orgName: "<ORG-NAME>",
});
const test = mongodbatlas.getThirdPartyIntegrationsOutput({
    projectId: testPagerDuty.projectId,
});
resources:
  testPagerDuty:
    type: mongodbatlas:ThirdPartyIntegration
    properties:
      projectId: <PROJECT-ID>
      type: PAGER_DUTY
      serviceKey: <PAGER-DUTY-SERVICE-KEY>
  testFlowdock:
    type: mongodbatlas:ThirdPartyIntegration
    properties:
      projectId: <PROJECT-ID>
      type: FLOWDOCK
      flowName: <FLOW-NAME>
      apiToken: <API-TOKEN>
      orgName: <ORG-NAME>
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:

ProjectId string

The unique ID for the project to get all Third-Party service integrations

ProjectId string

The unique ID for the project to get all Third-Party service integrations

projectId String

The unique ID for the project to get all Third-Party service integrations

projectId 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

projectId 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.

ProjectId string

(Required) ID of the Atlas project the Third-Party Service Integration belongs to.

Results List<GetThirdPartyIntegrationsResult>

A list where each represents a Third-Party service integration.

Id string

The provider-assigned unique ID for this managed resource.

ProjectId string

(Required) ID of the Atlas project the Third-Party Service Integration belongs to.

Results []GetThirdPartyIntegrationsResult

A list where each represents a Third-Party service integration.

id String

The provider-assigned unique ID for this managed resource.

projectId String

(Required) ID of the Atlas project the Third-Party Service Integration belongs to.

results List<GetThirdPartyIntegrationsResult>

A list where each represents a Third-Party service integration.

id string

The provider-assigned unique ID for this managed resource.

projectId string

(Required) ID of the Atlas project the Third-Party Service Integration belongs to.

results GetThirdPartyIntegrationsResult[]

A list where each represents a Third-Party service integration.

id str

The provider-assigned unique ID for this managed resource.

project_id str

(Required) ID of the Atlas project the Third-Party Service Integration belongs to.

results Sequence[GetThirdPartyIntegrationsResult]

A list where each represents a Third-Party service integration.

id String

The provider-assigned unique ID for this managed resource.

projectId String

(Required) 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

AccountId string

Unique identifier of your New Relic account.

ApiKey string

Your API Key.

ApiToken string

Your API Token.

ChannelName string
FlowName string

Your Flowdock Flow name.

LicenseKey string

Your License Key.

OrgName string

Your Flowdock organization name.

ProjectId string

The unique ID for the project to get all Third-Party service integrations

ReadToken string

Your Insights Query Key.

Region string

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

RoutingKey string

An optional field for your Routing Key.

Secret string

An optional field for your webhook secret.

ServiceKey string

Your Service Key.

TeamName string
Type string

(Required) Thirt-Party service integration type.

Url string

Your webhook URL.

WriteToken string

Your Insights Insert Key.

Enabled bool

Whether your cluster has Prometheus enabled.

MicrosoftTeamsWebhookUrl string

Your Microsoft Teams incoming webhook URL.

Scheme string

Your Prometheus protocol scheme configured for requests.

ServiceDiscovery string

Indicates which service discovery method is used, either file or http.

UserName string

Your Prometheus username.

AccountId string

Unique identifier of your New Relic account.

ApiKey string

Your API Key.

ApiToken string

Your API Token.

ChannelName string
FlowName string

Your Flowdock Flow name.

LicenseKey string

Your License Key.

OrgName string

Your Flowdock organization name.

ProjectId string

The unique ID for the project to get all Third-Party service integrations

ReadToken string

Your Insights Query Key.

Region string

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

RoutingKey string

An optional field for your Routing Key.

Secret string

An optional field for your webhook secret.

ServiceKey string

Your Service Key.

TeamName string
Type string

(Required) Thirt-Party service integration type.

Url string

Your webhook URL.

WriteToken string

Your Insights Insert Key.

Enabled bool

Whether your cluster has Prometheus enabled.

MicrosoftTeamsWebhookUrl string

Your Microsoft Teams incoming webhook URL.

Scheme string

Your Prometheus protocol scheme configured for requests.

ServiceDiscovery string

Indicates which service discovery method is used, either file or http.

UserName string

Your Prometheus username.

accountId String

Unique identifier of your New Relic account.

apiKey String

Your API Key.

apiToken String

Your API Token.

channelName String
flowName String

Your Flowdock Flow name.

licenseKey String

Your License Key.

orgName String

Your Flowdock organization name.

projectId String

The unique ID for the project to get all Third-Party service integrations

readToken String

Your Insights Query Key.

region String

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

routingKey String

An optional field for your Routing Key.

secret String

An optional field for your webhook secret.

serviceKey String

Your Service Key.

teamName String
type String

(Required) Thirt-Party service integration type.

url String

Your webhook URL.

writeToken String

Your Insights Insert Key.

enabled Boolean

Whether your cluster has Prometheus enabled.

microsoftTeamsWebhookUrl String

Your Microsoft Teams incoming webhook URL.

scheme String

Your Prometheus protocol scheme configured for requests.

serviceDiscovery String

Indicates which service discovery method is used, either file or http.

userName String

Your Prometheus username.

accountId string

Unique identifier of your New Relic account.

apiKey string

Your API Key.

apiToken string

Your API Token.

channelName string
flowName string

Your Flowdock Flow name.

licenseKey string

Your License Key.

orgName string

Your Flowdock organization name.

projectId string

The unique ID for the project to get all Third-Party service integrations

readToken string

Your Insights Query Key.

region string

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

routingKey string

An optional field for your Routing Key.

secret string

An optional field for your webhook secret.

serviceKey string

Your Service Key.

teamName string
type string

(Required) Thirt-Party service integration type.

url string

Your webhook URL.

writeToken string

Your Insights Insert Key.

enabled boolean

Whether your cluster has Prometheus enabled.

microsoftTeamsWebhookUrl string

Your Microsoft Teams incoming webhook URL.

scheme string

Your Prometheus protocol scheme configured for requests.

serviceDiscovery string

Indicates which service discovery method is used, either file or http.

userName string

Your Prometheus username.

account_id str

Unique identifier of your New Relic account.

api_key str

Your API Key.

api_token str

Your API Token.

channel_name str
flow_name str

Your Flowdock Flow name.

license_key str

Your License Key.

org_name str

Your Flowdock organization name.

project_id str

The unique ID for the project to get all Third-Party service integrations

read_token str

Your Insights Query Key.

region str

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

routing_key str

An optional field for your Routing Key.

secret str

An optional field for your webhook secret.

service_key str

Your Service Key.

team_name str
type str

(Required) Thirt-Party service integration type.

url str

Your webhook URL.

write_token str

Your Insights Insert Key.

enabled bool

Whether your cluster has Prometheus enabled.

microsoft_teams_webhook_url str

Your Microsoft Teams incoming webhook URL.

scheme str

Your Prometheus protocol scheme configured for requests.

service_discovery str

Indicates which service discovery method is used, either file or http.

user_name str

Your Prometheus username.

accountId String

Unique identifier of your New Relic account.

apiKey String

Your API Key.

apiToken String

Your API Token.

channelName String
flowName String

Your Flowdock Flow name.

licenseKey String

Your License Key.

orgName String

Your Flowdock organization name.

projectId String

The unique ID for the project to get all Third-Party service integrations

readToken String

Your Insights Query Key.

region String

Indicates which API URL to use, either US or EU. Opsgenie will use US by default.

routingKey String

An optional field for your Routing Key.

secret String

An optional field for your webhook secret.

serviceKey String

Your Service Key.

teamName String
type String

(Required) Thirt-Party service integration type.

url String

Your webhook URL.

writeToken String

Your Insights Insert Key.

enabled Boolean

Whether your cluster has Prometheus enabled.

microsoftTeamsWebhookUrl String

Your Microsoft Teams incoming webhook URL.

scheme String

Your Prometheus protocol scheme configured for requests.

serviceDiscovery String

Indicates which service discovery method is used, either file or http.

userName 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.