Show / Hide Table of Contents

Class 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>
",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Service
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ApiManagement
Assembly: Pulumi.Azure.dll
Syntax
public class Service : CustomResource

Constructors

View Source

Service(String, ServiceArgs, CustomResourceOptions)

Create a Service resource with the given unique name, arguments, and options.

Declaration
public Service(string name, ServiceArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ServiceArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdditionalLocations

One or more additional_location blocks as defined below.

Declaration
public Output<ImmutableArray<ServiceAdditionalLocation>> AdditionalLocations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ServiceAdditionalLocation>>
View Source

Certificates

One or more (up to 10) certificate blocks as defined below.

Declaration
public Output<ImmutableArray<ServiceCertificate>> Certificates { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ServiceCertificate>>
View Source

GatewayRegionalUrl

The URL of the Regional Gateway for the API Management Service in the specified region.

Declaration
public Output<string> GatewayRegionalUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

GatewayUrl

The URL of the Gateway for the API Management Service.

Declaration
public Output<string> GatewayUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

HostnameConfiguration

A hostname_configuration block as defined below.

Declaration
public Output<ServiceHostnameConfiguration> HostnameConfiguration { get; }
Property Value
Type Description
Output<ServiceHostnameConfiguration>
View Source

Identity

An identity block is documented below.

Declaration
public Output<ServiceIdentity> Identity { get; }
Property Value
Type Description
Output<ServiceIdentity>
View Source

Location

The Azure location where the API Management Service exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

ManagementApiUrl

The URL for the Management API associated with this API Management service.

Declaration
public Output<string> ManagementApiUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the API Management Service. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NotificationSenderEmail

Email address from which the notification will be sent.

Declaration
public Output<string> NotificationSenderEmail { get; }
Property Value
Type Description
Output<System.String>
View Source

Policy

A policy block as defined below.

Declaration
public Output<ServicePolicy> Policy { get; }
Property Value
Type Description
Output<ServicePolicy>
View Source

PortalUrl

The URL for the Publisher Portal associated with this API Management service.

Declaration
public Output<string> PortalUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

PrivateIpAddresses

Declaration
public Output<ImmutableArray<string>> PrivateIpAddresses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Protocols

A protocols block as defined below.

Declaration
public Output<ServiceProtocols> Protocols { get; }
Property Value
Type Description
Output<ServiceProtocols>
View Source

PublicIpAddresses

Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.

Declaration
public Output<ImmutableArray<string>> PublicIpAddresses { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

PublisherEmail

The email of publisher/company.

Declaration
public Output<string> PublisherEmail { get; }
Property Value
Type Description
Output<System.String>
View Source

PublisherName

The name of publisher/company.

Declaration
public Output<string> PublisherName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

ScmUrl

The URL for the SCM (Source Code Management) Endpoint associated with this API Management service.

Declaration
public Output<string> ScmUrl { get; }
Property Value
Type Description
Output<System.String>
View Source

Security

A security block as defined below.

Declaration
public Output<ServiceSecurity> Security { get; }
Property Value
Type Description
Output<ServiceSecurity>
View Source

SignIn

A sign_in block as defined below.

Declaration
public Output<ServiceSignIn> SignIn { get; }
Property Value
Type Description
Output<ServiceSignIn>
View Source

SignUp

A sign_up block as defined below.

Declaration
public Output<ServiceSignUp> SignUp { get; }
Property Value
Type Description
Output<ServiceSignUp>
View Source

SkuName

sku_name is a string consisting of two parts separated by an underscore(_). The fist part is the name, valid values include: Consumption, Developer, Basic, Standard and Premium. The second part is the capacity (e.g. the number of deployed units of the sku), which must be a positive integer (e.g. Developer_1).

Declaration
public Output<string> SkuName { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A mapping of tags assigned to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

VirtualNetworkConfiguration

A virtual_network_configuration block as defined below. Required when virtual_network_type is External or Internal.

Declaration
public Output<ServiceVirtualNetworkConfiguration> VirtualNetworkConfiguration { get; }
Property Value
Type Description
Output<ServiceVirtualNetworkConfiguration>
View Source

VirtualNetworkType

The type of virtual network you want to use, valid values include: None, External, Internal.

Declaration
public Output<string> VirtualNetworkType { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ServiceState, CustomResourceOptions)

Get an existing Service resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Service Get(string name, Input<string> id, ServiceState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ServiceState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Service
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.