1. Packages
  2. Azure Native
  3. API Docs
  4. web
  5. getWebAppSiteContainerSlot
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.web.getWebAppSiteContainerSlot

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Container of a site

Uses Azure REST API version 2024-04-01.

Other available API versions: 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]. See the version guide for details.

Using getWebAppSiteContainerSlot

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 getWebAppSiteContainerSlot(args: GetWebAppSiteContainerSlotArgs, opts?: InvokeOptions): Promise<GetWebAppSiteContainerSlotResult>
function getWebAppSiteContainerSlotOutput(args: GetWebAppSiteContainerSlotOutputArgs, opts?: InvokeOptions): Output<GetWebAppSiteContainerSlotResult>
Copy
def get_web_app_site_container_slot(container_name: Optional[str] = None,
                                    name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    slot: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetWebAppSiteContainerSlotResult
def get_web_app_site_container_slot_output(container_name: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    resource_group_name: Optional[pulumi.Input[str]] = None,
                                    slot: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetWebAppSiteContainerSlotResult]
Copy
func LookupWebAppSiteContainerSlot(ctx *Context, args *LookupWebAppSiteContainerSlotArgs, opts ...InvokeOption) (*LookupWebAppSiteContainerSlotResult, error)
func LookupWebAppSiteContainerSlotOutput(ctx *Context, args *LookupWebAppSiteContainerSlotOutputArgs, opts ...InvokeOption) LookupWebAppSiteContainerSlotResultOutput
Copy

> Note: This function is named LookupWebAppSiteContainerSlot in the Go SDK.

public static class GetWebAppSiteContainerSlot 
{
    public static Task<GetWebAppSiteContainerSlotResult> InvokeAsync(GetWebAppSiteContainerSlotArgs args, InvokeOptions? opts = null)
    public static Output<GetWebAppSiteContainerSlotResult> Invoke(GetWebAppSiteContainerSlotInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWebAppSiteContainerSlotResult> getWebAppSiteContainerSlot(GetWebAppSiteContainerSlotArgs args, InvokeOptions options)
public static Output<GetWebAppSiteContainerSlotResult> getWebAppSiteContainerSlot(GetWebAppSiteContainerSlotArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:web:getWebAppSiteContainerSlot
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ContainerName
This property is required.
Changes to this property will trigger replacement.
string
Site Container Name
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.
ContainerName
This property is required.
Changes to this property will trigger replacement.
string
Site Container Name
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
Slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.
containerName
This property is required.
Changes to this property will trigger replacement.
String
Site Container Name
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
String
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.
containerName
This property is required.
Changes to this property will trigger replacement.
string
Site Container Name
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
string
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.
container_name
This property is required.
Changes to this property will trigger replacement.
str
Site Container Name
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the app.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
str
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.
containerName
This property is required.
Changes to this property will trigger replacement.
String
Site Container Name
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the app.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
slot
This property is required.
Changes to this property will trigger replacement.
String
Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production slot.

getWebAppSiteContainerSlot Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
CreatedTime string
Created Time
Id string
Resource Id.
Image string
Image Name
IsMain bool
true if the container is the main site container; false otherwise.
LastModifiedTime string
Last Modified Time
Name string
Resource Name.
Type string
Resource type.
AuthType string
Auth Type
EnvironmentVariables List<Pulumi.AzureNative.Web.Outputs.EnvironmentVariableResponse>
List of environment variables
Kind string
Kind of resource.
PasswordSecret string
Password Secret
StartUpCommand string
StartUp Command
TargetPort string
Target Port
UserManagedIdentityClientId string
UserManagedIdentity ClientId
UserName string
User Name
VolumeMounts List<Pulumi.AzureNative.Web.Outputs.VolumeMountResponse>
List of volume mounts
AzureApiVersion string
The Azure API version of the resource.
CreatedTime string
Created Time
Id string
Resource Id.
Image string
Image Name
IsMain bool
true if the container is the main site container; false otherwise.
LastModifiedTime string
Last Modified Time
Name string
Resource Name.
Type string
Resource type.
AuthType string
Auth Type
EnvironmentVariables []EnvironmentVariableResponse
List of environment variables
Kind string
Kind of resource.
PasswordSecret string
Password Secret
StartUpCommand string
StartUp Command
TargetPort string
Target Port
UserManagedIdentityClientId string
UserManagedIdentity ClientId
UserName string
User Name
VolumeMounts []VolumeMountResponse
List of volume mounts
azureApiVersion String
The Azure API version of the resource.
createdTime String
Created Time
id String
Resource Id.
image String
Image Name
isMain Boolean
true if the container is the main site container; false otherwise.
lastModifiedTime String
Last Modified Time
name String
Resource Name.
type String
Resource type.
authType String
Auth Type
environmentVariables List<EnvironmentVariableResponse>
List of environment variables
kind String
Kind of resource.
passwordSecret String
Password Secret
startUpCommand String
StartUp Command
targetPort String
Target Port
userManagedIdentityClientId String
UserManagedIdentity ClientId
userName String
User Name
volumeMounts List<VolumeMountResponse>
List of volume mounts
azureApiVersion string
The Azure API version of the resource.
createdTime string
Created Time
id string
Resource Id.
image string
Image Name
isMain boolean
true if the container is the main site container; false otherwise.
lastModifiedTime string
Last Modified Time
name string
Resource Name.
type string
Resource type.
authType string
Auth Type
environmentVariables EnvironmentVariableResponse[]
List of environment variables
kind string
Kind of resource.
passwordSecret string
Password Secret
startUpCommand string
StartUp Command
targetPort string
Target Port
userManagedIdentityClientId string
UserManagedIdentity ClientId
userName string
User Name
volumeMounts VolumeMountResponse[]
List of volume mounts
azure_api_version str
The Azure API version of the resource.
created_time str
Created Time
id str
Resource Id.
image str
Image Name
is_main bool
true if the container is the main site container; false otherwise.
last_modified_time str
Last Modified Time
name str
Resource Name.
type str
Resource type.
auth_type str
Auth Type
environment_variables Sequence[EnvironmentVariableResponse]
List of environment variables
kind str
Kind of resource.
password_secret str
Password Secret
start_up_command str
StartUp Command
target_port str
Target Port
user_managed_identity_client_id str
UserManagedIdentity ClientId
user_name str
User Name
volume_mounts Sequence[VolumeMountResponse]
List of volume mounts
azureApiVersion String
The Azure API version of the resource.
createdTime String
Created Time
id String
Resource Id.
image String
Image Name
isMain Boolean
true if the container is the main site container; false otherwise.
lastModifiedTime String
Last Modified Time
name String
Resource Name.
type String
Resource type.
authType String
Auth Type
environmentVariables List<Property Map>
List of environment variables
kind String
Kind of resource.
passwordSecret String
Password Secret
startUpCommand String
StartUp Command
targetPort String
Target Port
userManagedIdentityClientId String
UserManagedIdentity ClientId
userName String
User Name
volumeMounts List<Property Map>
List of volume mounts

Supporting Types

EnvironmentVariableResponse

Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
Name This property is required. string
Environment variable name
Value This property is required. string
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value
name This property is required. string
Environment variable name
value This property is required. string
Environment variable value
name This property is required. str
Environment variable name
value This property is required. str
Environment variable value
name This property is required. String
Environment variable name
value This property is required. String
Environment variable value

VolumeMountResponse

ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
ContainerMountPath This property is required. string
Target path on the container where volume is mounted on
VolumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
Data string
Config Data to be mounted on the volume
ReadOnly bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. string
Target path on the container where volume is mounted on
volumeSubPath This property is required. string
Sub path in the volume where volume is mounted from.
data string
Config Data to be mounted on the volume
readOnly boolean
Boolean to specify if the mount is read only on the container
container_mount_path This property is required. str
Target path on the container where volume is mounted on
volume_sub_path This property is required. str
Sub path in the volume where volume is mounted from.
data str
Config Data to be mounted on the volume
read_only bool
Boolean to specify if the mount is read only on the container
containerMountPath This property is required. String
Target path on the container where volume is mounted on
volumeSubPath This property is required. String
Sub path in the volume where volume is mounted from.
data String
Config Data to be mounted on the volume
readOnly Boolean
Boolean to specify if the mount is read only on the container

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi