We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.nginx.getDeployment
Explore with Pulumi AI
Use this data source to access information about an existing NGINX Deployment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.nginx.getDeployment({
name: "existing",
resourceGroupName: "existing",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.nginx.get_deployment(name="existing",
resource_group_name="existing")
pulumi.export("id", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/nginx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := nginx.LookupDeployment(ctx, &nginx.LookupDeploymentArgs{
Name: "existing",
ResourceGroupName: "existing",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Nginx.GetDeployment.Invoke(new()
{
Name = "existing",
ResourceGroupName = "existing",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getDeploymentResult => getDeploymentResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.nginx.NginxFunctions;
import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
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) {
final var example = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
.name("existing")
.resourceGroupName("existing")
.build());
ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:nginx:getDeployment
Arguments:
name: existing
resourceGroupName: existing
outputs:
id: ${example.id}
Using getDeployment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDeployment(args: GetDeploymentArgs, opts?: InvokeOptions): Promise<GetDeploymentResult>
function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: InvokeOptions): Output<GetDeploymentResult>
def get_deployment(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeploymentResult
def get_deployment_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentResult]
func LookupDeployment(ctx *Context, args *LookupDeploymentArgs, opts ...InvokeOption) (*LookupDeploymentResult, error)
func LookupDeploymentOutput(ctx *Context, args *LookupDeploymentOutputArgs, opts ...InvokeOption) LookupDeploymentResultOutput
> Note: This function is named LookupDeployment
in the Go SDK.
public static class GetDeployment
{
public static Task<GetDeploymentResult> InvokeAsync(GetDeploymentArgs args, InvokeOptions? opts = null)
public static Output<GetDeploymentResult> Invoke(GetDeploymentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeploymentResult> getDeployment(GetDeploymentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:nginx/getDeployment:getDeployment
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this NGINX Deployment.
- Resource
Group stringName - The name of the Resource Group where the NGINX Deployment exists.
- Name string
- The name of this NGINX Deployment.
- Resource
Group stringName - The name of the Resource Group where the NGINX Deployment exists.
- name String
- The name of this NGINX Deployment.
- resource
Group StringName - The name of the Resource Group where the NGINX Deployment exists.
- name string
- The name of this NGINX Deployment.
- resource
Group stringName - The name of the Resource Group where the NGINX Deployment exists.
- name str
- The name of this NGINX Deployment.
- resource_
group_ strname - The name of the Resource Group where the NGINX Deployment exists.
- name String
- The name of this NGINX Deployment.
- resource
Group StringName - The name of the Resource Group where the NGINX Deployment exists.
getDeployment Result
The following output properties are available:
- Auto
Scale List<GetProfiles Deployment Auto Scale Profile> - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- Capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- Diagnose
Support boolEnabled - Whether metrics are exported to Azure Monitor.
- Email string
- Preferred email associated with the NGINX Deployment.
- Frontend
Privates List<GetDeployment Frontend Private> - A
frontend_private
block as defined below. - Frontend
Publics List<GetDeployment Frontend Public> - A
frontend_public
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Deployment Identity> - A
identity
block as defined below. - Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Location string
- The Azure Region where the NGINX Deployment exists.
- Logging
Storage List<GetAccounts Deployment Logging Storage Account> - A
logging_storage_account
block as defined below. - Managed
Resource stringGroup - Auto-generated managed resource group for the NGINX Deployment.
- Name string
- Name of the autoscaling profile.
- Network
Interfaces List<GetDeployment Network Interface> - A
network_interface
block as defined below. - Nginx
Version string - NGINX version of the Deployment.
- Resource
Group stringName - Sku string
- The NGINX Deployment SKU.
- Dictionary<string, string>
- A mapping of tags assigned to the NGINX Deployment.
- Auto
Scale []GetProfiles Deployment Auto Scale Profile - An
auto_scale_profile
block as defined below. - Automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- Capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- Diagnose
Support boolEnabled - Whether metrics are exported to Azure Monitor.
- Email string
- Preferred email associated with the NGINX Deployment.
- Frontend
Privates []GetDeployment Frontend Private - A
frontend_private
block as defined below. - Frontend
Publics []GetDeployment Frontend Public - A
frontend_public
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Deployment Identity - A
identity
block as defined below. - Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Location string
- The Azure Region where the NGINX Deployment exists.
- Logging
Storage []GetAccounts Deployment Logging Storage Account - A
logging_storage_account
block as defined below. - Managed
Resource stringGroup - Auto-generated managed resource group for the NGINX Deployment.
- Name string
- Name of the autoscaling profile.
- Network
Interfaces []GetDeployment Network Interface - A
network_interface
block as defined below. - Nginx
Version string - NGINX version of the Deployment.
- Resource
Group stringName - Sku string
- The NGINX Deployment SKU.
- map[string]string
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale List<GetProfiles Deployment Auto Scale Profile> - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity Integer
- The number of NGINX capacity units for this NGINX Deployment.
- diagnose
Support BooleanEnabled - Whether metrics are exported to Azure Monitor.
- email String
- Preferred email associated with the NGINX Deployment.
- frontend
Privates List<GetDeployment Frontend Private> - A
frontend_private
block as defined below. - frontend
Publics List<GetDeployment Frontend Public> - A
frontend_public
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Deployment Identity> - A
identity
block as defined below. - ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- location String
- The Azure Region where the NGINX Deployment exists.
- logging
Storage List<GetAccounts Deployment Logging Storage Account> - A
logging_storage_account
block as defined below. - managed
Resource StringGroup - Auto-generated managed resource group for the NGINX Deployment.
- name String
- Name of the autoscaling profile.
- network
Interfaces List<GetDeployment Network Interface> - A
network_interface
block as defined below. - nginx
Version String - NGINX version of the Deployment.
- resource
Group StringName - sku String
- The NGINX Deployment SKU.
- Map<String,String>
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale GetProfiles Deployment Auto Scale Profile[] - An
auto_scale_profile
block as defined below. - automatic
Upgrade stringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity number
- The number of NGINX capacity units for this NGINX Deployment.
- diagnose
Support booleanEnabled - Whether metrics are exported to Azure Monitor.
- email string
- Preferred email associated with the NGINX Deployment.
- frontend
Privates GetDeployment Frontend Private[] - A
frontend_private
block as defined below. - frontend
Publics GetDeployment Frontend Public[] - A
frontend_public
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Deployment Identity[] - A
identity
block as defined below. - ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- location string
- The Azure Region where the NGINX Deployment exists.
- logging
Storage GetAccounts Deployment Logging Storage Account[] - A
logging_storage_account
block as defined below. - managed
Resource stringGroup - Auto-generated managed resource group for the NGINX Deployment.
- name string
- Name of the autoscaling profile.
- network
Interfaces GetDeployment Network Interface[] - A
network_interface
block as defined below. - nginx
Version string - NGINX version of the Deployment.
- resource
Group stringName - sku string
- The NGINX Deployment SKU.
- {[key: string]: string}
- A mapping of tags assigned to the NGINX Deployment.
- auto_
scale_ Sequence[Getprofiles Deployment Auto Scale Profile] - An
auto_scale_profile
block as defined below. - automatic_
upgrade_ strchannel - The automatic upgrade channel for this NGINX deployment.
- capacity int
- The number of NGINX capacity units for this NGINX Deployment.
- diagnose_
support_ boolenabled - Whether metrics are exported to Azure Monitor.
- email str
- Preferred email associated with the NGINX Deployment.
- frontend_
privates Sequence[GetDeployment Frontend Private] - A
frontend_private
block as defined below. - frontend_
publics Sequence[GetDeployment Frontend Public] - A
frontend_public
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Deployment Identity] - A
identity
block as defined below. - ip_
address str - The list of Public IP Resource IDs for this NGINX Deployment.
- location str
- The Azure Region where the NGINX Deployment exists.
- logging_
storage_ Sequence[Getaccounts Deployment Logging Storage Account] - A
logging_storage_account
block as defined below. - managed_
resource_ strgroup - Auto-generated managed resource group for the NGINX Deployment.
- name str
- Name of the autoscaling profile.
- network_
interfaces Sequence[GetDeployment Network Interface] - A
network_interface
block as defined below. - nginx_
version str - NGINX version of the Deployment.
- resource_
group_ strname - sku str
- The NGINX Deployment SKU.
- Mapping[str, str]
- A mapping of tags assigned to the NGINX Deployment.
- auto
Scale List<Property Map>Profiles - An
auto_scale_profile
block as defined below. - automatic
Upgrade StringChannel - The automatic upgrade channel for this NGINX deployment.
- capacity Number
- The number of NGINX capacity units for this NGINX Deployment.
- diagnose
Support BooleanEnabled - Whether metrics are exported to Azure Monitor.
- email String
- Preferred email associated with the NGINX Deployment.
- frontend
Privates List<Property Map> - A
frontend_private
block as defined below. - frontend
Publics List<Property Map> - A
frontend_public
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- A
identity
block as defined below. - ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- location String
- The Azure Region where the NGINX Deployment exists.
- logging
Storage List<Property Map>Accounts - A
logging_storage_account
block as defined below. - managed
Resource StringGroup - Auto-generated managed resource group for the NGINX Deployment.
- name String
- Name of the autoscaling profile.
- network
Interfaces List<Property Map> - A
network_interface
block as defined below. - nginx
Version String - NGINX version of the Deployment.
- resource
Group StringName - sku String
- The NGINX Deployment SKU.
- Map<String>
- A mapping of tags assigned to the NGINX Deployment.
Supporting Types
GetDeploymentAutoScaleProfile
- Max
Capacity int - The maximum number of NGINX capacity units for this NGINX Deployment.
- Min
Capacity int - The minimum number of NGINX capacity units for this NGINX Deployment.
- Name string
- The name of this NGINX Deployment.
- Max
Capacity int - The maximum number of NGINX capacity units for this NGINX Deployment.
- Min
Capacity int - The minimum number of NGINX capacity units for this NGINX Deployment.
- Name string
- The name of this NGINX Deployment.
- max
Capacity Integer - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity Integer - The minimum number of NGINX capacity units for this NGINX Deployment.
- name String
- The name of this NGINX Deployment.
- max
Capacity number - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity number - The minimum number of NGINX capacity units for this NGINX Deployment.
- name string
- The name of this NGINX Deployment.
- max_
capacity int - The maximum number of NGINX capacity units for this NGINX Deployment.
- min_
capacity int - The minimum number of NGINX capacity units for this NGINX Deployment.
- name str
- The name of this NGINX Deployment.
- max
Capacity Number - The maximum number of NGINX capacity units for this NGINX Deployment.
- min
Capacity Number - The minimum number of NGINX capacity units for this NGINX Deployment.
- name String
- The name of this NGINX Deployment.
GetDeploymentFrontendPrivate
- Allocation
Method string - The method of allocating the private IP to the NGINX Deployment.
- Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Subnet
Id string - The subnet resource ID of the NGINX Deployment.
- Allocation
Method string - The method of allocating the private IP to the NGINX Deployment.
- Ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- Subnet
Id string - The subnet resource ID of the NGINX Deployment.
- allocation
Method String - The method of allocating the private IP to the NGINX Deployment.
- ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id String - The subnet resource ID of the NGINX Deployment.
- allocation
Method string - The method of allocating the private IP to the NGINX Deployment.
- ip
Address string - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id string - The subnet resource ID of the NGINX Deployment.
- allocation_
method str - The method of allocating the private IP to the NGINX Deployment.
- ip_
address str - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet_
id str - The subnet resource ID of the NGINX Deployment.
- allocation
Method String - The method of allocating the private IP to the NGINX Deployment.
- ip
Address String - The list of Public IP Resource IDs for this NGINX Deployment.
- subnet
Id String - The subnet resource ID of the NGINX Deployment.
GetDeploymentFrontendPublic
- Ip
Addresses List<string> - The list of Public IP Resource IDs for this NGINX Deployment.
- Ip
Addresses []string - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses List<String> - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses string[] - The list of Public IP Resource IDs for this NGINX Deployment.
- ip_
addresses Sequence[str] - The list of Public IP Resource IDs for this NGINX Deployment.
- ip
Addresses List<String> - The list of Public IP Resource IDs for this NGINX Deployment.
GetDeploymentIdentity
- Identity
Ids List<string> - List of identities attached to the NGINX Deployment.
- Principal
Id string - Tenant
Id string - Type string
- Type of identity attached to the NGINX Deployment.
- Identity
Ids []string - List of identities attached to the NGINX Deployment.
- Principal
Id string - Tenant
Id string - Type string
- Type of identity attached to the NGINX Deployment.
- identity
Ids List<String> - List of identities attached to the NGINX Deployment.
- principal
Id String - tenant
Id String - type String
- Type of identity attached to the NGINX Deployment.
- identity
Ids string[] - List of identities attached to the NGINX Deployment.
- principal
Id string - tenant
Id string - type string
- Type of identity attached to the NGINX Deployment.
- identity_
ids Sequence[str] - List of identities attached to the NGINX Deployment.
- principal_
id str - tenant_
id str - type str
- Type of identity attached to the NGINX Deployment.
- identity
Ids List<String> - List of identities attached to the NGINX Deployment.
- principal
Id String - tenant
Id String - type String
- Type of identity attached to the NGINX Deployment.
GetDeploymentLoggingStorageAccount
- Container
Name string - The container name of Storage Account for logging.
- Name string
- The name of this NGINX Deployment.
- Container
Name string - The container name of Storage Account for logging.
- Name string
- The name of this NGINX Deployment.
- container
Name String - The container name of Storage Account for logging.
- name String
- The name of this NGINX Deployment.
- container
Name string - The container name of Storage Account for logging.
- name string
- The name of this NGINX Deployment.
- container_
name str - The container name of Storage Account for logging.
- name str
- The name of this NGINX Deployment.
- container
Name String - The container name of Storage Account for logging.
- name String
- The name of this NGINX Deployment.
GetDeploymentNetworkInterface
- Subnet
Id string - The subnet resource ID of the NGINX Deployment.
- Subnet
Id string - The subnet resource ID of the NGINX Deployment.
- subnet
Id String - The subnet resource ID of the NGINX Deployment.
- subnet
Id string - The subnet resource ID of the NGINX Deployment.
- subnet_
id str - The subnet resource ID of the NGINX Deployment.
- subnet
Id String - The subnet resource ID of the NGINX Deployment.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.