Dela via


ApiManagementServiceNameAvailabilityResult Class

Definition

Response of the CheckNameAvailability operation.

public class ApiManagementServiceNameAvailabilityResult
type ApiManagementServiceNameAvailabilityResult = class
Public Class ApiManagementServiceNameAvailabilityResult
Inheritance
ApiManagementServiceNameAvailabilityResult

Constructors

ApiManagementServiceNameAvailabilityResult()

Initializes a new instance of the ApiManagementServiceNameAvailabilityResult class.

ApiManagementServiceNameAvailabilityResult(Nullable<Boolean>, String, Nullable<NameAvailabilityReason>)

Initializes a new instance of the ApiManagementServiceNameAvailabilityResult class.

Properties

Message

Gets if reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that &lt;resourceName&gt; is already in use, and direct them to select a different name.

NameAvailable

Gets true if the name is available and can be used to create a new API Management service; otherwise false.

Reason

Gets or sets invalid indicates the name provided does not match the resource provider’s naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Valid', 'Invalid', 'AlreadyExists'

Applies to