1. Packages
  2. Scaleway
  3. API Docs
  4. getMnqSns
Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse

scaleway.getMnqSns

Start a Neo task
Explain and create a scaleway.getMnqSns resource
scaleway logo
Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse
    Deprecated: scaleway.index/getmnqsns.getMnqSns has been deprecated in favor of scaleway.mnq/getsns.getSns

    Gets information about SNS for a Project

    Examples

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // For default project
    const main = scaleway.mnq.getSns({});
    // For specific project
    const forProject = scaleway.mnq.getSns({
        projectId: mainScalewayAccountProject.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # For default project
    main = scaleway.mnq.get_sns()
    # For specific project
    for_project = scaleway.mnq.get_sns(project_id=main_scaleway_account_project["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mnq"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// For default project
    		_, err := mnq.LookupSns(ctx, &mnq.LookupSnsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		// For specific project
    		_, err = mnq.LookupSns(ctx, &mnq.LookupSnsArgs{
    			ProjectId: pulumi.StringRef(mainScalewayAccountProject.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // For default project
        var main = Scaleway.Mnq.GetSns.Invoke();
    
        // For specific project
        var forProject = Scaleway.Mnq.GetSns.Invoke(new()
        {
            ProjectId = mainScalewayAccountProject.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.mnq.MnqFunctions;
    import com.pulumi.scaleway.mnq.inputs.GetSnsArgs;
    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) {
            // For default project
            final var main = MnqFunctions.getSns(GetSnsArgs.builder()
                .build());
    
            // For specific project
            final var forProject = MnqFunctions.getSns(GetSnsArgs.builder()
                .projectId(mainScalewayAccountProject.id())
                .build());
    
        }
    }
    
    variables:
      # For default project
      main:
        fn::invoke:
          function: scaleway:mnq:getSns
          arguments: {}
      # For specific project
      forProject:
        fn::invoke:
          function: scaleway:mnq:getSns
          arguments:
            projectId: ${mainScalewayAccountProject.id}
    

    Using getMnqSns

    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 getMnqSns(args: GetMnqSnsArgs, opts?: InvokeOptions): Promise<GetMnqSnsResult>
    function getMnqSnsOutput(args: GetMnqSnsOutputArgs, opts?: InvokeOptions): Output<GetMnqSnsResult>
    def get_mnq_sns(project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetMnqSnsResult
    def get_mnq_sns_output(project_id: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetMnqSnsResult]
    func LookupMnqSns(ctx *Context, args *LookupMnqSnsArgs, opts ...InvokeOption) (*LookupMnqSnsResult, error)
    func LookupMnqSnsOutput(ctx *Context, args *LookupMnqSnsOutputArgs, opts ...InvokeOption) LookupMnqSnsResultOutput

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

    public static class GetMnqSns 
    {
        public static Task<GetMnqSnsResult> InvokeAsync(GetMnqSnsArgs args, InvokeOptions? opts = null)
        public static Output<GetMnqSnsResult> Invoke(GetMnqSnsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMnqSnsResult> getMnqSns(GetMnqSnsArgs args, InvokeOptions options)
    public static Output<GetMnqSnsResult> getMnqSns(GetMnqSnsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:index/getMnqSns:getMnqSns
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    project_id) The ID of the Project in which sns is enabled.
    Region string
    region). The region in which sns is enabled.
    ProjectId string
    project_id) The ID of the Project in which sns is enabled.
    Region string
    region). The region in which sns is enabled.
    projectId String
    project_id) The ID of the Project in which sns is enabled.
    region String
    region). The region in which sns is enabled.
    projectId string
    project_id) The ID of the Project in which sns is enabled.
    region string
    region). The region in which sns is enabled.
    project_id str
    project_id) The ID of the Project in which sns is enabled.
    region str
    region). The region in which sns is enabled.
    projectId String
    project_id) The ID of the Project in which sns is enabled.
    region String
    region). The region in which sns is enabled.

    getMnqSns Result

    The following output properties are available:

    Endpoint string
    The endpoint of the SNS service for this Project.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Region string
    Endpoint string
    The endpoint of the SNS service for this Project.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Region string
    endpoint String
    The endpoint of the SNS service for this Project.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    region String
    endpoint string
    The endpoint of the SNS service for this Project.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    region string
    endpoint str
    The endpoint of the SNS service for this Project.
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    region str
    endpoint String
    The endpoint of the SNS service for this Project.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate