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 Azure.
- Inheritance
-
azure.mgmt.web.v2016_03_01.models._models_py3.ResourceSite
Constructor
Site(*, location: str, kind: Optional[str] = None, tags: Optional[Dict[str, str]] = None, identity: Optional[azure.mgmt.web.v2016_03_01.models._models_py3.ManagedServiceIdentity] = None, enabled: Optional[bool] = None, host_name_ssl_states: Optional[List[azure.mgmt.web.v2016_03_01.models._models_py3.HostNameSslState]] = None, server_farm_id: Optional[str] = None, reserved: Optional[bool] = False, site_config: Optional[azure.mgmt.web.v2016_03_01.models._models_py3.SiteConfig] = None, scm_site_also_stopped: Optional[bool] = False, hosting_environment_profile: Optional[azure.mgmt.web.v2016_03_01.models._models_py3.HostingEnvironmentProfile] = None, client_affinity_enabled: Optional[bool] = None, client_cert_enabled: Optional[bool] = None, host_names_disabled: Optional[bool] = None, container_size: Optional[int] = None, daily_memory_time_quota: Optional[int] = None, cloning_info: Optional[azure.mgmt.web.v2016_03_01.models._models_py3.CloningInfo] = None, snapshot_info: Optional[azure.mgmt.web.v2016_03_01.models._models_py3.SnapshotRecoveryRequest] = None, https_only: Optional[bool] = None, **kwargs)
Parameters
- enabled
- bool
<code>true</code> if the app is enabled; otherwise,
<code>false</code>. Setting this value to false disables the app (takes the app
offline).
- host_name_ssl_states
- list[HostNameSslState]
Hostname SSL states are used to manage the SSL bindings for app's hostnames.
- server_farm_id
- str
Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- scm_site_also_stopped
- bool
<code>true</code> to stop SCM (KUDU) site when the app is
stopped; otherwise, <code>false</code>. The default is <code>false</code>.
- hosting_environment_profile
- HostingEnvironmentProfile
App Service Environment to use for the app.
- client_affinity_enabled
- bool
<code>true</code> to enable client affinity;
<code>false</code> to stop sending session affinity cookies, which route client
requests in the same session to the same instance. Default is <code>true</code>.
- client_cert_enabled
- bool
<code>true</code> to enable client certificate
authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is
<code>false</code>.
- host_names_disabled
- bool
<code>true</code> to disable the public hostnames of the
app; otherwise, <code>false</code>.
If <code>true</code>, the app is only accessible via API management process.
- daily_memory_time_quota
- int
Maximum allowed daily memory-time quota (applicable on dynamic apps only).
- cloning_info
- CloningInfo
If specified during app creation, the app is cloned from a source app.
- snapshot_info
- SnapshotRecoveryRequest
If specified during app creation, the app is created from a previous snapshot.
- https_only
- bool
HttpsOnly: configures a web site to accept only https requests. Issues redirect for http requests.
Variables
- id
- str
Resource Id.
- name
- str
Resource Name.
- type
- str
Resource type.
- state
- str
Current state of the app.
- repository_site_name
- str
Name of the repository site.
- usage_state
- str or UsageState
State indicating whether the app has exceeded its quota usage. Read-only. Possible values include: "Normal", "Exceeded".
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
- str or SiteAvailabilityState
Management information availability state for the app. Possible values include: "Normal", "Limited", "DisasterRecoveryMode".
- last_modified_time_utc
- datetime
Last time the app was modified, in UTC. Read-only.
Azure Traffic Manager hostnames associated with the app. Read-only.
- target_swap_slot
- str
Specifies which deployment slot this app will swap into. Read-only.
- outbound_ip_addresses
- str
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
- str
List of IP addresses that the app uses for outbound connections (e.g. database access). Includes VIPs from all tenants. Read-only.
- suspended_till
- datetime
App suspended till in case memory-time quota is exceeded.
- max_number_of_workers
- int
Maximum number of workers. This only applies to Functions container.
- resource_group
- str
Name of the resource group the app belongs to. Read-only.
- is_default_container
- bool
<code>true</code> if the app is a default container;
otherwise, <code>false</code>.
- default_host_name
- str
Default hostname of the app. Read-only.
- slot_swap_status
- SlotSwapStatus
Status of the last deployment slot swap operation.
Feedback
Submit and view feedback for