Gateway interface
代表閘道的介面。
方法
create(string, string, Gateway |
建立具有指定名稱、描述和屬性的閘道資源。 如果閘道資源的名稱相同,則會使用指定的描述和屬性進行更新。 使用閘道資源為應用程式內的服務建立公用連線的閘道。 |
delete(string, string, Gateway |
刪除名稱所識別的閘道資源。 |
get(string, string, Gateway |
取得具有指定名稱之閘道資源的相關資訊。 此資訊包括閘道的描述和其他屬性。 |
list |
可取得指定資源群組中所有閘道資源的相關資訊。 資訊包括閘道的描述與其他屬性。 |
list |
可取得指定資源群組中所有閘道資源的相關資訊。 此資訊包括閘道的描述和其他屬性。 |
方法詳細資料
create(string, string, GatewayResourceDescription, GatewayCreateOptionalParams)
建立具有指定名稱、描述和屬性的閘道資源。 如果閘道資源的名稱相同,則會使用指定的描述和屬性進行更新。 使用閘道資源為應用程式內的服務建立公用連線的閘道。
function create(resourceGroupName: string, gatewayResourceName: string, gatewayResourceDescription: GatewayResourceDescription, options?: GatewayCreateOptionalParams): Promise<GatewayResourceDescription>
參數
- resourceGroupName
-
string
Azure 資源群組名稱
- gatewayResourceName
-
string
閘道的身分識別。
- gatewayResourceDescription
- GatewayResourceDescription
建立閘道資源的描述。
- options
- GatewayCreateOptionalParams
選項參數。
傳回
Promise<GatewayResourceDescription>
delete(string, string, GatewayDeleteOptionalParams)
刪除名稱所識別的閘道資源。
function delete(resourceGroupName: string, gatewayResourceName: string, options?: GatewayDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
Azure 資源群組名稱
- gatewayResourceName
-
string
閘道的身分識別。
- options
- GatewayDeleteOptionalParams
選項參數。
傳回
Promise<void>
get(string, string, GatewayGetOptionalParams)
取得具有指定名稱之閘道資源的相關資訊。 此資訊包括閘道的描述和其他屬性。
function get(resourceGroupName: string, gatewayResourceName: string, options?: GatewayGetOptionalParams): Promise<GatewayResourceDescription>
參數
- resourceGroupName
-
string
Azure 資源群組名稱
- gatewayResourceName
-
string
閘道的身分識別。
- options
- GatewayGetOptionalParams
選項參數。
傳回
Promise<GatewayResourceDescription>
listByResourceGroup(string, GatewayListByResourceGroupOptionalParams)
可取得指定資源群組中所有閘道資源的相關資訊。 資訊包括閘道的描述與其他屬性。
function listByResourceGroup(resourceGroupName: string, options?: GatewayListByResourceGroupOptionalParams): PagedAsyncIterableIterator<GatewayResourceDescription, GatewayResourceDescription[], PageSettings>
參數
- resourceGroupName
-
string
Azure 資源群組名稱
選項參數。
傳回
listBySubscription(GatewayListBySubscriptionOptionalParams)
可取得指定資源群組中所有閘道資源的相關資訊。 此資訊包括閘道的描述和其他屬性。
function listBySubscription(options?: GatewayListBySubscriptionOptionalParams): PagedAsyncIterableIterator<GatewayResourceDescription, GatewayResourceDescription[], PageSettings>
參數
選項參數。