get Namespace
Use this data source to access information about an existing Notification Hub Namespace.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.notificationhub.NotificationhubFunctions;
import com.pulumi.azure.notificationhub.inputs.GetNamespaceArgs;
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 = NotificationhubFunctions.getNamespace(GetNamespaceArgs.builder()
.name("my-namespace")
.resourceGroupName("my-resource-group")
.build());
ctx.export("servicebusEndpoint", example.applyValue(getNamespaceResult -> getNamespaceResult.servicebusEndpoint()));
}
}
Content copied to clipboard
Return
A collection of values returned by getNamespace.
Parameters
argument
A collection of arguments for invoking getNamespace.
Return
A collection of values returned by getNamespace.
See also
Parameters
name
Specifies the Name of the Notification Hub Namespace.
resource Group Name
Specifies the Name of the Resource Group within which the Notification Hub exists.
suspend fun getNamespace(argument: suspend GetNamespacePlainArgsBuilder.() -> Unit): GetNamespaceResult
Return
A collection of values returned by getNamespace.
See also
Parameters
argument
Builder for com.pulumi.azure.notificationhub.kotlin.inputs.GetNamespacePlainArgs.