Opis zatrzymania ciągłego przechwytywania pakietów sieciowych dla lokacji.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop?api-version=2023-01-01
Parametry identyfikatora URI
Nazwa |
W |
Wymagane |
Typ |
Opis |
name
|
path |
True
|
string
|
Nazwa danej aplikacji internetowej.
|
resourceGroupName
|
path |
True
|
string
|
Nazwa grupy zasobów, do której należy zasób.
Regex pattern: ^[-\w\._\(\)]+[^\.]$
|
subscriptionId
|
path |
True
|
string
|
Identyfikator subskrypcji platformy Azure. Jest to ciąg w formacie GUID (np. 00000000-0000-0000-0000-0000-0000000000000000000000000000000000000000 00000).
|
api-version
|
query |
True
|
string
|
Wersja interfejsu API
|
Odpowiedzi
Nazwa |
Typ |
Opis |
200 OK
|
|
Zatrzymano.
|
204 No Content
|
|
Zatrzymano.
|
Other Status Codes
|
DefaultErrorResponse
|
App Service odpowiedź na błąd.
|
Zabezpieczenia
azure_auth
Przepływ OAuth2 usługi Azure Active Directory
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Nazwa |
Opis |
user_impersonation
|
personifikacja konta użytkownika
|
Przykłady
Stop a currently running network trace operation for a site
Sample Request
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/SampleApp/networkTrace/stop?api-version=2023-01-01
from azure.identity import DefaultAzureCredential
from azure.mgmt.web import WebSiteManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-web
# USAGE
python stop_web_site_network_trace.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WebSiteManagementClient(
credential=DefaultAzureCredential(),
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
client.web_apps.stop_web_site_network_trace(
resource_group_name="testrg123",
name="SampleApp",
)
# x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/examples/StopWebSiteNetworkTrace.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armappservice_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/738ab25fe76324897f273645906d4a0415068a6c/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/examples/StopWebSiteNetworkTrace.json
func ExampleWebAppsClient_StopWebSiteNetworkTrace() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappservice.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewWebAppsClient().StopWebSiteNetworkTrace(ctx, "testrg123", "SampleApp", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WebSiteManagementClient } = require("@azure/arm-appservice");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Description for Stop ongoing capturing network packets for the site.
*
* @summary Description for Stop ongoing capturing network packets for the site.
* x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/examples/StopWebSiteNetworkTrace.json
*/
async function stopACurrentlyRunningNetworkTraceOperationForASite() {
const subscriptionId =
process.env["APPSERVICE_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
const resourceGroupName = process.env["APPSERVICE_RESOURCE_GROUP"] || "testrg123";
const name = "SampleApp";
const slot = "Production";
const credential = new DefaultAzureCredential();
const client = new WebSiteManagementClient(credential, subscriptionId);
const result = await client.webApps.stopNetworkTraceSlot(resourceGroupName, name, slot);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Definicje
DefaultErrorResponse
App Service odpowiedź na błąd.
Nazwa |
Typ |
Opis |
error
|
Error
|
Model błędu.
|
Details
Nazwa |
Typ |
Opis |
code
|
string
|
Ustandaryzowany ciąg w celu programowego identyfikowania błędu.
|
message
|
string
|
Szczegółowy opis błędu i informacje o debugowaniu.
|
target
|
string
|
Szczegółowy opis błędu i informacje o debugowaniu.
|
Error
Model błędu.
Nazwa |
Typ |
Opis |
code
|
string
|
Ustandaryzowany ciąg w celu programowego identyfikowania błędu.
|
details
|
Details[]
|
Szczegółowe błędy.
|
innererror
|
string
|
Więcej informacji na temat błędu debugowania.
|
message
|
string
|
Szczegółowy opis błędu i informacje o debugowaniu.
|
target
|
string
|
Szczegółowy opis błędu i informacje o debugowaniu.
|