1. Packages
  2. Azure Classic
  3. API Docs
  4. eventgrid
  5. getPartnerNamespace

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.eventgrid.getPartnerNamespace

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Use this data source to access information about an existing Event Grid Partner Namespace

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.eventgrid.getPartnerNamespace({
        name: "my-eventgrid-partner-namespace",
        resourceGroupName: "example-resources",
    });
    export const eventgridPartnerNamespaceEndpoint = example.then(example => example.endpoint);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.eventgrid.get_partner_namespace(name="my-eventgrid-partner-namespace",
        resource_group_name="example-resources")
    pulumi.export("eventgridPartnerNamespaceEndpoint", example.endpoint)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := eventgrid.LookupPartnerNamespace(ctx, &eventgrid.LookupPartnerNamespaceArgs{
    			Name:              "my-eventgrid-partner-namespace",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("eventgridPartnerNamespaceEndpoint", example.Endpoint)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.EventGrid.GetPartnerNamespace.Invoke(new()
        {
            Name = "my-eventgrid-partner-namespace",
            ResourceGroupName = "example-resources",
        });
    
        return new Dictionary<string, object?>
        {
            ["eventgridPartnerNamespaceEndpoint"] = example.Apply(getPartnerNamespaceResult => getPartnerNamespaceResult.Endpoint),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.eventgrid.EventgridFunctions;
    import com.pulumi.azure.eventgrid.inputs.GetPartnerNamespaceArgs;
    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 example = EventgridFunctions.getPartnerNamespace(GetPartnerNamespaceArgs.builder()
                .name("my-eventgrid-partner-namespace")
                .resourceGroupName("example-resources")
                .build());
    
            ctx.export("eventgridPartnerNamespaceEndpoint", example.endpoint());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:eventgrid:getPartnerNamespace
          arguments:
            name: my-eventgrid-partner-namespace
            resourceGroupName: example-resources
    outputs:
      eventgridPartnerNamespaceEndpoint: ${example.endpoint}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.EventGrid - 2022-06-15

    Using getPartnerNamespace

    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 getPartnerNamespace(args: GetPartnerNamespaceArgs, opts?: InvokeOptions): Promise<GetPartnerNamespaceResult>
    function getPartnerNamespaceOutput(args: GetPartnerNamespaceOutputArgs, opts?: InvokeOptions): Output<GetPartnerNamespaceResult>
    def get_partner_namespace(name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPartnerNamespaceResult
    def get_partner_namespace_output(name: Optional[pulumi.Input[str]] = None,
                              resource_group_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPartnerNamespaceResult]
    func LookupPartnerNamespace(ctx *Context, args *LookupPartnerNamespaceArgs, opts ...InvokeOption) (*LookupPartnerNamespaceResult, error)
    func LookupPartnerNamespaceOutput(ctx *Context, args *LookupPartnerNamespaceOutputArgs, opts ...InvokeOption) LookupPartnerNamespaceResultOutput

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

    public static class GetPartnerNamespace 
    {
        public static Task<GetPartnerNamespaceResult> InvokeAsync(GetPartnerNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetPartnerNamespaceResult> Invoke(GetPartnerNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPartnerNamespaceResult> getPartnerNamespace(GetPartnerNamespaceArgs args, InvokeOptions options)
    public static Output<GetPartnerNamespaceResult> getPartnerNamespace(GetPartnerNamespaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:eventgrid/getPartnerNamespace:getPartnerNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Event Grid Partner Namespace resource.
    ResourceGroupName string
    The name of the resource group in which the Event Grid Partner Namespace exists.
    Name string
    The name of the Event Grid Partner Namespace resource.
    ResourceGroupName string
    The name of the resource group in which the Event Grid Partner Namespace exists.
    name String
    The name of the Event Grid Partner Namespace resource.
    resourceGroupName String
    The name of the resource group in which the Event Grid Partner Namespace exists.
    name string
    The name of the Event Grid Partner Namespace resource.
    resourceGroupName string
    The name of the resource group in which the Event Grid Partner Namespace exists.
    name str
    The name of the Event Grid Partner Namespace resource.
    resource_group_name str
    The name of the resource group in which the Event Grid Partner Namespace exists.
    name String
    The name of the Event Grid Partner Namespace resource.
    resourceGroupName String
    The name of the resource group in which the Event Grid Partner Namespace exists.

    getPartnerNamespace Result

    The following output properties are available:

    Endpoint string
    The endpoint for the Event Grid Partner Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    InboundIpRules List<GetPartnerNamespaceInboundIpRule>
    One or more inbound_ip_rule blocks as defined below.
    LocalAuthenticationEnabled bool
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    Location string
    The Azure Region where the Event Grid Partner Namespace exists.
    Name string
    PartnerRegistrationId string
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    PartnerTopicRoutingMode string
    The partner topic routing mode.
    PublicNetworkAccess string
    Whether or not public network access is allowed for this server.
    ResourceGroupName string
    Tags Dictionary<string, string>
    A mapping of tags which are assigned to the Event Grid Partner Namespace.
    Endpoint string
    The endpoint for the Event Grid Partner Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    InboundIpRules []GetPartnerNamespaceInboundIpRule
    One or more inbound_ip_rule blocks as defined below.
    LocalAuthenticationEnabled bool
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    Location string
    The Azure Region where the Event Grid Partner Namespace exists.
    Name string
    PartnerRegistrationId string
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    PartnerTopicRoutingMode string
    The partner topic routing mode.
    PublicNetworkAccess string
    Whether or not public network access is allowed for this server.
    ResourceGroupName string
    Tags map[string]string
    A mapping of tags which are assigned to the Event Grid Partner Namespace.
    endpoint String
    The endpoint for the Event Grid Partner Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    inboundIpRules List<GetPartnerNamespaceInboundIpRule>
    One or more inbound_ip_rule blocks as defined below.
    localAuthenticationEnabled Boolean
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    location String
    The Azure Region where the Event Grid Partner Namespace exists.
    name String
    partnerRegistrationId String
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    partnerTopicRoutingMode String
    The partner topic routing mode.
    publicNetworkAccess String
    Whether or not public network access is allowed for this server.
    resourceGroupName String
    tags Map<String,String>
    A mapping of tags which are assigned to the Event Grid Partner Namespace.
    endpoint string
    The endpoint for the Event Grid Partner Namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    inboundIpRules GetPartnerNamespaceInboundIpRule[]
    One or more inbound_ip_rule blocks as defined below.
    localAuthenticationEnabled boolean
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    location string
    The Azure Region where the Event Grid Partner Namespace exists.
    name string
    partnerRegistrationId string
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    partnerTopicRoutingMode string
    The partner topic routing mode.
    publicNetworkAccess string
    Whether or not public network access is allowed for this server.
    resourceGroupName string
    tags {[key: string]: string}
    A mapping of tags which are assigned to the Event Grid Partner Namespace.
    endpoint str
    The endpoint for the Event Grid Partner Namespace.
    id str
    The provider-assigned unique ID for this managed resource.
    inbound_ip_rules Sequence[GetPartnerNamespaceInboundIpRule]
    One or more inbound_ip_rule blocks as defined below.
    local_authentication_enabled bool
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    location str
    The Azure Region where the Event Grid Partner Namespace exists.
    name str
    partner_registration_id str
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    partner_topic_routing_mode str
    The partner topic routing mode.
    public_network_access str
    Whether or not public network access is allowed for this server.
    resource_group_name str
    tags Mapping[str, str]
    A mapping of tags which are assigned to the Event Grid Partner Namespace.
    endpoint String
    The endpoint for the Event Grid Partner Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    inboundIpRules List<Property Map>
    One or more inbound_ip_rule blocks as defined below.
    localAuthenticationEnabled Boolean
    Whether local authentication methods are enabled for the Event Grid Partner Namespace.
    location String
    The Azure Region where the Event Grid Partner Namespace exists.
    name String
    partnerRegistrationId String
    The resource Id of the partner registration associated with this Event Grid Partner Namespace.
    partnerTopicRoutingMode String
    The partner topic routing mode.
    publicNetworkAccess String
    Whether or not public network access is allowed for this server.
    resourceGroupName String
    tags Map<String>
    A mapping of tags which are assigned to the Event Grid Partner Namespace.

    Supporting Types

    GetPartnerNamespaceInboundIpRule

    Action string
    The action to take when the rule is matched.
    IpMask string
    The IP mask (CIDR) to match on.
    Action string
    The action to take when the rule is matched.
    IpMask string
    The IP mask (CIDR) to match on.
    action String
    The action to take when the rule is matched.
    ipMask String
    The IP mask (CIDR) to match on.
    action string
    The action to take when the rule is matched.
    ipMask string
    The IP mask (CIDR) to match on.
    action str
    The action to take when the rule is matched.
    ip_mask str
    The IP mask (CIDR) to match on.
    action String
    The action to take when the rule is matched.
    ipMask String
    The IP mask (CIDR) to match on.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi