SiteConfig Class
Configuration of an App Service app.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.web._serialization.ModelSiteConfig
Constructor
SiteConfig(*, number_of_workers: int | None = None, default_documents: List[str] | None = None, net_framework_version: str = 'v4.6', php_version: str | None = None, python_version: str | None = None, node_version: str | None = None, linux_fx_version: str | None = None, windows_fx_version: str | None = None, request_tracing_enabled: bool | None = None, request_tracing_expiration_time: datetime | None = None, remote_debugging_enabled: bool | None = None, remote_debugging_version: str | None = None, http_logging_enabled: bool | None = None, logs_directory_size_limit: int | None = None, detailed_error_logging_enabled: bool | None = None, publishing_username: str | None = None, app_settings: List[_models.NameValuePair] | None = None, azure_storage_accounts: Dict[str, _models.AzureStorageInfoValue] | None = None, connection_strings: List[_models.ConnStringInfo] | None = None, handler_mappings: List[_models.HandlerMapping] | None = None, document_root: str | None = None, scm_type: str | _models.ScmType | None = None, use32_bit_worker_process: bool | None = None, web_sockets_enabled: bool | None = None, always_on: bool | None = None, java_version: str | None = None, java_container: str | None = None, java_container_version: str | None = None, app_command_line: str | None = None, managed_pipeline_mode: str | _models.ManagedPipelineMode | None = None, virtual_applications: List[_models.VirtualApplication] | None = None, load_balancing: str | _models.SiteLoadBalancing | None = None, experiments: _models.Experiments | None = None, limits: _models.SiteLimits | None = None, auto_heal_enabled: bool | None = None, auto_heal_rules: _models.AutoHealRules | None = None, tracing_options: str | None = None, vnet_name: str | None = None, cors: _models.CorsSettings | None = None, push: _models.PushSettings | None = None, api_definition: _models.ApiDefinitionInfo | None = None, auto_swap_slot_name: str | None = None, local_my_sql_enabled: bool = False, managed_service_identity_id: int | None = None, x_managed_service_identity_id: int | None = None, ip_security_restrictions: List[_models.IpSecurityRestriction] | None = None, scm_ip_security_restrictions: List[_models.IpSecurityRestriction] | None = None, scm_ip_security_restrictions_use_main: bool | None = None, http20_enabled: bool = True, min_tls_version: str | _models.SupportedTlsVersions | None = None, ftps_state: str | _models.FtpsState | None = None, reserved_instance_count: int | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
number_of_workers
|
Number of workers. |
default_documents
|
Default documents. |
net_framework_version
|
.NET Framework version. Default value: v4.6
|
php_version
|
Version of PHP. |
python_version
|
Version of Python. |
node_version
|
Version of Node.js. |
linux_fx_version
|
Linux App Framework and version. |
windows_fx_version
|
Xenon App Framework and version. |
request_tracing_enabled
|
|
request_tracing_expiration_time
|
Request tracing expiration time. |
remote_debugging_enabled
|
|
remote_debugging_version
|
Remote debugging version. |
http_logging_enabled
|
|
logs_directory_size_limit
|
HTTP logs directory size limit. |
detailed_error_logging_enabled
|
|
publishing_username
|
Publishing user name. |
app_settings
|
Application settings. |
azure_storage_accounts
|
User-provided Azure storage accounts. |
connection_strings
|
Connection strings. |
handler_mappings
|
Handler mappings. |
document_root
|
Document root. |
scm_type
|
SCM type. Known values are: "None", "Dropbox", "Tfs", "LocalGit", "GitHub", "CodePlexGit", "CodePlexHg", "BitbucketGit", "BitbucketHg", "ExternalGit", "ExternalHg", "OneDrive", and "VSO". |
use32_bit_worker_process
|
|
web_sockets_enabled
|
|
always_on
|
|
java_version
|
Java version. |
java_container
|
Java container. |
java_container_version
|
Java container version. |
app_command_line
|
App command line to launch. |
managed_pipeline_mode
|
Managed pipeline mode. Known values are: "Integrated" and "Classic". |
virtual_applications
|
Virtual applications. |
load_balancing
|
Site load balancing. Known values are: "WeightedRoundRobin", "LeastRequests", "LeastResponseTime", "WeightedTotalTraffic", and "RequestHash". |
experiments
|
This is work around for polymorphic types. |
limits
|
Site limits. |
auto_heal_enabled
|
|
auto_heal_rules
|
Auto Heal rules. |
tracing_options
|
Tracing options. |
vnet_name
|
Virtual Network name. |
cors
|
Cross-Origin Resource Sharing (CORS) settings. |
push
|
Push endpoint settings. |
api_definition
|
Information about the formal API definition for the app. |
auto_swap_slot_name
|
Auto-swap slot name. |
local_my_sql_enabled
|
|
managed_service_identity_id
|
Managed Service Identity Id. |
x_managed_service_identity_id
|
Explicit Managed Service Identity Id. |
ip_security_restrictions
|
IP security restrictions for main. |
scm_ip_security_restrictions
|
IP security restrictions for scm. |
scm_ip_security_restrictions_use_main
|
IP security restrictions for scm to use main. |
http20_enabled
|
Http20Enabled: configures a web site to allow clients to connect over http2.0. Default value: True
|
min_tls_version
|
MinTlsVersion: configures the minimum version of TLS required for SSL requests. Known values are: "1.0", "1.1", and "1.2". |
ftps_state
|
State of FTP / FTPS service. Known values are: "AllAllowed", "FtpsOnly", and "Disabled". |
reserved_instance_count
|
Number of reserved instances. This setting only applies to the Consumption Plan. |
Variables
Name | Description |
---|---|
number_of_workers
|
Number of workers. |
default_documents
|
Default documents. |
net_framework_version
|
.NET Framework version. |
php_version
|
Version of PHP. |
python_version
|
Version of Python. |
node_version
|
Version of Node.js. |
linux_fx_version
|
Linux App Framework and version. |
windows_fx_version
|
Xenon App Framework and version. |
request_tracing_enabled
|
|
request_tracing_expiration_time
|
Request tracing expiration time. |
remote_debugging_enabled
|
|
remote_debugging_version
|
Remote debugging version. |
http_logging_enabled
|
|
logs_directory_size_limit
|
HTTP logs directory size limit. |
detailed_error_logging_enabled
|
|
publishing_username
|
Publishing user name. |
app_settings
|
Application settings. |
azure_storage_accounts
|
User-provided Azure storage accounts. |
connection_strings
|
Connection strings. |
machine_key
|
Site MachineKey. |
handler_mappings
|
Handler mappings. |
document_root
|
Document root. |
scm_type
|
SCM type. Known values are: "None", "Dropbox", "Tfs", "LocalGit", "GitHub", "CodePlexGit", "CodePlexHg", "BitbucketGit", "BitbucketHg", "ExternalGit", "ExternalHg", "OneDrive", and "VSO". |
use32_bit_worker_process
|
|
web_sockets_enabled
|
|
always_on
|
|
java_version
|
Java version. |
java_container
|
Java container. |
java_container_version
|
Java container version. |
app_command_line
|
App command line to launch. |
managed_pipeline_mode
|
Managed pipeline mode. Known values are: "Integrated" and "Classic". |
virtual_applications
|
Virtual applications. |
load_balancing
|
Site load balancing. Known values are: "WeightedRoundRobin", "LeastRequests", "LeastResponseTime", "WeightedTotalTraffic", and "RequestHash". |
experiments
|
This is work around for polymorphic types. |
limits
|
Site limits. |
auto_heal_enabled
|
|
auto_heal_rules
|
Auto Heal rules. |
tracing_options
|
Tracing options. |
vnet_name
|
Virtual Network name. |
cors
|
Cross-Origin Resource Sharing (CORS) settings. |
push
|
Push endpoint settings. |
api_definition
|
Information about the formal API definition for the app. |
auto_swap_slot_name
|
Auto-swap slot name. |
local_my_sql_enabled
|
|
managed_service_identity_id
|
Managed Service Identity Id. |
x_managed_service_identity_id
|
Explicit Managed Service Identity Id. |
ip_security_restrictions
|
IP security restrictions for main. |
scm_ip_security_restrictions
|
IP security restrictions for scm. |
scm_ip_security_restrictions_use_main
|
IP security restrictions for scm to use main. |
http20_enabled
|
Http20Enabled: configures a web site to allow clients to connect over http2.0. |
min_tls_version
|
MinTlsVersion: configures the minimum version of TLS required for SSL requests. Known values are: "1.0", "1.1", and "1.2". |
ftps_state
|
State of FTP / FTPS service. Known values are: "AllAllowed", "FtpsOnly", and "Disabled". |
reserved_instance_count
|
Number of reserved instances. This setting only applies to the Consumption Plan. |
Azure SDK for Python