Namespace Pulumi.Azure.ApiManagement
Classes
Api
Manages an API within an API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@exmaple.com",
SkuName = "Developer_1",
});
var exampleApi = new Azure.ApiManagement.Api("exampleApi", new Azure.ApiManagement.ApiArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
Revision = "1",
DisplayName = "Example API",
Path = "example",
Protocols =
{
"https",
},
Import = new Azure.ApiManagement.Inputs.ApiImportArgs
{
ContentFormat = "swagger-link-json",
ContentValue = "http://conferenceapi.azurewebsites.net/?format=json",
},
});
}
}
ApiArgs
ApiOperation
Manages an API Operation within an API Management Service.
ApiOperationArgs
ApiOperationPolicy
Manages an API Management API Operation Policy
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleApiOperation = new Azure.ApiManagement.ApiOperation("exampleApiOperation", new Azure.ApiManagement.ApiOperationArgs
{
});
//...
var exampleApiOperationPolicy = new Azure.ApiManagement.ApiOperationPolicy("exampleApiOperationPolicy", new Azure.ApiManagement.ApiOperationPolicyArgs
{
ApiName = exampleApiOperation.ApiName,
ApiManagementName = exampleApiOperation.ApiManagementName,
ResourceGroupName = exampleApiOperation.ResourceGroupName,
OperationId = exampleApiOperation.OperationId,
XmlContent = @"<policies>
<inbound>
<find-and-replace from=""xyz"" to=""abc"" />
</inbound>
</policies>
",
});
}
}
ApiOperationPolicyArgs
ApiOperationPolicyState
ApiOperationState
ApiPolicy
Manages an API Management API Policy
ApiPolicyArgs
ApiPolicyState
ApiSchema
Manages an API Schema within an API Management Service.
Example Usage
using System.IO;
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleApi = Output.Create(Azure.ApiManagement.GetApi.InvokeAsync(new Azure.ApiManagement.GetApiArgs
{
Name = "search-api",
ApiManagementName = "search-api-management",
ResourceGroupName = "search-service",
Revision = "2",
}));
var exampleApiSchema = new Azure.ApiManagement.ApiSchema("exampleApiSchema", new Azure.ApiManagement.ApiSchemaArgs
{
ApiName = exampleApi.Apply(exampleApi => exampleApi.Name),
ApiManagementName = exampleApi.Apply(exampleApi => exampleApi.ApiManagementName),
ResourceGroupName = exampleApi.Apply(exampleApi => exampleApi.ResourceGroupName),
SchemaId = "example-sche,a",
ContentType = "application/vnd.ms-azure-apim.xsd+xml",
Value = File.ReadAllText("api_management_api_schema.xml"),
});
}
}
ApiSchemaArgs
ApiSchemaState
ApiState
ApiVersionSet
Manages an API Version Set within an API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "pub1",
PublisherEmail = "pub1@email.com",
SkuName = "Developer_1",
});
var exampleApiVersionSet = new Azure.ApiManagement.ApiVersionSet("exampleApiVersionSet", new Azure.ApiManagement.ApiVersionSetArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
DisplayName = "ExampleAPIVersionSet",
VersioningScheme = "Segment",
});
}
}
ApiVersionSetArgs
ApiVersionSetState
AuthorizationServer
Manages an Authorization Server within an API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleApi = Output.Create(Azure.ApiManagement.GetApi.InvokeAsync(new Azure.ApiManagement.GetApiArgs
{
Name = "search-api",
ApiManagementName = "search-api-management",
ResourceGroupName = "search-service",
Revision = "2",
}));
var exampleAuthorizationServer = new Azure.ApiManagement.AuthorizationServer("exampleAuthorizationServer", new Azure.ApiManagement.AuthorizationServerArgs
{
ApiManagementName = data.Azurerm_api_management.Example.Name,
ResourceGroupName = data.Azurerm_api_management.Example.Resource_group_name,
DisplayName = "Test Server",
AuthorizationEndpoint = "https://example.mydomain.com/client/authorize",
ClientId = "42424242-4242-4242-4242-424242424242",
ClientRegistrationEndpoint = "https://example.mydomain.com/client/register",
GrantTypes =
{
"authorizationCode",
},
});
}
}
AuthorizationServerArgs
AuthorizationServerState
Backend
Manages a backend within an API Management Service.
BackendArgs
BackendState
Certificate
Manages an Certificate within an API Management Service.
CertificateArgs
CertificateState
Diagnostic
Manages an API Management Service Diagnostic.
DiagnosticArgs
DiagnosticState
GetApi
GetApiArgs
GetApiResult
GetApiVersionSet
GetApiVersionSetArgs
GetApiVersionSetResult
GetGroup
GetGroupArgs
GetGroupResult
GetProduct
GetProductArgs
GetProductResult
GetService
GetServiceArgs
GetServiceResult
GetUser
GetUserArgs
GetUserResult
Group
Manages an API Management Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "pub1",
PublisherEmail = "pub1@email.com",
SkuName = "Developer_1",
});
var exampleGroup = new Azure.ApiManagement.Group("exampleGroup", new Azure.ApiManagement.GroupArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
DisplayName = "Example Group",
Description = "This is an example API management group.",
});
}
}
GroupArgs
GroupState
GroupUser
Manages an API Management User Assignment to a Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleUser = Output.Create(Azure.ApiManagement.GetUser.InvokeAsync(new Azure.ApiManagement.GetUserArgs
{
UserId = "my-user",
ApiManagementName = "example-apim",
ResourceGroupName = "search-service",
}));
var exampleGroupUser = new Azure.ApiManagement.GroupUser("exampleGroupUser", new Azure.ApiManagement.GroupUserArgs
{
UserId = exampleUser.Apply(exampleUser => exampleUser.Id),
GroupName = "example-group",
ResourceGroupName = exampleUser.Apply(exampleUser => exampleUser.ResourceGroupName),
ApiManagementName = exampleUser.Apply(exampleUser => exampleUser.ApiManagementName),
});
}
}
GroupUserArgs
GroupUserState
IdentityProviderAad
Manages an API Management AAD Identity Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@mycompany.io",
SkuName = "Developer_1",
});
var exampleIdentityProviderAad = new Azure.ApiManagement.IdentityProviderAad("exampleIdentityProviderAad", new Azure.ApiManagement.IdentityProviderAadArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
ClientId = "00000000-0000-0000-0000-000000000000",
ClientSecret = "00000000000000000000000000000000",
AllowedTenants =
{
"00000000-0000-0000-0000-000000000000",
},
});
}
}
IdentityProviderAadArgs
IdentityProviderAadState
IdentityProviderFacebook
Manages an API Management Facebook Identity Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@mycompany.io",
SkuName = "Developer_1",
});
var exampleIdentityProviderFacebook = new Azure.ApiManagement.IdentityProviderFacebook("exampleIdentityProviderFacebook", new Azure.ApiManagement.IdentityProviderFacebookArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
AppId = "00000000000000000000000000000000",
AppSecret = "00000000000000000000000000000000",
});
}
}
IdentityProviderFacebookArgs
IdentityProviderFacebookState
IdentityProviderGoogle
Manages an API Management Google Identity Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@mycompany.io",
SkuName = "Developer_1",
});
var exampleIdentityProviderGoogle = new Azure.ApiManagement.IdentityProviderGoogle("exampleIdentityProviderGoogle", new Azure.ApiManagement.IdentityProviderGoogleArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
ClientId = "00000000.apps.googleusercontent.com",
ClientSecret = "00000000000000000000000000000000",
});
}
}
IdentityProviderGoogleArgs
IdentityProviderGoogleState
IdentityProviderMicrosoft
Manages an API Management Microsoft Identity Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@mycompany.io",
SkuName = "Developer_1",
});
var exampleIdentityProviderMicrosoft = new Azure.ApiManagement.IdentityProviderMicrosoft("exampleIdentityProviderMicrosoft", new Azure.ApiManagement.IdentityProviderMicrosoftArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
ClientId = "00000000-0000-0000-0000-000000000000",
ClientSecret = "00000000000000000000000000000000",
});
}
}
IdentityProviderMicrosoftArgs
IdentityProviderMicrosoftState
IdentityProviderTwitter
Manages an API Management Twitter Identity Provider.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@mycompany.io",
SkuName = "Developer_1",
});
var exampleIdentityProviderTwitter = new Azure.ApiManagement.IdentityProviderTwitter("exampleIdentityProviderTwitter", new Azure.ApiManagement.IdentityProviderTwitterArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
ApiKey = "00000000000000000000000000000000",
ApiSecretKey = "00000000000000000000000000000000",
});
}
}
IdentityProviderTwitterArgs
IdentityProviderTwitterState
Logger
Manages a Logger within an API Management Service.
LoggerArgs
LoggerState
NamedValue
Manages an API Management Named Value.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "pub1",
PublisherEmail = "pub1@email.com",
SkuName = "Developer_1",
});
var exampleNamedValue = new Azure.ApiManagement.NamedValue("exampleNamedValue", new Azure.ApiManagement.NamedValueArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
DisplayName = "ExampleProperty",
Value = "Example Value",
});
}
}
NamedValueArgs
NamedValueState
OpenIdConnectProvider
Manages an OpenID Connect Provider within a API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@exmaple.com",
SkuName = "Developer_1",
});
var exampleOpenIdConnectProvider = new Azure.ApiManagement.OpenIdConnectProvider("exampleOpenIdConnectProvider", new Azure.ApiManagement.OpenIdConnectProviderArgs
{
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleResourceGroup.Name,
ClientId = "00001111-2222-3333-4444-555566667777",
DisplayName = "Example Provider",
MetadataEndpoint = "https://example.com/example",
});
}
}
OpenIdConnectProviderArgs
OpenIdConnectProviderState
Product
Manages an API Management Product.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@exmaple.com",
SkuName = "Developer_1",
});
var exampleProduct = new Azure.ApiManagement.Product("exampleProduct", new Azure.ApiManagement.ProductArgs
{
ProductId = "test-product",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleResourceGroup.Name,
DisplayName = "Test Product",
SubscriptionRequired = true,
ApprovalRequired = true,
Published = true,
});
}
}
ProductApi
Manages an API Management API Assignment to a Product.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleService = Output.Create(Azure.ApiManagement.GetService.InvokeAsync(new Azure.ApiManagement.GetServiceArgs
{
Name = "example-api",
ResourceGroupName = "example-resources",
}));
var exampleApi = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetApi.InvokeAsync(new Azure.ApiManagement.GetApiArgs
{
Name = "search-api",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
Revision = "2",
}));
});
var exampleProduct = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetProduct.InvokeAsync(new Azure.ApiManagement.GetProductArgs
{
ProductId = "my-product",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
}));
});
var exampleProductApi = new Azure.ApiManagement.ProductApi("exampleProductApi", new Azure.ApiManagement.ProductApiArgs
{
ApiName = exampleApi.Apply(exampleApi => exampleApi.Name),
ProductId = exampleProduct.Apply(exampleProduct => exampleProduct.ProductId),
ApiManagementName = exampleService.Apply(exampleService => exampleService.Name),
ResourceGroupName = exampleService.Apply(exampleService => exampleService.ResourceGroupName),
});
}
}
ProductApiArgs
ProductApiState
ProductArgs
ProductGroup
Manages an API Management Product Assignment to a Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleService = Output.Create(Azure.ApiManagement.GetService.InvokeAsync(new Azure.ApiManagement.GetServiceArgs
{
Name = "example-api",
ResourceGroupName = "example-resources",
}));
var exampleProduct = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetProduct.InvokeAsync(new Azure.ApiManagement.GetProductArgs
{
ProductId = "my-product",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
}));
});
var exampleGroup = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetGroup.InvokeAsync(new Azure.ApiManagement.GetGroupArgs
{
Name = "my-group",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
}));
});
var exampleProductGroup = new Azure.ApiManagement.ProductGroup("exampleProductGroup", new Azure.ApiManagement.ProductGroupArgs
{
ProductId = exampleProduct.Apply(exampleProduct => exampleProduct.ProductId),
GroupName = exampleGroup.Apply(exampleGroup => exampleGroup.Name),
ApiManagementName = exampleService.Apply(exampleService => exampleService.Name),
ResourceGroupName = exampleService.Apply(exampleService => exampleService.ResourceGroupName),
});
}
}
ProductGroupArgs
ProductGroupState
ProductPolicy
Manages an API Management Product Policy
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleProduct = Output.Create(Azure.ApiManagement.GetProduct.InvokeAsync(new Azure.ApiManagement.GetProductArgs
{
ProductId = "my-product",
ApiManagementName = "example-apim",
ResourceGroupName = "search-service",
}));
var exampleProductPolicy = new Azure.ApiManagement.ProductPolicy("exampleProductPolicy", new Azure.ApiManagement.ProductPolicyArgs
{
ProductId = exampleProduct.Apply(exampleProduct => exampleProduct.ProductId),
ApiManagementName = exampleProduct.Apply(exampleProduct => exampleProduct.ApiManagementName),
ResourceGroupName = exampleProduct.Apply(exampleProduct => exampleProduct.ResourceGroupName),
XmlContent = @"<policies>
<inbound>
<find-and-replace from=""xyz"" to=""abc"" />
</inbound>
</policies>
",
});
}
}
ProductPolicyArgs
ProductPolicyState
ProductState
Property
Manages an API Management Property.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "pub1",
PublisherEmail = "pub1@email.com",
SkuName = "Developer_1",
});
var exampleProperty = new Azure.ApiManagement.Property("exampleProperty", new Azure.ApiManagement.PropertyArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ApiManagementName = exampleService.Name,
DisplayName = "ExampleProperty",
Value = "Example Value",
});
}
}
PropertyArgs
PropertyState
Service
Manages an API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@exmaple.com",
SkuName = "Developer_1",
Policy = new Azure.ApiManagement.Inputs.ServicePolicyArgs
{
XmlContent = @" <policies>
<inbound />
<backend />
<outbound />
<on-error />
</policies>
",
},
});
}
}
ServiceArgs
ServiceState
Subscription
Manages a Subscription within a API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleService = Output.Create(Azure.ApiManagement.GetService.InvokeAsync(new Azure.ApiManagement.GetServiceArgs
{
Name = "example-apim",
ResourceGroupName = "example-resources",
}));
var exampleProduct = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetProduct.InvokeAsync(new Azure.ApiManagement.GetProductArgs
{
ProductId = "00000000-0000-0000-0000-000000000000",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
}));
});
var exampleUser = Output.Tuple(exampleService, exampleService).Apply(values =>
{
var exampleService = values.Item1;
var exampleService1 = values.Item2;
return Output.Create(Azure.ApiManagement.GetUser.InvokeAsync(new Azure.ApiManagement.GetUserArgs
{
UserId = "11111111-1111-1111-1111-111111111111",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleService1.ResourceGroupName,
}));
});
var exampleSubscription = new Azure.ApiManagement.Subscription("exampleSubscription", new Azure.ApiManagement.SubscriptionArgs
{
ApiManagementName = exampleService.Apply(exampleService => exampleService.Name),
ResourceGroupName = exampleService.Apply(exampleService => exampleService.ResourceGroupName),
UserId = exampleUser.Apply(exampleUser => exampleUser.Id),
ProductId = exampleProduct.Apply(exampleProduct => exampleProduct.Id),
DisplayName = "Parser API",
});
}
}
SubscriptionArgs
SubscriptionState
User
Manages an API Management User.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.ApiManagement.Service("exampleService", new Azure.ApiManagement.ServiceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublisherName = "My Company",
PublisherEmail = "company@exmaple.com",
SkuName = "Developer_1",
});
var exampleUser = new Azure.ApiManagement.User("exampleUser", new Azure.ApiManagement.UserArgs
{
UserId = "5931a75ae4bbd512288c680b",
ApiManagementName = exampleService.Name,
ResourceGroupName = exampleResourceGroup.Name,
FirstName = "Example",
LastName = "User",
Email = "user@example.com",
State = "active",
});
}
}