Get-SBNamespace

Get-SBNamespace

You can use this cmdlet to retrieve the details about Service Bus for Windows Server service namespaces.

Syntax

Parameter Set: Default
Get-SBNamespace [-Name <String> ] [-SubscriptionId <Guid> ] [ <CommonParameters>]

Detailed Description

Run Get-SBNamespace to return the details for a Service Bus for Windows Server service namespace.

If the -Name parameter is specified with the service namespace name, this command returns only the details for the specified service namespace. Otherwise, details for all the service namespaces are returned.

Parameters

-Name<String>

Specifies the name of the service namespace.

Aliases

n

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-SubscriptionId<Guid>

An optional parameter that associates a namespace with a subscription. For example, this parameter is useful if an administrator creates a namespace on behalf of a user.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1

Retrieves all service namespaces.

PS C:\> Get-SBNamespace

Example 2

Returns the service namespace with the name MyNamespace1.

PS C:\> Get-SBNamespace -Name MyNamespace1

Service Bus 1.0 MSDN Community Forum