1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Ons
  5. getNotificationTopic
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Ons.getNotificationTopic

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides details about a specific Notification Topic resource in Oracle Cloud Infrastructure Notifications service.

Gets the specified topic’s configuration information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNotificationTopic = oci.Ons.getNotificationTopic({
    topicId: testNotificationTopicOciOnsNotificationTopic.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_notification_topic = oci.Ons.get_notification_topic(topic_id=test_notification_topic_oci_ons_notification_topic["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ons"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ons.GetNotificationTopic(ctx, &ons.GetNotificationTopicArgs{
			TopicId: testNotificationTopicOciOnsNotificationTopic.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNotificationTopic = Oci.Ons.GetNotificationTopic.Invoke(new()
    {
        TopicId = testNotificationTopicOciOnsNotificationTopic.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Ons.OnsFunctions;
import com.pulumi.oci.Ons.inputs.GetNotificationTopicArgs;
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 testNotificationTopic = OnsFunctions.getNotificationTopic(GetNotificationTopicArgs.builder()
            .topicId(testNotificationTopicOciOnsNotificationTopic.id())
            .build());

    }
}
Copy
variables:
  testNotificationTopic:
    fn::invoke:
      function: oci:Ons:getNotificationTopic
      arguments:
        topicId: ${testNotificationTopicOciOnsNotificationTopic.id}
Copy

Using getNotificationTopic

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 getNotificationTopic(args: GetNotificationTopicArgs, opts?: InvokeOptions): Promise<GetNotificationTopicResult>
function getNotificationTopicOutput(args: GetNotificationTopicOutputArgs, opts?: InvokeOptions): Output<GetNotificationTopicResult>
Copy
def get_notification_topic(topic_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetNotificationTopicResult
def get_notification_topic_output(topic_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetNotificationTopicResult]
Copy
func GetNotificationTopic(ctx *Context, args *GetNotificationTopicArgs, opts ...InvokeOption) (*GetNotificationTopicResult, error)
func GetNotificationTopicOutput(ctx *Context, args *GetNotificationTopicOutputArgs, opts ...InvokeOption) GetNotificationTopicResultOutput
Copy

> Note: This function is named GetNotificationTopic in the Go SDK.

public static class GetNotificationTopic 
{
    public static Task<GetNotificationTopicResult> InvokeAsync(GetNotificationTopicArgs args, InvokeOptions? opts = null)
    public static Output<GetNotificationTopicResult> Invoke(GetNotificationTopicInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNotificationTopicResult> getNotificationTopic(GetNotificationTopicArgs args, InvokeOptions options)
public static Output<GetNotificationTopicResult> getNotificationTopic(GetNotificationTopicArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Ons/getNotificationTopic:getNotificationTopic
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TopicId This property is required. string

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

TopicId This property is required. string

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

topicId This property is required. String

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

topicId This property is required. string

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

topic_id This property is required. str

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

topicId This property is required. String

The OCID of the topic to retrieve.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

getNotificationTopic Result

The following output properties are available:

ApiEndpoint string
The endpoint for managing subscriptions or publishing messages to the topic.
CompartmentId string
The OCID of the compartment for the topic.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
The description of the topic.
Etag string
For optimistic concurrency control. See if-match.
FreeformTags Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
Name string
The name of the topic.
ShortTopicId string
A unique short topic Id. This is used only for SMS subscriptions.
State string
The lifecycle state of the topic.
TimeCreated string
The time the topic was created.
TopicId string
The OCID of the topic.
ApiEndpoint string
The endpoint for managing subscriptions or publishing messages to the topic.
CompartmentId string
The OCID of the compartment for the topic.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
The description of the topic.
Etag string
For optimistic concurrency control. See if-match.
FreeformTags map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
Name string
The name of the topic.
ShortTopicId string
A unique short topic Id. This is used only for SMS subscriptions.
State string
The lifecycle state of the topic.
TimeCreated string
The time the topic was created.
TopicId string
The OCID of the topic.
apiEndpoint String
The endpoint for managing subscriptions or publishing messages to the topic.
compartmentId String
The OCID of the compartment for the topic.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
The description of the topic.
etag String
For optimistic concurrency control. See if-match.
freeformTags Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
name String
The name of the topic.
shortTopicId String
A unique short topic Id. This is used only for SMS subscriptions.
state String
The lifecycle state of the topic.
timeCreated String
The time the topic was created.
topicId String
The OCID of the topic.
apiEndpoint string
The endpoint for managing subscriptions or publishing messages to the topic.
compartmentId string
The OCID of the compartment for the topic.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description string
The description of the topic.
etag string
For optimistic concurrency control. See if-match.
freeformTags {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id string
name string
The name of the topic.
shortTopicId string
A unique short topic Id. This is used only for SMS subscriptions.
state string
The lifecycle state of the topic.
timeCreated string
The time the topic was created.
topicId string
The OCID of the topic.
api_endpoint str
The endpoint for managing subscriptions or publishing messages to the topic.
compartment_id str
The OCID of the compartment for the topic.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description str
The description of the topic.
etag str
For optimistic concurrency control. See if-match.
freeform_tags Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id str
name str
The name of the topic.
short_topic_id str
A unique short topic Id. This is used only for SMS subscriptions.
state str
The lifecycle state of the topic.
time_created str
The time the topic was created.
topic_id str
The OCID of the topic.
apiEndpoint String
The endpoint for managing subscriptions or publishing messages to the topic.
compartmentId String
The OCID of the compartment for the topic.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
The description of the topic.
etag String
For optimistic concurrency control. See if-match.
freeformTags Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
name String
The name of the topic.
shortTopicId String
A unique short topic Id. This is used only for SMS subscriptions.
state String
The lifecycle state of the topic.
timeCreated String
The time the topic was created.
topicId String
The OCID of the topic.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi