We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.eventgrid.getPartnerNamespace
Start a Neo task
Explain and create an azure.eventgrid.getPartnerNamespace resource
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- 2025-02-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 dictionaryThe following arguments are supported:
- Name string
- The name of the Event Grid Partner Namespace resource.
- Resource
Group stringName - 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.
- Resource
Group stringName - 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.
- resource
Group StringName - 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.
- resource
Group stringName - 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_ strname - 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.
- resource
Group StringName - 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.
- Inbound
Ip List<GetRules Partner Namespace Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - Local
Authentication boolEnabled - 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
- Partner
Registration stringId - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- Partner
Topic stringRouting Mode - The partner topic routing mode.
- Public
Network stringAccess - Whether or not public network access is allowed for this server.
- Resource
Group stringName - 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.
- Inbound
Ip []GetRules Partner Namespace Inbound Ip Rule - One or more
inbound_ip_ruleblocks as defined below. - Local
Authentication boolEnabled - 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
- Partner
Registration stringId - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- Partner
Topic stringRouting Mode - The partner topic routing mode.
- Public
Network stringAccess - Whether or not public network access is allowed for this server.
- Resource
Group stringName - 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.
- inbound
Ip List<GetRules Partner Namespace Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - local
Authentication BooleanEnabled - 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
- partner
Registration StringId - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- partner
Topic StringRouting Mode - The partner topic routing mode.
- public
Network StringAccess - Whether or not public network access is allowed for this server.
- resource
Group StringName - 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.
- inbound
Ip GetRules Partner Namespace Inbound Ip Rule[] - One or more
inbound_ip_ruleblocks as defined below. - local
Authentication booleanEnabled - 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
- partner
Registration stringId - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- partner
Topic stringRouting Mode - The partner topic routing mode.
- public
Network stringAccess - Whether or not public network access is allowed for this server.
- resource
Group stringName - {[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_ Sequence[Getrules Partner Namespace Inbound Ip Rule] - One or more
inbound_ip_ruleblocks as defined below. - local_
authentication_ boolenabled - 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_ strid - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- partner_
topic_ strrouting_ mode - The partner topic routing mode.
- public_
network_ straccess - Whether or not public network access is allowed for this server.
- resource_
group_ strname - 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.
- inbound
Ip List<Property Map>Rules - One or more
inbound_ip_ruleblocks as defined below. - local
Authentication BooleanEnabled - 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
- partner
Registration StringId - The resource Id of the partner registration associated with this Event Grid Partner Namespace.
- partner
Topic StringRouting Mode - The partner topic routing mode.
- public
Network StringAccess - Whether or not public network access is allowed for this server.
- resource
Group StringName - Map<String>
- A mapping of tags which are assigned to the Event Grid Partner Namespace.
Supporting Types
GetPartnerNamespaceInboundIpRule
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
