azure-native.apimanagement.WorkspaceSubscription
Explore with Pulumi AI
Subscription details. Azure REST API version: 2022-09-01-preview.
Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview.
Example Usage
ApiManagementCreateWorkspaceSubscription
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspaceSubscription = new AzureNative.ApiManagement.WorkspaceSubscription("workspaceSubscription", new()
{
DisplayName = "testsub",
OwnerId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7",
ResourceGroupName = "rg1",
Scope = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002",
ServiceName = "apimService1",
Sid = "testsub",
WorkspaceId = "wks1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewWorkspaceSubscription(ctx, "workspaceSubscription", &apimanagement.WorkspaceSubscriptionArgs{
DisplayName: pulumi.String("testsub"),
OwnerId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7"),
ResourceGroupName: pulumi.String("rg1"),
Scope: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002"),
ServiceName: pulumi.String("apimService1"),
Sid: pulumi.String("testsub"),
WorkspaceId: pulumi.String("wks1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.WorkspaceSubscription;
import com.pulumi.azurenative.apimanagement.WorkspaceSubscriptionArgs;
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) {
var workspaceSubscription = new WorkspaceSubscription("workspaceSubscription", WorkspaceSubscriptionArgs.builder()
.displayName("testsub")
.ownerId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7")
.resourceGroupName("rg1")
.scope("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002")
.serviceName("apimService1")
.sid("testsub")
.workspaceId("wks1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workspace_subscription = azure_native.apimanagement.WorkspaceSubscription("workspaceSubscription",
display_name="testsub",
owner_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7",
resource_group_name="rg1",
scope="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002",
service_name="apimService1",
sid="testsub",
workspace_id="wks1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workspaceSubscription = new azure_native.apimanagement.WorkspaceSubscription("workspaceSubscription", {
displayName: "testsub",
ownerId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7",
resourceGroupName: "rg1",
scope: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002",
serviceName: "apimService1",
sid: "testsub",
workspaceId: "wks1",
});
resources:
workspaceSubscription:
type: azure-native:apimanagement:WorkspaceSubscription
properties:
displayName: testsub
ownerId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/57127d485157a511ace86ae7
resourceGroupName: rg1
scope: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/products/5600b59475ff190048060002
serviceName: apimService1
sid: testsub
workspaceId: wks1
Create WorkspaceSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceSubscription(name: string, args: WorkspaceSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceSubscription(resource_name: str,
args: WorkspaceSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_name: Optional[str] = None,
display_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
scope: Optional[str] = None,
workspace_id: Optional[str] = None,
app_type: Optional[str] = None,
notify: Optional[bool] = None,
owner_id: Optional[str] = None,
primary_key: Optional[str] = None,
secondary_key: Optional[str] = None,
allow_tracing: Optional[bool] = None,
sid: Optional[str] = None,
state: Optional[SubscriptionState] = None)
func NewWorkspaceSubscription(ctx *Context, name string, args WorkspaceSubscriptionArgs, opts ...ResourceOption) (*WorkspaceSubscription, error)
public WorkspaceSubscription(string name, WorkspaceSubscriptionArgs args, CustomResourceOptions? opts = null)
public WorkspaceSubscription(String name, WorkspaceSubscriptionArgs args)
public WorkspaceSubscription(String name, WorkspaceSubscriptionArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:WorkspaceSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkspaceSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkspaceSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkspaceSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceSubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workspaceSubscriptionResource = new AzureNative.ApiManagement.WorkspaceSubscription("workspaceSubscriptionResource", new()
{
ServiceName = "string",
DisplayName = "string",
ResourceGroupName = "string",
Scope = "string",
WorkspaceId = "string",
AppType = "string",
Notify = false,
OwnerId = "string",
PrimaryKey = "string",
SecondaryKey = "string",
AllowTracing = false,
Sid = "string",
State = AzureNative.ApiManagement.SubscriptionState.Suspended,
});
example, err := apimanagement.NewWorkspaceSubscription(ctx, "workspaceSubscriptionResource", &apimanagement.WorkspaceSubscriptionArgs{
ServiceName: pulumi.String("string"),
DisplayName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Scope: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
AppType: pulumi.String("string"),
Notify: pulumi.Bool(false),
OwnerId: pulumi.String("string"),
PrimaryKey: pulumi.String("string"),
SecondaryKey: pulumi.String("string"),
AllowTracing: pulumi.Bool(false),
Sid: pulumi.String("string"),
State: apimanagement.SubscriptionStateSuspended,
})
var workspaceSubscriptionResource = new WorkspaceSubscription("workspaceSubscriptionResource", WorkspaceSubscriptionArgs.builder()
.serviceName("string")
.displayName("string")
.resourceGroupName("string")
.scope("string")
.workspaceId("string")
.appType("string")
.notify(false)
.ownerId("string")
.primaryKey("string")
.secondaryKey("string")
.allowTracing(false)
.sid("string")
.state("suspended")
.build());
workspace_subscription_resource = azure_native.apimanagement.WorkspaceSubscription("workspaceSubscriptionResource",
service_name="string",
display_name="string",
resource_group_name="string",
scope="string",
workspace_id="string",
app_type="string",
notify=False,
owner_id="string",
primary_key="string",
secondary_key="string",
allow_tracing=False,
sid="string",
state=azure_native.apimanagement.SubscriptionState.SUSPENDED)
const workspaceSubscriptionResource = new azure_native.apimanagement.WorkspaceSubscription("workspaceSubscriptionResource", {
serviceName: "string",
displayName: "string",
resourceGroupName: "string",
scope: "string",
workspaceId: "string",
appType: "string",
notify: false,
ownerId: "string",
primaryKey: "string",
secondaryKey: "string",
allowTracing: false,
sid: "string",
state: azure_native.apimanagement.SubscriptionState.Suspended,
});
type: azure-native:apimanagement:WorkspaceSubscription
properties:
allowTracing: false
appType: string
displayName: string
notify: false
ownerId: string
primaryKey: string
resourceGroupName: string
scope: string
secondaryKey: string
serviceName: string
sid: string
state: suspended
workspaceId: string
WorkspaceSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkspaceSubscription resource accepts the following input properties:
- Display
Name string - Subscription name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Scope string
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- Service
Name string - The name of the API Management service.
- Workspace
Id string - Workspace identifier. Must be unique in the current API Management service instance.
- Allow
Tracing bool - Determines whether tracing can be enabled
- App
Type string - Determines the type of application which send the create user request. Default is legacy publisher portal.
- Notify bool
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- Owner
Id string - User (user id path) for whom subscription is being created in form /users/{userId}
- Primary
Key string - Primary subscription key. If not specified during request key will be generated automatically.
- Secondary
Key string - Secondary subscription key. If not specified during request key will be generated automatically.
- Sid string
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- State
Pulumi.
Azure Native. Api Management. Subscription State - 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.
- Display
Name string - Subscription name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Scope string
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- Service
Name string - The name of the API Management service.
- Workspace
Id string - Workspace identifier. Must be unique in the current API Management service instance.
- Allow
Tracing bool - Determines whether tracing can be enabled
- App
Type string - Determines the type of application which send the create user request. Default is legacy publisher portal.
- Notify bool
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- Owner
Id string - User (user id path) for whom subscription is being created in form /users/{userId}
- Primary
Key string - Primary subscription key. If not specified during request key will be generated automatically.
- Secondary
Key string - Secondary subscription key. If not specified during request key will be generated automatically.
- Sid string
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- State
Subscription
State Enum - 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.
- display
Name String - Subscription name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- scope String
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- service
Name String - The name of the API Management service.
- workspace
Id String - Workspace identifier. Must be unique in the current API Management service instance.
- allow
Tracing Boolean - Determines whether tracing can be enabled
- app
Type String - Determines the type of application which send the create user request. Default is legacy publisher portal.
- notify_ Boolean
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- owner
Id String - User (user id path) for whom subscription is being created in form /users/{userId}
- primary
Key String - Primary subscription key. If not specified during request key will be generated automatically.
- secondary
Key String - Secondary subscription key. If not specified during request key will be generated automatically.
- sid String
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- state
Subscription
State - 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.
- display
Name string - Subscription name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- scope string
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- service
Name string - The name of the API Management service.
- workspace
Id string - Workspace identifier. Must be unique in the current API Management service instance.
- allow
Tracing boolean - Determines whether tracing can be enabled
- app
Type string - Determines the type of application which send the create user request. Default is legacy publisher portal.
- notify boolean
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- owner
Id string - User (user id path) for whom subscription is being created in form /users/{userId}
- primary
Key string - Primary subscription key. If not specified during request key will be generated automatically.
- secondary
Key string - Secondary subscription key. If not specified during request key will be generated automatically.
- sid string
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- state
Subscription
State - 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.
- display_
name str - Subscription name.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- scope str
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- service_
name str - The name of the API Management service.
- workspace_
id str - Workspace identifier. Must be unique in the current API Management service instance.
- allow_
tracing bool - Determines whether tracing can be enabled
- app_
type str - Determines the type of application which send the create user request. Default is legacy publisher portal.
- notify bool
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- owner_
id str - User (user id path) for whom subscription is being created in form /users/{userId}
- primary_
key str - Primary subscription key. If not specified during request key will be generated automatically.
- secondary_
key str - Secondary subscription key. If not specified during request key will be generated automatically.
- sid str
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- state
Subscription
State - 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.
- display
Name String - Subscription name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- scope String
- Scope like /products/{productId} or /apis or /apis/{apiId}.
- service
Name String - The name of the API Management service.
- workspace
Id String - Workspace identifier. Must be unique in the current API Management service instance.
- allow
Tracing Boolean - Determines whether tracing can be enabled
- app
Type String - Determines the type of application which send the create user request. Default is legacy publisher portal.
- notify Boolean
- Notify change in Subscription State.
- If false, do not send any email notification for change of state of subscription
- If true, send email notification of change of state of subscription
- owner
Id String - User (user id path) for whom subscription is being created in form /users/{userId}
- primary
Key String - Primary subscription key. If not specified during request key will be generated automatically.
- secondary
Key String - Secondary subscription key. If not specified during request key will be generated automatically.
- sid String
- Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- state "suspended" | "active" | "expired" | "submitted" | "rejected" | "cancelled"
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceSubscription resource produces the following output properties:
- Created
Date string - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- End
Date string - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Expiration
Date string - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Notification
Date string - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Start
Date string - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - State
Comment string - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
- Created
Date string - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- End
Date string - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Expiration
Date string - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Notification
Date string - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - Start
Date string - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - State
Comment string - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
- created
Date String - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- end
Date String - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - expiration
Date String - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - notification
Date String - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - start
Date String - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - state
Comment String - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
- created
Date string - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- end
Date string - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - expiration
Date string - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - notification
Date string - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - start
Date string - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - state
Comment string - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
- created_
date str - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- end_
date str - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - expiration_
date str - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - notification_
date str - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - start_
date str - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - state_
comment str - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
- created
Date String - Subscription creation date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- end
Date String - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - expiration
Date String - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - notification
Date String - Upcoming subscription expiration notification date. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - start
Date String - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the
state
property. The date conforms to the following format:yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard. - state
Comment String - Optional subscription comment added by an administrator when the state is changed to the 'rejected'.
Supporting Types
SubscriptionState, SubscriptionStateArgs
- Suspended
- suspended
- Active
- active
- Expired
- expired
- Submitted
- submitted
- Rejected
- rejected
- Cancelled
- cancelled
- Subscription
State Suspended - suspended
- Subscription
State Active - active
- Subscription
State Expired - expired
- Subscription
State Submitted - submitted
- Subscription
State Rejected - rejected
- Subscription
State Cancelled - cancelled
- Suspended
- suspended
- Active
- active
- Expired
- expired
- Submitted
- submitted
- Rejected
- rejected
- Cancelled
- cancelled
- Suspended
- suspended
- Active
- active
- Expired
- expired
- Submitted
- submitted
- Rejected
- rejected
- Cancelled
- cancelled
- SUSPENDED
- suspended
- ACTIVE
- active
- EXPIRED
- expired
- SUBMITTED
- submitted
- REJECTED
- rejected
- CANCELLED
- cancelled
- "suspended"
- suspended
- "active"
- active
- "expired"
- expired
- "submitted"
- submitted
- "rejected"
- rejected
- "cancelled"
- cancelled
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:WorkspaceSubscription testsub /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0