Udostępnij za pośrednictwem


SubscriptionCreateParameters Constructors

Definition

Overloads

SubscriptionCreateParameters()

Initializes a new instance of the SubscriptionCreateParameters class.

SubscriptionCreateParameters(String, String, String, String, String, Nullable<SubscriptionState>, Nullable<Boolean>)

Initializes a new instance of the SubscriptionCreateParameters class.

SubscriptionCreateParameters()

Initializes a new instance of the SubscriptionCreateParameters class.

public SubscriptionCreateParameters ();
Public Sub New ()

Applies to

SubscriptionCreateParameters(String, String, String, String, String, Nullable<SubscriptionState>, Nullable<Boolean>)

Initializes a new instance of the SubscriptionCreateParameters class.

public SubscriptionCreateParameters (string scope, string displayName, string ownerId = default, string primaryKey = default, string secondaryKey = default, Microsoft.Azure.Management.ApiManagement.Models.SubscriptionState? state = default, bool? allowTracing = default);
new Microsoft.Azure.Management.ApiManagement.Models.SubscriptionCreateParameters : string * string * string * string * string * Nullable<Microsoft.Azure.Management.ApiManagement.Models.SubscriptionState> * Nullable<bool> -> Microsoft.Azure.Management.ApiManagement.Models.SubscriptionCreateParameters
Public Sub New (scope As String, displayName As String, Optional ownerId As String = Nothing, Optional primaryKey As String = Nothing, Optional secondaryKey As String = Nothing, Optional state As Nullable(Of SubscriptionState) = Nothing, Optional allowTracing As Nullable(Of Boolean) = Nothing)

Parameters

scope
String

Scope like /products/{productId} or /apis or /apis/{apiId}.

displayName
String

Subscription name.

ownerId
String

User (user id path) for whom subscription is being created in form /users/{userId}

primaryKey
String

Primary subscription key. If not specified during request key will be generated automatically.

secondaryKey
String

Secondary subscription key. If not specified during request key will be generated automatically.

state
Nullable<SubscriptionState>

Initial subscription state. If no value is specified, subscription is created with Submitted state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'suspended', 'active', 'expired', 'submitted', 'rejected', 'cancelled'

allowTracing
Nullable<Boolean>

Determines whether tracing can be enabled

Applies to