HostingApi - object-oriented interface

Export

Hierarchy

Implements

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: Configuration

Methods

  • Enable or disable App Services Hosting for your app. Changes to hosting can take up to 15 minutes to take effect. This endpoint does not notify you when the changes have taken effect, only that the change operation was successfully received by the server. You can see if the hosting enablement/disablement is complete by calling the Get Hosting Configuration endpoint.

    Parameters

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Enable/Disable Hosting

    Throws

    Memberof

    HostingApi

  • Parameters

    • path: any

      The resource path of a hosted asset.

    • Optional prefix: any

      Return only those assets where the resource path begins with the specified prefix.

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<HostedAssetMetadata, any>>

    Summary

    Retrieve metadata for a specific hosted asset

    Throws

    Memberof

    HostingApi

  • Update the metadata attributes of a hosted asset at a specific resource path.

    Parameters

    • path: any

      The resource path of a hosted asset.

    • adminUpdateHostedAssetRequest: AdminUpdateHostedAssetRequest

      The new metadata attributes for the hosted asset. These attributes replace all existing attributes for the file.

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Update the metadata attributes of a hosted asset

    Throws

    Memberof

    HostingApi

  • Upload or replace a hosted asset at a specific resource path.

    Parameters

    • path: any

      The resource path of a hosted asset.

    • adminUploadHostedAssetRequest: AdminUploadHostedAssetRequest

      The hosted asset file and its metadata. (Must use `Content-Type: multipart/mixed`)

    • Optional options: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Summary

    Upload or replace a hosted asset

    Throws

    Memberof

    HostingApi

Generated using TypeDoc