Show / Hide Table of Contents

Class GetHub

Inheritance
System.Object
GetHub
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.NotificationHub
Assembly: Pulumi.Azure.dll
Syntax
public static class GetHub

Methods

View Source

InvokeAsync(GetHubArgs, InvokeOptions)

Use this data source to access information about an existing Notification Hub within a Notification Hub Namespace.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.NotificationHub.GetHub.InvokeAsync(new Azure.NotificationHub.GetHubArgs
    {
        Name = "notification-hub",
        NamespaceName = "namespace-name",
        ResourceGroupName = "resource-group-name",
    }));
    this.Id = example.Apply(example => example.Id);
}

[Output("id")]
public Output<string> Id { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetHubResult> InvokeAsync(GetHubArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetHubArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetHubResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.