azure-native.apicenter.Deployment
Explore with Pulumi AI
API deployment entity. Azure REST API version: 2024-03-01.
Other available API versions: 2024-03-15-preview.
Example Usage
Deployments_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var deployment = new AzureNative.ApiCenter.Deployment("deployment", new()
{
ApiName = "echo-api",
DefinitionId = "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi",
DeploymentName = "production",
Description = "Public cloud production deployment.",
EnvironmentId = "/workspaces/default/environments/production",
ResourceGroupName = "contoso-resources",
Server = new AzureNative.ApiCenter.Inputs.DeploymentServerArgs
{
RuntimeUri = new[]
{
"https://api.contoso.com",
},
},
ServiceName = "contoso",
State = AzureNative.ApiCenter.DeploymentState.Active,
Title = "Production deployment",
WorkspaceName = "default",
});
});
package main
import (
apicenter "github.com/pulumi/pulumi-azure-native-sdk/apicenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apicenter.NewDeployment(ctx, "deployment", &apicenter.DeploymentArgs{
ApiName: pulumi.String("echo-api"),
DefinitionId: pulumi.String("/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi"),
DeploymentName: pulumi.String("production"),
Description: pulumi.String("Public cloud production deployment."),
EnvironmentId: pulumi.String("/workspaces/default/environments/production"),
ResourceGroupName: pulumi.String("contoso-resources"),
Server: &apicenter.DeploymentServerArgs{
RuntimeUri: pulumi.StringArray{
pulumi.String("https://api.contoso.com"),
},
},
ServiceName: pulumi.String("contoso"),
State: pulumi.String(apicenter.DeploymentStateActive),
Title: pulumi.String("Production deployment"),
WorkspaceName: pulumi.String("default"),
})
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.apicenter.Deployment;
import com.pulumi.azurenative.apicenter.DeploymentArgs;
import com.pulumi.azurenative.apicenter.inputs.DeploymentServerArgs;
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 deployment = new Deployment("deployment", DeploymentArgs.builder()
.apiName("echo-api")
.definitionId("/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi")
.deploymentName("production")
.description("Public cloud production deployment.")
.environmentId("/workspaces/default/environments/production")
.resourceGroupName("contoso-resources")
.server(DeploymentServerArgs.builder()
.runtimeUri("https://api.contoso.com")
.build())
.serviceName("contoso")
.state("active")
.title("Production deployment")
.workspaceName("default")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
deployment = azure_native.apicenter.Deployment("deployment",
api_name="echo-api",
definition_id="/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi",
deployment_name="production",
description="Public cloud production deployment.",
environment_id="/workspaces/default/environments/production",
resource_group_name="contoso-resources",
server=azure_native.apicenter.DeploymentServerArgs(
runtime_uri=["https://api.contoso.com"],
),
service_name="contoso",
state=azure_native.apicenter.DeploymentState.ACTIVE,
title="Production deployment",
workspace_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const deployment = new azure_native.apicenter.Deployment("deployment", {
apiName: "echo-api",
definitionId: "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi",
deploymentName: "production",
description: "Public cloud production deployment.",
environmentId: "/workspaces/default/environments/production",
resourceGroupName: "contoso-resources",
server: {
runtimeUri: ["https://api.contoso.com"],
},
serviceName: "contoso",
state: azure_native.apicenter.DeploymentState.Active,
title: "Production deployment",
workspaceName: "default",
});
resources:
deployment:
type: azure-native:apicenter:Deployment
properties:
apiName: echo-api
definitionId: /workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi
deploymentName: production
description: Public cloud production deployment.
environmentId: /workspaces/default/environments/production
resourceGroupName: contoso-resources
server:
runtimeUri:
- https://api.contoso.com
serviceName: contoso
state: active
title: Production deployment
workspaceName: default
Create Deployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
workspace_name: Optional[str] = None,
custom_properties: Optional[Any] = None,
definition_id: Optional[str] = None,
deployment_name: Optional[str] = None,
description: Optional[str] = None,
environment_id: Optional[str] = None,
server: Optional[DeploymentServerArgs] = None,
state: Optional[Union[str, DeploymentState]] = None,
title: Optional[str] = None)
func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: azure-native:apicenter:Deployment
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 DeploymentArgs
- 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 DeploymentArgs
- 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 DeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentArgs
- 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 deploymentResource = new AzureNative.ApiCenter.Deployment("deploymentResource", new()
{
ApiName = "string",
ResourceGroupName = "string",
ServiceName = "string",
WorkspaceName = "string",
CustomProperties = "any",
DefinitionId = "string",
DeploymentName = "string",
Description = "string",
EnvironmentId = "string",
Server = new AzureNative.ApiCenter.Inputs.DeploymentServerArgs
{
RuntimeUri = new[]
{
"string",
},
},
State = "string",
Title = "string",
});
example, err := apicenter.NewDeployment(ctx, "deploymentResource", &apicenter.DeploymentArgs{
ApiName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
CustomProperties: pulumi.Any("any"),
DefinitionId: pulumi.String("string"),
DeploymentName: pulumi.String("string"),
Description: pulumi.String("string"),
EnvironmentId: pulumi.String("string"),
Server: &apicenter.DeploymentServerArgs{
RuntimeUri: pulumi.StringArray{
pulumi.String("string"),
},
},
State: pulumi.String("string"),
Title: pulumi.String("string"),
})
var deploymentResource = new Deployment("deploymentResource", DeploymentArgs.builder()
.apiName("string")
.resourceGroupName("string")
.serviceName("string")
.workspaceName("string")
.customProperties("any")
.definitionId("string")
.deploymentName("string")
.description("string")
.environmentId("string")
.server(DeploymentServerArgs.builder()
.runtimeUri("string")
.build())
.state("string")
.title("string")
.build());
deployment_resource = azure_native.apicenter.Deployment("deploymentResource",
api_name="string",
resource_group_name="string",
service_name="string",
workspace_name="string",
custom_properties="any",
definition_id="string",
deployment_name="string",
description="string",
environment_id="string",
server=azure_native.apicenter.DeploymentServerArgs(
runtime_uri=["string"],
),
state="string",
title="string")
const deploymentResource = new azure_native.apicenter.Deployment("deploymentResource", {
apiName: "string",
resourceGroupName: "string",
serviceName: "string",
workspaceName: "string",
customProperties: "any",
definitionId: "string",
deploymentName: "string",
description: "string",
environmentId: "string",
server: {
runtimeUri: ["string"],
},
state: "string",
title: "string",
});
type: azure-native:apicenter:Deployment
properties:
apiName: string
customProperties: any
definitionId: string
deploymentName: string
description: string
environmentId: string
resourceGroupName: string
server:
runtimeUri:
- string
serviceName: string
state: string
title: string
workspaceName: string
Deployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Deployment resource accepts the following input properties:
- Api
Name string - The name of the API.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Name string - The name of Azure API Center service.
- Workspace
Name string - The name of the workspace.
- Custom
Properties object - The custom metadata defined for API catalog entities.
- Definition
Id string - API center-scoped definition resource ID.
- Deployment
Name string - The name of the API deployment.
- Description string
- Description of the deployment.
- Environment
Id string - API center-scoped environment resource ID.
- Server
Pulumi.
Azure Native. Api Center. Inputs. Deployment Server - The deployment server
- State
string | Pulumi.
Azure Native. Api Center. Deployment State - State of API deployment.
- Title string
- API deployment title
- Api
Name string - The name of the API.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Name string - The name of Azure API Center service.
- Workspace
Name string - The name of the workspace.
- Custom
Properties interface{} - The custom metadata defined for API catalog entities.
- Definition
Id string - API center-scoped definition resource ID.
- Deployment
Name string - The name of the API deployment.
- Description string
- Description of the deployment.
- Environment
Id string - API center-scoped environment resource ID.
- Server
Deployment
Server Args - The deployment server
- State
string | Deployment
State Enum - State of API deployment.
- Title string
- API deployment title
- api
Name String - The name of the API.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Name String - The name of Azure API Center service.
- workspace
Name String - The name of the workspace.
- custom
Properties Object - The custom metadata defined for API catalog entities.
- definition
Id String - API center-scoped definition resource ID.
- deployment
Name String - The name of the API deployment.
- description String
- Description of the deployment.
- environment
Id String - API center-scoped environment resource ID.
- server
Deployment
Server - The deployment server
- state
String | Deployment
State - State of API deployment.
- title String
- API deployment title
- api
Name string - The name of the API.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- service
Name string - The name of Azure API Center service.
- workspace
Name string - The name of the workspace.
- custom
Properties any - The custom metadata defined for API catalog entities.
- definition
Id string - API center-scoped definition resource ID.
- deployment
Name string - The name of the API deployment.
- description string
- Description of the deployment.
- environment
Id string - API center-scoped environment resource ID.
- server
Deployment
Server - The deployment server
- state
string | Deployment
State - State of API deployment.
- title string
- API deployment title
- api_
name str - The name of the API.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- service_
name str - The name of Azure API Center service.
- workspace_
name str - The name of the workspace.
- custom_
properties Any - The custom metadata defined for API catalog entities.
- definition_
id str - API center-scoped definition resource ID.
- deployment_
name str - The name of the API deployment.
- description str
- Description of the deployment.
- environment_
id str - API center-scoped environment resource ID.
- server
Deployment
Server Args - The deployment server
- state
str | Deployment
State - State of API deployment.
- title str
- API deployment title
- api
Name String - The name of the API.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Name String - The name of Azure API Center service.
- workspace
Name String - The name of the workspace.
- custom
Properties Any - The custom metadata defined for API catalog entities.
- definition
Id String - API center-scoped definition resource ID.
- deployment
Name String - The name of the API deployment.
- description String
- Description of the deployment.
- environment
Id String - API center-scoped environment resource ID.
- server Property Map
- The deployment server
- state String | "active" | "inactive"
- State of API deployment.
- title String
- API deployment title
Outputs
All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Api Center. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DeploymentServer, DeploymentServerArgs
- Runtime
Uri List<string> - Base runtime URLs for this deployment.
- Runtime
Uri []string - Base runtime URLs for this deployment.
- runtime
Uri List<String> - Base runtime URLs for this deployment.
- runtime
Uri string[] - Base runtime URLs for this deployment.
- runtime_
uri Sequence[str] - Base runtime URLs for this deployment.
- runtime
Uri List<String> - Base runtime URLs for this deployment.
DeploymentServerResponse, DeploymentServerResponseArgs
- Runtime
Uri List<string> - Base runtime URLs for this deployment.
- Runtime
Uri []string - Base runtime URLs for this deployment.
- runtime
Uri List<String> - Base runtime URLs for this deployment.
- runtime
Uri string[] - Base runtime URLs for this deployment.
- runtime_
uri Sequence[str] - Base runtime URLs for this deployment.
- runtime
Uri List<String> - Base runtime URLs for this deployment.
DeploymentState, DeploymentStateArgs
- Active
- activeActive State
- Inactive
- inactiveInactive State
- Deployment
State Active - activeActive State
- Deployment
State Inactive - inactiveInactive State
- Active
- activeActive State
- Inactive
- inactiveInactive State
- Active
- activeActive State
- Inactive
- inactiveInactive State
- ACTIVE
- activeActive State
- INACTIVE
- inactiveInactive State
- "active"
- activeActive State
- "inactive"
- inactiveInactive State
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apicenter:Deployment production /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/deployments/{deploymentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0