azure-native.apimanagement.Api
Explore with Pulumi AI
Api details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateApi
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "tempgroup",
AuthenticationSettings = new AzureNative.ApiManagement.Inputs.AuthenticationSettingsContractArgs
{
OAuth2 = new AzureNative.ApiManagement.Inputs.OAuth2AuthenticationSettingsContractArgs
{
AuthorizationServerId = "authorizationServerId2283",
Scope = "oauth2scope2580",
},
},
Description = "apidescription5200",
DisplayName = "apiname1463",
Path = "newapiPath",
Protocols = new[]
{
AzureNative.ApiManagement.Protocol.Https,
AzureNative.ApiManagement.Protocol.Http,
},
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://newechoapi.cloudapp.net/api",
SubscriptionKeyParameterNames = new AzureNative.ApiManagement.Inputs.SubscriptionKeyParameterNamesContractArgs
{
Header = "header4520",
Query = "query3037",
},
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("tempgroup"),
AuthenticationSettings: apimanagement.AuthenticationSettingsContractResponse{
OAuth2: &apimanagement.OAuth2AuthenticationSettingsContractArgs{
AuthorizationServerId: pulumi.String("authorizationServerId2283"),
Scope: pulumi.String("oauth2scope2580"),
},
},
Description: pulumi.String("apidescription5200"),
DisplayName: pulumi.String("apiname1463"),
Path: pulumi.String("newapiPath"),
Protocols: []apimanagement.Protocol{
apimanagement.ProtocolHttps,
apimanagement.ProtocolHttp,
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://newechoapi.cloudapp.net/api"),
SubscriptionKeyParameterNames: &apimanagement.SubscriptionKeyParameterNamesContractArgs{
Header: pulumi.String("header4520"),
Query: pulumi.String("query3037"),
},
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("tempgroup")
.authenticationSettings(Map.of("oAuth2", Map.ofEntries(
Map.entry("authorizationServerId", "authorizationServerId2283"),
Map.entry("scope", "oauth2scope2580")
)))
.description("apidescription5200")
.displayName("apiname1463")
.path("newapiPath")
.protocols(
"https",
"http")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://newechoapi.cloudapp.net/api")
.subscriptionKeyParameterNames(Map.ofEntries(
Map.entry("header", "header4520"),
Map.entry("query", "query3037")
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="tempgroup",
authentication_settings=azure_native.apimanagement.AuthenticationSettingsContractResponseArgs(
o_auth2=azure_native.apimanagement.OAuth2AuthenticationSettingsContractArgs(
authorization_server_id="authorizationServerId2283",
scope="oauth2scope2580",
),
),
description="apidescription5200",
display_name="apiname1463",
path="newapiPath",
protocols=[
azure_native.apimanagement.Protocol.HTTPS,
azure_native.apimanagement.Protocol.HTTP,
],
resource_group_name="rg1",
service_name="apimService1",
service_url="http://newechoapi.cloudapp.net/api",
subscription_key_parameter_names=azure_native.apimanagement.SubscriptionKeyParameterNamesContractArgs(
header="header4520",
query="query3037",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "tempgroup",
authenticationSettings: {
oAuth2: {
authorizationServerId: "authorizationServerId2283",
scope: "oauth2scope2580",
},
},
description: "apidescription5200",
displayName: "apiname1463",
path: "newapiPath",
protocols: [
azure_native.apimanagement.Protocol.Https,
azure_native.apimanagement.Protocol.Http,
],
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://newechoapi.cloudapp.net/api",
subscriptionKeyParameterNames: {
header: "header4520",
query: "query3037",
},
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: tempgroup
authenticationSettings:
oAuth2:
authorizationServerId: authorizationServerId2283
scope: oauth2scope2580
description: apidescription5200
displayName: apiname1463
path: newapiPath
protocols:
- https
- http
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://newechoapi.cloudapp.net/api
subscriptionKeyParameterNames:
header: header4520
query: query3037
ApiManagementCreateApiClone
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "echo-api2",
Description = "Copy of Existing Echo Api including Operations.",
DisplayName = "Echo API2",
IsCurrent = true,
Path = "echo2",
Protocols = new[]
{
AzureNative.ApiManagement.Protocol.Http,
AzureNative.ApiManagement.Protocol.Https,
},
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://echoapi.cloudapp.net/api",
SourceApiId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001",
SubscriptionRequired = true,
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("echo-api2"),
Description: pulumi.String("Copy of Existing Echo Api including Operations."),
DisplayName: pulumi.String("Echo API2"),
IsCurrent: pulumi.Bool(true),
Path: pulumi.String("echo2"),
Protocols: []apimanagement.Protocol{
apimanagement.ProtocolHttp,
apimanagement.ProtocolHttps,
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://echoapi.cloudapp.net/api"),
SourceApiId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001"),
SubscriptionRequired: pulumi.Bool(true),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("echo-api2")
.description("Copy of Existing Echo Api including Operations.")
.displayName("Echo API2")
.isCurrent(true)
.path("echo2")
.protocols(
"http",
"https")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://echoapi.cloudapp.net/api")
.sourceApiId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001")
.subscriptionRequired(true)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="echo-api2",
description="Copy of Existing Echo Api including Operations.",
display_name="Echo API2",
is_current=True,
path="echo2",
protocols=[
azure_native.apimanagement.Protocol.HTTP,
azure_native.apimanagement.Protocol.HTTPS,
],
resource_group_name="rg1",
service_name="apimService1",
service_url="http://echoapi.cloudapp.net/api",
source_api_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001",
subscription_required=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "echo-api2",
description: "Copy of Existing Echo Api including Operations.",
displayName: "Echo API2",
isCurrent: true,
path: "echo2",
protocols: [
azure_native.apimanagement.Protocol.Http,
azure_native.apimanagement.Protocol.Https,
],
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://echoapi.cloudapp.net/api",
sourceApiId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001",
subscriptionRequired: true,
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: echo-api2
description: Copy of Existing Echo Api including Operations.
displayName: Echo API2
isCurrent: true
path: echo2
protocols:
- http
- https
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://echoapi.cloudapp.net/api
sourceApiId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/58a4aeac497000007d040001
subscriptionRequired: true
ApiManagementCreateApiNewVersionUsingExistingApi
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "echoapiv3",
ApiVersion = "v4",
ApiVersionSetId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458",
Description = "Create Echo API into a new Version using Existing Version Set and Copy all Operations.",
DisplayName = "Echo API2",
IsCurrent = true,
Path = "echo2",
Protocols = new[]
{
AzureNative.ApiManagement.Protocol.Http,
AzureNative.ApiManagement.Protocol.Https,
},
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://echoapi.cloudapp.net/api",
SourceApiId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath",
SubscriptionRequired = true,
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("echoapiv3"),
ApiVersion: pulumi.String("v4"),
ApiVersionSetId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458"),
Description: pulumi.String("Create Echo API into a new Version using Existing Version Set and Copy all Operations."),
DisplayName: pulumi.String("Echo API2"),
IsCurrent: pulumi.Bool(true),
Path: pulumi.String("echo2"),
Protocols: []apimanagement.Protocol{
apimanagement.ProtocolHttp,
apimanagement.ProtocolHttps,
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://echoapi.cloudapp.net/api"),
SourceApiId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath"),
SubscriptionRequired: pulumi.Bool(true),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("echoapiv3")
.apiVersion("v4")
.apiVersionSetId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458")
.description("Create Echo API into a new Version using Existing Version Set and Copy all Operations.")
.displayName("Echo API2")
.isCurrent(true)
.path("echo2")
.protocols(
"http",
"https")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://echoapi.cloudapp.net/api")
.sourceApiId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath")
.subscriptionRequired(true)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="echoapiv3",
api_version="v4",
api_version_set_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458",
description="Create Echo API into a new Version using Existing Version Set and Copy all Operations.",
display_name="Echo API2",
is_current=True,
path="echo2",
protocols=[
azure_native.apimanagement.Protocol.HTTP,
azure_native.apimanagement.Protocol.HTTPS,
],
resource_group_name="rg1",
service_name="apimService1",
service_url="http://echoapi.cloudapp.net/api",
source_api_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath",
subscription_required=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "echoapiv3",
apiVersion: "v4",
apiVersionSetId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458",
description: "Create Echo API into a new Version using Existing Version Set and Copy all Operations.",
displayName: "Echo API2",
isCurrent: true,
path: "echo2",
protocols: [
azure_native.apimanagement.Protocol.Http,
azure_native.apimanagement.Protocol.Https,
],
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://echoapi.cloudapp.net/api",
sourceApiId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath",
subscriptionRequired: true,
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: echoapiv3
apiVersion: v4
apiVersionSetId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apiVersionSets/aa9c59e6-c0cd-4258-9356-9ca7d2f0b458
description: Create Echo API into a new Version using Existing Version Set and Copy all Operations.
displayName: Echo API2
isCurrent: true
path: echo2
protocols:
- http
- https
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://echoapi.cloudapp.net/api
sourceApiId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echoPath
subscriptionRequired: true
ApiManagementCreateApiRevisionFromExistingApi
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "echo-api;rev=3",
ApiRevisionDescription = "Creating a Revision of an existing API",
Path = "echo",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://echoapi.cloudapp.net/apiv3",
SourceApiId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("echo-api;rev=3"),
ApiRevisionDescription: pulumi.String("Creating a Revision of an existing API"),
Path: pulumi.String("echo"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://echoapi.cloudapp.net/apiv3"),
SourceApiId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api"),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("echo-api;rev=3")
.apiRevisionDescription("Creating a Revision of an existing API")
.path("echo")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://echoapi.cloudapp.net/apiv3")
.sourceApiId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="echo-api;rev=3",
api_revision_description="Creating a Revision of an existing API",
path="echo",
resource_group_name="rg1",
service_name="apimService1",
service_url="http://echoapi.cloudapp.net/apiv3",
source_api_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "echo-api;rev=3",
apiRevisionDescription: "Creating a Revision of an existing API",
path: "echo",
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://echoapi.cloudapp.net/apiv3",
sourceApiId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api",
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: echo-api;rev=3
apiRevisionDescription: Creating a Revision of an existing API
path: echo
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://echoapi.cloudapp.net/apiv3
sourceApiId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api
ApiManagementCreateApiUsingImportOverrideServiceUrl
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "apidocs",
Format = "swagger-link",
Path = "petstoreapi123",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://petstore.swagger.wordnik.com/api",
Value = "http://apimpimportviaurl.azurewebsites.net/api/apidocs/",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("apidocs"),
Format: pulumi.String("swagger-link"),
Path: pulumi.String("petstoreapi123"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://petstore.swagger.wordnik.com/api"),
Value: pulumi.String("http://apimpimportviaurl.azurewebsites.net/api/apidocs/"),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("apidocs")
.format("swagger-link")
.path("petstoreapi123")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://petstore.swagger.wordnik.com/api")
.value("http://apimpimportviaurl.azurewebsites.net/api/apidocs/")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="apidocs",
format="swagger-link",
path="petstoreapi123",
resource_group_name="rg1",
service_name="apimService1",
service_url="http://petstore.swagger.wordnik.com/api",
value="http://apimpimportviaurl.azurewebsites.net/api/apidocs/")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "apidocs",
format: "swagger-link",
path: "petstoreapi123",
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://petstore.swagger.wordnik.com/api",
value: "http://apimpimportviaurl.azurewebsites.net/api/apidocs/",
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: apidocs
format: swagger-link
path: petstoreapi123
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://petstore.swagger.wordnik.com/api
value: http://apimpimportviaurl.azurewebsites.net/api/apidocs/
ApiManagementCreateApiUsingOai3Import
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "petstore",
Format = "openapi-link",
Path = "petstore",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Value = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("petstore"),
Format: pulumi.String("openapi-link"),
Path: pulumi.String("petstore"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
Value: pulumi.String("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml"),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("petstore")
.format("openapi-link")
.path("petstore")
.resourceGroupName("rg1")
.serviceName("apimService1")
.value("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="petstore",
format="openapi-link",
path="petstore",
resource_group_name="rg1",
service_name="apimService1",
value="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "petstore",
format: "openapi-link",
path: "petstore",
resourceGroupName: "rg1",
serviceName: "apimService1",
value: "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml",
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: petstore
format: openapi-link
path: petstore
resourceGroupName: rg1
serviceName: apimService1
value: https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
ApiManagementCreateApiUsingSwaggerImport
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "petstore",
Format = "swagger-link-json",
Path = "petstore",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Value = "http://petstore.swagger.io/v2/swagger.json",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("petstore"),
Format: pulumi.String("swagger-link-json"),
Path: pulumi.String("petstore"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
Value: pulumi.String("http://petstore.swagger.io/v2/swagger.json"),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("petstore")
.format("swagger-link-json")
.path("petstore")
.resourceGroupName("rg1")
.serviceName("apimService1")
.value("http://petstore.swagger.io/v2/swagger.json")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="petstore",
format="swagger-link-json",
path="petstore",
resource_group_name="rg1",
service_name="apimService1",
value="http://petstore.swagger.io/v2/swagger.json")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "petstore",
format: "swagger-link-json",
path: "petstore",
resourceGroupName: "rg1",
serviceName: "apimService1",
value: "http://petstore.swagger.io/v2/swagger.json",
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: petstore
format: swagger-link-json
path: petstore
resourceGroupName: rg1
serviceName: apimService1
value: http://petstore.swagger.io/v2/swagger.json
ApiManagementCreateApiUsingWadlImport
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "petstore",
Format = "wadl-link-json",
Path = "collector",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Value = "https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("petstore"),
Format: pulumi.String("wadl-link-json"),
Path: pulumi.String("collector"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
Value: pulumi.String("https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl"),
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("petstore")
.format("wadl-link-json")
.path("collector")
.resourceGroupName("rg1")
.serviceName("apimService1")
.value("https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="petstore",
format="wadl-link-json",
path="collector",
resource_group_name="rg1",
service_name="apimService1",
value="https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "petstore",
format: "wadl-link-json",
path: "collector",
resourceGroupName: "rg1",
serviceName: "apimService1",
value: "https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl",
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: petstore
format: wadl-link-json
path: collector
resourceGroupName: rg1
serviceName: apimService1
value: https://developer.cisco.com/media/wae-release-6-2-api-reference/wae-collector-rest-api/application.wadl
ApiManagementCreateApiWithOpenIdConnect
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "tempgroup",
AuthenticationSettings = new AzureNative.ApiManagement.Inputs.AuthenticationSettingsContractArgs
{
Openid = new AzureNative.ApiManagement.Inputs.OpenIdAuthenticationSettingsContractArgs
{
BearerTokenSendingMethods = new[]
{
"authorizationHeader",
},
OpenidProviderId = "testopenid",
},
},
Description = "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
DisplayName = "Swagger Petstore",
Path = "petstore",
Protocols = new[]
{
AzureNative.ApiManagement.Protocol.Https,
},
ResourceGroupName = "rg1",
ServiceName = "apimService1",
ServiceUrl = "http://petstore.swagger.io/v2",
SubscriptionKeyParameterNames = new AzureNative.ApiManagement.Inputs.SubscriptionKeyParameterNamesContractArgs
{
Header = "Ocp-Apim-Subscription-Key",
Query = "subscription-key",
},
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("tempgroup"),
AuthenticationSettings: apimanagement.AuthenticationSettingsContractResponse{
Openid: &apimanagement.OpenIdAuthenticationSettingsContractArgs{
BearerTokenSendingMethods: pulumi.StringArray{
pulumi.String("authorizationHeader"),
},
OpenidProviderId: pulumi.String("testopenid"),
},
},
Description: pulumi.String("This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."),
DisplayName: pulumi.String("Swagger Petstore"),
Path: pulumi.String("petstore"),
Protocols: []apimanagement.Protocol{
apimanagement.ProtocolHttps,
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
ServiceUrl: pulumi.String("http://petstore.swagger.io/v2"),
SubscriptionKeyParameterNames: &apimanagement.SubscriptionKeyParameterNamesContractArgs{
Header: pulumi.String("Ocp-Apim-Subscription-Key"),
Query: pulumi.String("subscription-key"),
},
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("tempgroup")
.authenticationSettings(Map.of("openid", Map.ofEntries(
Map.entry("bearerTokenSendingMethods", "authorizationHeader"),
Map.entry("openidProviderId", "testopenid")
)))
.description("This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.")
.displayName("Swagger Petstore")
.path("petstore")
.protocols("https")
.resourceGroupName("rg1")
.serviceName("apimService1")
.serviceUrl("http://petstore.swagger.io/v2")
.subscriptionKeyParameterNames(Map.ofEntries(
Map.entry("header", "Ocp-Apim-Subscription-Key"),
Map.entry("query", "subscription-key")
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="tempgroup",
authentication_settings=azure_native.apimanagement.AuthenticationSettingsContractResponseArgs(
openid=azure_native.apimanagement.OpenIdAuthenticationSettingsContractArgs(
bearer_token_sending_methods=["authorizationHeader"],
openid_provider_id="testopenid",
),
),
description="This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
display_name="Swagger Petstore",
path="petstore",
protocols=[azure_native.apimanagement.Protocol.HTTPS],
resource_group_name="rg1",
service_name="apimService1",
service_url="http://petstore.swagger.io/v2",
subscription_key_parameter_names=azure_native.apimanagement.SubscriptionKeyParameterNamesContractArgs(
header="Ocp-Apim-Subscription-Key",
query="subscription-key",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "tempgroup",
authenticationSettings: {
openid: {
bearerTokenSendingMethods: ["authorizationHeader"],
openidProviderId: "testopenid",
},
},
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
displayName: "Swagger Petstore",
path: "petstore",
protocols: [azure_native.apimanagement.Protocol.Https],
resourceGroupName: "rg1",
serviceName: "apimService1",
serviceUrl: "http://petstore.swagger.io/v2",
subscriptionKeyParameterNames: {
header: "Ocp-Apim-Subscription-Key",
query: "subscription-key",
},
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: tempgroup
authenticationSettings:
openid:
bearerTokenSendingMethods:
- authorizationHeader
openidProviderId: testopenid
description: 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.'
displayName: Swagger Petstore
path: petstore
protocols:
- https
resourceGroupName: rg1
serviceName: apimService1
serviceUrl: http://petstore.swagger.io/v2
subscriptionKeyParameterNames:
header: Ocp-Apim-Subscription-Key
query: subscription-key
ApiManagementCreateSoapPassThroughApiUsingWsdlImport
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "soapApi",
Format = "wsdl-link",
Path = "currency",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
SoapApiType = "soap",
Value = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
WsdlSelector = new AzureNative.ApiManagement.Inputs.ApiCreateOrUpdatePropertiesWsdlSelectorArgs
{
WsdlEndpointName = "CurrencyConvertorSoap",
WsdlServiceName = "CurrencyConvertor",
},
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("soapApi"),
Format: pulumi.String("wsdl-link"),
Path: pulumi.String("currency"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
SoapApiType: pulumi.String("soap"),
Value: pulumi.String("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"),
WsdlSelector: &apimanagement.ApiCreateOrUpdatePropertiesWsdlSelectorArgs{
WsdlEndpointName: pulumi.String("CurrencyConvertorSoap"),
WsdlServiceName: pulumi.String("CurrencyConvertor"),
},
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("soapApi")
.format("wsdl-link")
.path("currency")
.resourceGroupName("rg1")
.serviceName("apimService1")
.soapApiType("soap")
.value("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL")
.wsdlSelector(Map.ofEntries(
Map.entry("wsdlEndpointName", "CurrencyConvertorSoap"),
Map.entry("wsdlServiceName", "CurrencyConvertor")
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="soapApi",
format="wsdl-link",
path="currency",
resource_group_name="rg1",
service_name="apimService1",
soap_api_type="soap",
value="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
wsdl_selector=azure_native.apimanagement.ApiCreateOrUpdatePropertiesWsdlSelectorArgs(
wsdl_endpoint_name="CurrencyConvertorSoap",
wsdl_service_name="CurrencyConvertor",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "soapApi",
format: "wsdl-link",
path: "currency",
resourceGroupName: "rg1",
serviceName: "apimService1",
soapApiType: "soap",
value: "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
wsdlSelector: {
wsdlEndpointName: "CurrencyConvertorSoap",
wsdlServiceName: "CurrencyConvertor",
},
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: soapApi
format: wsdl-link
path: currency
resourceGroupName: rg1
serviceName: apimService1
soapApiType: soap
value: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
wsdlSelector:
wsdlEndpointName: CurrencyConvertorSoap
wsdlServiceName: CurrencyConvertor
ApiManagementCreateSoapToRestApiUsingWsdlImport
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var api = new AzureNative.ApiManagement.Api("api", new()
{
ApiId = "soapApi",
Format = "wsdl-link",
Path = "currency",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Value = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
WsdlSelector = new AzureNative.ApiManagement.Inputs.ApiCreateOrUpdatePropertiesWsdlSelectorArgs
{
WsdlEndpointName = "CurrencyConvertorSoap",
WsdlServiceName = "CurrencyConvertor",
},
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewApi(ctx, "api", &apimanagement.ApiArgs{
ApiId: pulumi.String("soapApi"),
Format: pulumi.String("wsdl-link"),
Path: pulumi.String("currency"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
Value: pulumi.String("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"),
WsdlSelector: &apimanagement.ApiCreateOrUpdatePropertiesWsdlSelectorArgs{
WsdlEndpointName: pulumi.String("CurrencyConvertorSoap"),
WsdlServiceName: pulumi.String("CurrencyConvertor"),
},
})
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.Api;
import com.pulumi.azurenative.apimanagement.ApiArgs;
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 api = new Api("api", ApiArgs.builder()
.apiId("soapApi")
.format("wsdl-link")
.path("currency")
.resourceGroupName("rg1")
.serviceName("apimService1")
.value("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL")
.wsdlSelector(Map.ofEntries(
Map.entry("wsdlEndpointName", "CurrencyConvertorSoap"),
Map.entry("wsdlServiceName", "CurrencyConvertor")
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api = azure_native.apimanagement.Api("api",
api_id="soapApi",
format="wsdl-link",
path="currency",
resource_group_name="rg1",
service_name="apimService1",
value="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
wsdl_selector=azure_native.apimanagement.ApiCreateOrUpdatePropertiesWsdlSelectorArgs(
wsdl_endpoint_name="CurrencyConvertorSoap",
wsdl_service_name="CurrencyConvertor",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const api = new azure_native.apimanagement.Api("api", {
apiId: "soapApi",
format: "wsdl-link",
path: "currency",
resourceGroupName: "rg1",
serviceName: "apimService1",
value: "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
wsdlSelector: {
wsdlEndpointName: "CurrencyConvertorSoap",
wsdlServiceName: "CurrencyConvertor",
},
});
resources:
api:
type: azure-native:apimanagement:Api
properties:
apiId: soapApi
format: wsdl-link
path: currency
resourceGroupName: rg1
serviceName: apimService1
value: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
wsdlSelector:
wsdlEndpointName: CurrencyConvertorSoap
wsdlServiceName: CurrencyConvertor
Create Api Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Api(name: string, args: ApiArgs, opts?: CustomResourceOptions);
@overload
def Api(resource_name: str,
args: ApiArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Api(resource_name: str,
opts: Optional[ResourceOptions] = None,
path: Optional[str] = None,
service_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
is_current: Optional[bool] = None,
protocols: Optional[Sequence[Protocol]] = None,
api_version_description: Optional[str] = None,
api_version_set: Optional[ApiVersionSetContractDetailsArgs] = None,
api_version_set_id: Optional[str] = None,
authentication_settings: Optional[AuthenticationSettingsContractArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
format: Optional[Union[str, ContentFormat]] = None,
api_id: Optional[str] = None,
api_type: Optional[Union[str, ApiType]] = None,
api_version: Optional[str] = None,
api_revision_description: Optional[str] = None,
api_revision: Optional[str] = None,
service_url: Optional[str] = None,
soap_api_type: Optional[Union[str, SoapApiType]] = None,
source_api_id: Optional[str] = None,
subscription_key_parameter_names: Optional[SubscriptionKeyParameterNamesContractArgs] = None,
subscription_required: Optional[bool] = None,
value: Optional[str] = None,
wsdl_selector: Optional[ApiCreateOrUpdatePropertiesWsdlSelectorArgs] = None)
func NewApi(ctx *Context, name string, args ApiArgs, opts ...ResourceOption) (*Api, error)
public Api(string name, ApiArgs args, CustomResourceOptions? opts = null)
type: azure-native:apimanagement:Api
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 ApiArgs
- 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 ApiArgs
- 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 ApiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiArgs
- 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 apiResource = new AzureNative.Apimanagement.Api("apiResource", new()
{
Path = "string",
ServiceName = "string",
ResourceGroupName = "string",
IsCurrent = false,
Protocols = new[]
{
"http",
},
ApiVersionDescription = "string",
ApiVersionSet =
{
{ "description", "string" },
{ "id", "string" },
{ "name", "string" },
{ "versionHeaderName", "string" },
{ "versionQueryName", "string" },
{ "versioningScheme", "string" },
},
ApiVersionSetId = "string",
AuthenticationSettings =
{
{ "oAuth2",
{
{ "authorizationServerId", "string" },
{ "scope", "string" },
} },
{ "openid",
{
{ "bearerTokenSendingMethods", new[]
{
"string",
} },
{ "openidProviderId", "string" },
} },
},
Description = "string",
DisplayName = "string",
Format = "string",
ApiId = "string",
ApiType = "string",
ApiVersion = "string",
ApiRevisionDescription = "string",
ApiRevision = "string",
ServiceUrl = "string",
SoapApiType = "string",
SourceApiId = "string",
SubscriptionKeyParameterNames =
{
{ "header", "string" },
{ "query", "string" },
},
SubscriptionRequired = false,
Value = "string",
WsdlSelector =
{
{ "wsdlEndpointName", "string" },
{ "wsdlServiceName", "string" },
},
});
example, err := apimanagement.NewApi(ctx, "apiResource", &apimanagement.ApiArgs{
Path: "string",
ServiceName: "string",
ResourceGroupName: "string",
IsCurrent: false,
Protocols: []string{
"http",
},
ApiVersionDescription: "string",
ApiVersionSet: map[string]interface{}{
"description": "string",
"id": "string",
"name": "string",
"versionHeaderName": "string",
"versionQueryName": "string",
"versioningScheme": "string",
},
ApiVersionSetId: "string",
AuthenticationSettings: map[string]interface{}{
"oAuth2": map[string]interface{}{
"authorizationServerId": "string",
"scope": "string",
},
"openid": map[string]interface{}{
"bearerTokenSendingMethods": []string{
"string",
},
"openidProviderId": "string",
},
},
Description: "string",
DisplayName: "string",
Format: "string",
ApiId: "string",
ApiType: "string",
ApiVersion: "string",
ApiRevisionDescription: "string",
ApiRevision: "string",
ServiceUrl: "string",
SoapApiType: "string",
SourceApiId: "string",
SubscriptionKeyParameterNames: map[string]interface{}{
"header": "string",
"query": "string",
},
SubscriptionRequired: false,
Value: "string",
WsdlSelector: map[string]interface{}{
"wsdlEndpointName": "string",
"wsdlServiceName": "string",
},
})
var apiResource = new Api("apiResource", ApiArgs.builder()
.path("string")
.serviceName("string")
.resourceGroupName("string")
.isCurrent(false)
.protocols("http")
.apiVersionDescription("string")
.apiVersionSet(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.apiVersionSetId("string")
.authenticationSettings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.description("string")
.displayName("string")
.format("string")
.apiId("string")
.apiType("string")
.apiVersion("string")
.apiRevisionDescription("string")
.apiRevision("string")
.serviceUrl("string")
.soapApiType("string")
.sourceApiId("string")
.subscriptionKeyParameterNames(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.subscriptionRequired(false)
.value("string")
.wsdlSelector(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
api_resource = azure_native.apimanagement.Api("apiResource",
path=string,
service_name=string,
resource_group_name=string,
is_current=False,
protocols=[http],
api_version_description=string,
api_version_set={
description: string,
id: string,
name: string,
versionHeaderName: string,
versionQueryName: string,
versioningScheme: string,
},
api_version_set_id=string,
authentication_settings={
oAuth2: {
authorizationServerId: string,
scope: string,
},
openid: {
bearerTokenSendingMethods: [string],
openidProviderId: string,
},
},
description=string,
display_name=string,
format=string,
api_id=string,
api_type=string,
api_version=string,
api_revision_description=string,
api_revision=string,
service_url=string,
soap_api_type=string,
source_api_id=string,
subscription_key_parameter_names={
header: string,
query: string,
},
subscription_required=False,
value=string,
wsdl_selector={
wsdlEndpointName: string,
wsdlServiceName: string,
})
const apiResource = new azure_native.apimanagement.Api("apiResource", {
path: "string",
serviceName: "string",
resourceGroupName: "string",
isCurrent: false,
protocols: ["http"],
apiVersionDescription: "string",
apiVersionSet: {
description: "string",
id: "string",
name: "string",
versionHeaderName: "string",
versionQueryName: "string",
versioningScheme: "string",
},
apiVersionSetId: "string",
authenticationSettings: {
oAuth2: {
authorizationServerId: "string",
scope: "string",
},
openid: {
bearerTokenSendingMethods: ["string"],
openidProviderId: "string",
},
},
description: "string",
displayName: "string",
format: "string",
apiId: "string",
apiType: "string",
apiVersion: "string",
apiRevisionDescription: "string",
apiRevision: "string",
serviceUrl: "string",
soapApiType: "string",
sourceApiId: "string",
subscriptionKeyParameterNames: {
header: "string",
query: "string",
},
subscriptionRequired: false,
value: "string",
wsdlSelector: {
wsdlEndpointName: "string",
wsdlServiceName: "string",
},
});
type: azure-native:apimanagement:Api
properties:
apiId: string
apiRevision: string
apiRevisionDescription: string
apiType: string
apiVersion: string
apiVersionDescription: string
apiVersionSet:
description: string
id: string
name: string
versionHeaderName: string
versionQueryName: string
versioningScheme: string
apiVersionSetId: string
authenticationSettings:
oAuth2:
authorizationServerId: string
scope: string
openid:
bearerTokenSendingMethods:
- string
openidProviderId: string
description: string
displayName: string
format: string
isCurrent: false
path: string
protocols:
- http
resourceGroupName: string
serviceName: string
serviceUrl: string
soapApiType: string
sourceApiId: string
subscriptionKeyParameterNames:
header: string
query: string
subscriptionRequired: false
value: string
wsdlSelector:
wsdlEndpointName: string
wsdlServiceName: string
Api Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Api resource accepts the following input properties:
- Path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- Api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- Api
Revision stringDescription - Description of the Api Revision.
- Api
Type string | Pulumi.Azure Native. Api Management. Api Type - Type of API.
- Api
Version string - Indicates the Version identifier of the API if the API is versioned
- Api
Version stringDescription - Description of the Api Version.
- Api
Version Pulumi.Set Azure Native. Api Management. Inputs. Api Version Set Contract Details - Version set details
- Api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- Authentication
Settings Pulumi.Azure Native. Api Management. Inputs. Authentication Settings Contract - Collection of authentication settings included into this API.
- Description string
- Description of the API. May include HTML formatting tags.
- Display
Name string - API name. Must be 1 to 300 characters long.
- Format
string | Pulumi.
Azure Native. Api Management. Content Format - Format of the Content in which the API is getting imported.
- Is
Current bool - Indicates if API revision is current api revision.
- Protocols
List<Pulumi.
Azure Native. Api Management. Protocol> - Describes on which protocols the operations in this API can be invoked.
- Service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- Soap
Api string | Pulumi.Type Azure Native. Api Management. Soap Api Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- Source
Api stringId - API identifier of the source API.
- Subscription
Key Pulumi.Parameter Names Azure Native. Api Management. Inputs. Subscription Key Parameter Names Contract - Protocols over which API is made available.
- Subscription
Required bool - Specifies whether an API or Product subscription is required for accessing the API.
- Value string
- Content value when Importing an API.
- Wsdl
Selector Pulumi.Azure Native. Api Management. Inputs. Api Create Or Update Properties Wsdl Selector - Criteria to limit import of WSDL to a subset of the document.
- Path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- Api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- Api
Revision stringDescription - Description of the Api Revision.
- Api
Type string | ApiType - Type of API.
- Api
Version string - Indicates the Version identifier of the API if the API is versioned
- Api
Version stringDescription - Description of the Api Version.
- Api
Version ApiSet Version Set Contract Details Args - Version set details
- Api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- Authentication
Settings AuthenticationSettings Contract Args - Collection of authentication settings included into this API.
- Description string
- Description of the API. May include HTML formatting tags.
- Display
Name string - API name. Must be 1 to 300 characters long.
- Format
string | Content
Format - Format of the Content in which the API is getting imported.
- Is
Current bool - Indicates if API revision is current api revision.
- Protocols []Protocol
- Describes on which protocols the operations in this API can be invoked.
- Service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- Soap
Api string | SoapType Api Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- Source
Api stringId - API identifier of the source API.
- Subscription
Key SubscriptionParameter Names Key Parameter Names Contract Args - Protocols over which API is made available.
- Subscription
Required bool - Specifies whether an API or Product subscription is required for accessing the API.
- Value string
- Content value when Importing an API.
- Wsdl
Selector ApiCreate Or Update Properties Wsdl Selector Args - Criteria to limit import of WSDL to a subset of the document.
- path String
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- api
Id String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- api
Revision String - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision StringDescription - Description of the Api Revision.
- api
Type String | ApiType - Type of API.
- api
Version String - Indicates the Version identifier of the API if the API is versioned
- api
Version StringDescription - Description of the Api Version.
- api
Version ApiSet Version Set Contract Details - Version set details
- api
Version StringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings AuthenticationSettings Contract - Collection of authentication settings included into this API.
- description String
- Description of the API. May include HTML formatting tags.
- display
Name String - API name. Must be 1 to 300 characters long.
- format
String | Content
Format - Format of the Content in which the API is getting imported.
- is
Current Boolean - Indicates if API revision is current api revision.
- protocols List<Protocol>
- Describes on which protocols the operations in this API can be invoked.
- service
Url String - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- soap
Api String | SoapType Api Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- source
Api StringId - API identifier of the source API.
- subscription
Key SubscriptionParameter Names Key Parameter Names Contract - Protocols over which API is made available.
- subscription
Required Boolean - Specifies whether an API or Product subscription is required for accessing the API.
- value String
- Content value when Importing an API.
- wsdl
Selector ApiCreate Or Update Properties Wsdl Selector - Criteria to limit import of WSDL to a subset of the document.
- path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- resource
Group stringName - The name of the resource group.
- service
Name string - The name of the API Management service.
- api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision stringDescription - Description of the Api Revision.
- api
Type string | ApiType - Type of API.
- api
Version string - Indicates the Version identifier of the API if the API is versioned
- api
Version stringDescription - Description of the Api Version.
- api
Version ApiSet Version Set Contract Details - Version set details
- api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings AuthenticationSettings Contract - Collection of authentication settings included into this API.
- description string
- Description of the API. May include HTML formatting tags.
- display
Name string - API name. Must be 1 to 300 characters long.
- format
string | Content
Format - Format of the Content in which the API is getting imported.
- is
Current boolean - Indicates if API revision is current api revision.
- protocols Protocol[]
- Describes on which protocols the operations in this API can be invoked.
- service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- soap
Api string | SoapType Api Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- source
Api stringId - API identifier of the source API.
- subscription
Key SubscriptionParameter Names Key Parameter Names Contract - Protocols over which API is made available.
- subscription
Required boolean - Specifies whether an API or Product subscription is required for accessing the API.
- value string
- Content value when Importing an API.
- wsdl
Selector ApiCreate Or Update Properties Wsdl Selector - Criteria to limit import of WSDL to a subset of the document.
- path str
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- resource_
group_ strname - The name of the resource group.
- service_
name str - The name of the API Management service.
- api_
id str - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- api_
revision str - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api_
revision_ strdescription - Description of the Api Revision.
- api_
type str | ApiType - Type of API.
- api_
version str - Indicates the Version identifier of the API if the API is versioned
- api_
version_ strdescription - Description of the Api Version.
- api_
version_ Apiset Version Set Contract Details Args - Version set details
- api_
version_ strset_ id - A resource identifier for the related ApiVersionSet.
- authentication_
settings AuthenticationSettings Contract Args - Collection of authentication settings included into this API.
- description str
- Description of the API. May include HTML formatting tags.
- display_
name str - API name. Must be 1 to 300 characters long.
- format
str | Content
Format - Format of the Content in which the API is getting imported.
- is_
current bool - Indicates if API revision is current api revision.
- protocols Sequence[Protocol]
- Describes on which protocols the operations in this API can be invoked.
- service_
url str - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- soap_
api_ str | Soaptype Api Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- source_
api_ strid - API identifier of the source API.
- subscription_
key_ Subscriptionparameter_ names Key Parameter Names Contract Args - Protocols over which API is made available.
- subscription_
required bool - Specifies whether an API or Product subscription is required for accessing the API.
- value str
- Content value when Importing an API.
- wsdl_
selector ApiCreate Or Update Properties Wsdl Selector Args - Criteria to limit import of WSDL to a subset of the document.
- path String
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- api
Id String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- api
Revision String - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision StringDescription - Description of the Api Revision.
- api
Type String | "http" | "soap" - Type of API.
- api
Version String - Indicates the Version identifier of the API if the API is versioned
- api
Version StringDescription - Description of the Api Version.
- api
Version Property MapSet - Version set details
- api
Version StringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings Property Map - Collection of authentication settings included into this API.
- description String
- Description of the API. May include HTML formatting tags.
- display
Name String - API name. Must be 1 to 300 characters long.
- format String | "wadl-xml" | "wadl-link-json" | "swagger-json" | "swagger-link-json" | "wsdl" | "wsdl-link" | "openapi" | "openapi+json" | "openapi-link" | "openapi+json-link"
- Format of the Content in which the API is getting imported.
- is
Current Boolean - Indicates if API revision is current api revision.
- protocols List<"http" | "https">
- Describes on which protocols the operations in this API can be invoked.
- service
Url String - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- soap
Api String | "http" | "soap"Type - Type of Api to create.
http
creates a SOAP to REST APIsoap
creates a SOAP pass-through API .
- source
Api StringId - API identifier of the source API.
- subscription
Key Property MapParameter Names - Protocols over which API is made available.
- subscription
Required Boolean - Specifies whether an API or Product subscription is required for accessing the API.
- value String
- Content value when Importing an API.
- wsdl
Selector Property Map - Criteria to limit import of WSDL to a subset of the document.
Outputs
All input properties are implicitly available as output properties. Additionally, the Api resource produces the following output properties:
Supporting Types
ApiCreateOrUpdatePropertiesWsdlSelector, ApiCreateOrUpdatePropertiesWsdlSelectorArgs
- Wsdl
Endpoint stringName - Name of endpoint(port) to import from WSDL
- Wsdl
Service stringName - Name of service to import from WSDL
- Wsdl
Endpoint stringName - Name of endpoint(port) to import from WSDL
- Wsdl
Service stringName - Name of service to import from WSDL
- wsdl
Endpoint StringName - Name of endpoint(port) to import from WSDL
- wsdl
Service StringName - Name of service to import from WSDL
- wsdl
Endpoint stringName - Name of endpoint(port) to import from WSDL
- wsdl
Service stringName - Name of service to import from WSDL
- wsdl_
endpoint_ strname - Name of endpoint(port) to import from WSDL
- wsdl_
service_ strname - Name of service to import from WSDL
- wsdl
Endpoint StringName - Name of endpoint(port) to import from WSDL
- wsdl
Service StringName - Name of service to import from WSDL
ApiType, ApiTypeArgs
- Http
- http
- Soap
- soap
- Api
Type Http - http
- Api
Type Soap - soap
- Http
- http
- Soap
- soap
- Http
- http
- Soap
- soap
- HTTP
- http
- SOAP
- soap
- "http"
- http
- "soap"
- soap
ApiVersionSetContractDetails, ApiVersionSetContractDetailsArgs
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
- description string
- Description of API Version Set.
- id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name string
- The display Name of the API Version Set.
- version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description str
- Description of API Version Set.
- id str
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name str
- The display Name of the API Version Set.
- version_
header_ strname - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version_
query_ strname - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning_
scheme str - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
ApiVersionSetContractDetailsResponse, ApiVersionSetContractDetailsResponseArgs
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
- description string
- Description of API Version Set.
- id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name string
- The display Name of the API Version Set.
- version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description str
- Description of API Version Set.
- id str
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name str
- The display Name of the API Version Set.
- version_
header_ strname - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version_
query_ strname - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning_
scheme str - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
AuthenticationSettingsContract, AuthenticationSettingsContractArgs
- OAuth2
Pulumi.
Azure Native. Api Management. Inputs. OAuth2Authentication Settings Contract - OAuth2 Authentication settings
- Openid
Pulumi.
Azure Native. Api Management. Inputs. Open Id Authentication Settings Contract - OpenID Connect Authentication Settings
- OAuth2
OAuth2Authentication
Settings Contract - OAuth2 Authentication settings
- Openid
Open
Id Authentication Settings Contract - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract - OpenID Connect Authentication Settings
- o_
auth2 OAuth2AuthenticationSettings Contract - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract - OpenID Connect Authentication Settings
- o
Auth2 Property Map - OAuth2 Authentication settings
- openid Property Map
- OpenID Connect Authentication Settings
AuthenticationSettingsContractResponse, AuthenticationSettingsContractResponseArgs
- OAuth2
Pulumi.
Azure Native. Api Management. Inputs. OAuth2Authentication Settings Contract Response - OAuth2 Authentication settings
- Openid
Pulumi.
Azure Native. Api Management. Inputs. Open Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- OAuth2
OAuth2Authentication
Settings Contract Response - OAuth2 Authentication settings
- Openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o_
auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 Property Map - OAuth2 Authentication settings
- openid Property Map
- OpenID Connect Authentication Settings
BearerTokenSendingMethods, BearerTokenSendingMethodsArgs
- Authorization
Header - authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- Query
- queryAccess token will be transmitted as query parameters.
- Bearer
Token Sending Methods Authorization Header - authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- Bearer
Token Sending Methods Query - queryAccess token will be transmitted as query parameters.
- Authorization
Header - authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- Query
- queryAccess token will be transmitted as query parameters.
- Authorization
Header - authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- Query
- queryAccess token will be transmitted as query parameters.
- AUTHORIZATION_HEADER
- authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- QUERY
- queryAccess token will be transmitted as query parameters.
- "authorization
Header" - authorizationHeaderAccess token will be transmitted in the Authorization header using Bearer schema
- "query"
- queryAccess token will be transmitted as query parameters.
ContentFormat, ContentFormatArgs
- Wadl_
xml - wadl-xmlThe contents are inline and Content type is a WADL document.
- Wadl_
link_ json - wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- Swagger_
json - swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- Swagger_
link_ json - swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- Wsdl
- wsdlThe contents are inline and the document is a WSDL/Soap document.
- Wsdl_
link - wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- Openapi
- openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- Openapi_
json - openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- Openapi_
link - openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- Openapi_
json_ link - openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
- Content
Format_Wadl_Xml - wadl-xmlThe contents are inline and Content type is a WADL document.
- Content
Format_Wadl_Link_Json - wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- Content
Format_Swagger_Json - swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- Content
Format_Swagger_Link_Json - swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- Content
Format Wsdl - wsdlThe contents are inline and the document is a WSDL/Soap document.
- Content
Format_Wsdl_Link - wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- Content
Format Openapi - openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- Content
Format_Openapi_ json - openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- Content
Format_Openapi_Link - openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- Content
Format_Openapi_ json_Link - openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
- Wadlxml
- wadl-xmlThe contents are inline and Content type is a WADL document.
- Wadllinkjson
- wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- Swaggerjson
- swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- Swaggerlinkjson
- swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- Wsdl
- wsdlThe contents are inline and the document is a WSDL/Soap document.
- Wsdllink
- wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- Openapi
- openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- Openapi_
json - openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- Openapilink
- openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- Openapi_
jsonlink - openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
- Wadl_
xml - wadl-xmlThe contents are inline and Content type is a WADL document.
- Wadl_
link_ json - wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- Swagger_
json - swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- Swagger_
link_ json - swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- Wsdl
- wsdlThe contents are inline and the document is a WSDL/Soap document.
- Wsdl_
link - wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- Openapi
- openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- Openapi_
json - openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- Openapi_
link - openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- Openapi_
json_ link - openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
- WADL_XML
- wadl-xmlThe contents are inline and Content type is a WADL document.
- WADL_LINK_JSON
- wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- SWAGGER_JSON
- swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- SWAGGER_LINK_JSON
- swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- WSDL
- wsdlThe contents are inline and the document is a WSDL/Soap document.
- WSDL_LINK
- wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- OPENAPI
- openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- OPENAPI_JSON
- openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- OPENAPI_LINK
- openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- OPENAPI_JSON_LINK
- openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
- "wadl-xml"
- wadl-xmlThe contents are inline and Content type is a WADL document.
- "wadl-link-json"
- wadl-link-jsonThe WADL document is hosted on a publicly accessible internet address.
- "swagger-json"
- swagger-jsonThe contents are inline and Content Type is a OpenAPI 2.0 JSON Document.
- "swagger-link-json"
- swagger-link-jsonThe OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address.
- "wsdl"
- wsdlThe contents are inline and the document is a WSDL/Soap document.
- "wsdl-link"
- wsdl-linkThe WSDL document is hosted on a publicly accessible internet address.
- "openapi"
- openapiThe contents are inline and Content Type is a OpenAPI 3.0 YAML Document.
- "openapi+json"
- openapi+jsonThe contents are inline and Content Type is a OpenAPI 3.0 JSON Document.
- "openapi-link"
- openapi-linkThe OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address.
- "openapi+json-link"
- openapi+json-linkThe OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address.
OAuth2AuthenticationSettingsContract, OAuth2AuthenticationSettingsContractArgs
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
- string
- OAuth authorization server identifier.
- scope string
- operations scope.
- str
- OAuth authorization server identifier.
- scope str
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
OAuth2AuthenticationSettingsContractResponse, OAuth2AuthenticationSettingsContractResponseArgs
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
- string
- OAuth authorization server identifier.
- scope string
- operations scope.
- str
- OAuth authorization server identifier.
- scope str
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
OpenIdAuthenticationSettingsContract, OpenIdAuthenticationSettingsContractArgs
- Bearer
Token List<Union<string, Pulumi.Sending Methods Azure Native. Api Management. Bearer Token Sending Methods>> - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- Bearer
Token []stringSending Methods - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- bearer
Token List<Either<String,BearerSending Methods Token Sending Methods>> - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
- bearer
Token (string | BearerSending Methods Token Sending Methods)[] - How to send token to the server.
- openid
Provider stringId - OAuth authorization server identifier.
- bearer_
token_ Sequence[Union[str, Bearersending_ methods Token Sending Methods]] - How to send token to the server.
- openid_
provider_ strid - OAuth authorization server identifier.
- bearer
Token List<String | "authorizationSending Methods Header" | "query"> - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
OpenIdAuthenticationSettingsContractResponse, OpenIdAuthenticationSettingsContractResponseArgs
- Bearer
Token List<string>Sending Methods - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- Bearer
Token []stringSending Methods - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- bearer
Token List<String>Sending Methods - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
- bearer
Token string[]Sending Methods - How to send token to the server.
- openid
Provider stringId - OAuth authorization server identifier.
- bearer_
token_ Sequence[str]sending_ methods - How to send token to the server.
- openid_
provider_ strid - OAuth authorization server identifier.
- bearer
Token List<String>Sending Methods - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
Protocol, ProtocolArgs
- Http
- http
- Https
- https
- Protocol
Http - http
- Protocol
Https - https
- Http
- http
- Https
- https
- Http
- http
- Https
- https
- HTTP
- http
- HTTPS
- https
- "http"
- http
- "https"
- https
SoapApiType, SoapApiTypeArgs
- Soap
To Rest - httpImports a SOAP API having a RESTful front end.
- Soap
Pass Through - soapImports the Soap API having a SOAP front end.
- Soap
Api Type Soap To Rest - httpImports a SOAP API having a RESTful front end.
- Soap
Api Type Soap Pass Through - soapImports the Soap API having a SOAP front end.
- Soap
To Rest - httpImports a SOAP API having a RESTful front end.
- Soap
Pass Through - soapImports the Soap API having a SOAP front end.
- Soap
To Rest - httpImports a SOAP API having a RESTful front end.
- Soap
Pass Through - soapImports the Soap API having a SOAP front end.
- SOAP_TO_REST
- httpImports a SOAP API having a RESTful front end.
- SOAP_PASS_THROUGH
- soapImports the Soap API having a SOAP front end.
- "http"
- httpImports a SOAP API having a RESTful front end.
- "soap"
- soapImports the Soap API having a SOAP front end.
SubscriptionKeyParameterNamesContract, SubscriptionKeyParameterNamesContractArgs
SubscriptionKeyParameterNamesContractResponse, SubscriptionKeyParameterNamesContractResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:Api soapApi /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/soapApi
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0