Site Class
A web app, a mobile app backend, or an API app.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.web.v2016_09_01.models._models_py3.ResourceSite
Constructor
Site(*, location: str, kind: str | None = None, tags: Dict[str, str] | None = None, identity: _models.ManagedServiceIdentity | None = None, enabled: bool | None = None, host_name_ssl_states: List[_models.HostNameSslState] | None = None, server_farm_id: str | None = None, reserved: bool = False, site_config: _models.SiteConfig | None = None, scm_site_also_stopped: bool = False, hosting_environment_profile: _models.HostingEnvironmentProfile | None = None, client_affinity_enabled: bool | None = None, client_cert_enabled: bool | None = None, host_names_disabled: bool | None = None, container_size: int | None = None, daily_memory_time_quota: int | None = None, cloning_info: _models.CloningInfo | None = None, snapshot_info: _models.SnapshotRecoveryRequest | None = None, https_only: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
kind
|
Kind of resource. |
location
|
Resource Location. Required. |
tags
|
Resource tags. |
identity
|
Managed service identity. |
enabled
|
|
host_name_ssl_states
|
Hostname SSL states are used to manage the SSL bindings for app's hostnames. |
server_farm_id
|
Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". # pylint: disable=line-too-long |
reserved
|
|
site_config
|
Configuration of the app. |
scm_site_also_stopped
|
|
hosting_environment_profile
|
App Service Environment to use for the app. |
client_affinity_enabled
|
|
client_cert_enabled
|
|
host_names_disabled
|
If |
container_size
|
Size of the function container. |
daily_memory_time_quota
|
Maximum allowed daily memory-time quota (applicable on dynamic apps only). |
cloning_info
|
If specified during app creation, the app is cloned from a source app. |
snapshot_info
|
If specified during app creation, the app is created from a previous snapshot. |
https_only
|
HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests. |
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource Name. |
kind
|
Kind of resource. |
location
|
Resource Location. Required. |
type
|
Resource type. |
tags
|
Resource tags. |
identity
|
Managed service identity. |
state
|
Current state of the app. |
host_names
|
Hostnames associated with the app. |
repository_site_name
|
Name of the repository site. |
usage_state
|
str or
UsageState
State indicating whether the app has exceeded its quota usage. Read-only. Known values are: "Normal" and "Exceeded". |
enabled
|
|
enabled_host_names
|
Enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise, the app is not served on those hostnames. |
availability_state
|
Management information availability state for the app. Known values are: "Normal", "Limited", and "DisasterRecoveryMode". |
host_name_ssl_states
|
Hostname SSL states are used to manage the SSL bindings for app's hostnames. |
server_farm_id
|
Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". # pylint: disable=line-too-long |
reserved
|
|
last_modified_time_utc
|
Last time the app was modified, in UTC. Read-only. |
site_config
|
Configuration of the app. |
traffic_manager_host_names
|
Azure Traffic Manager hostnames associated with the app. Read-only. |
scm_site_also_stopped
|
|
target_swap_slot
|
Specifies which deployment slot this app will swap into. Read-only. |
hosting_environment_profile
|
App Service Environment to use for the app. |
client_affinity_enabled
|
|
client_cert_enabled
|
|
host_names_disabled
|
If |
outbound_ip_addresses
|
List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from tenants that site can be hosted with current settings. Read-only. |
possible_outbound_ip_addresses
|
List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only. |
container_size
|
Size of the function container. |
daily_memory_time_quota
|
Maximum allowed daily memory-time quota (applicable on dynamic apps only). |
suspended_till
|
App suspended till in case memory-time quota is exceeded. |
max_number_of_workers
|
Maximum number of workers. This only applies to Functions container. |
cloning_info
|
If specified during app creation, the app is cloned from a source app. |
snapshot_info
|
If specified during app creation, the app is created from a previous snapshot. |
resource_group
|
Name of the resource group the app belongs to. Read-only. |
is_default_container
|
|
default_host_name
|
Default hostname of the app. Read-only. |
slot_swap_status
|
Status of the last deployment slot swap operation. |
https_only
|
HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests. |
Azure SDK for Python