GET https://management.azure.com/providers/Microsoft.ElasticSan/operations?api-version=2022-12-01-preview
/** Samples for Operations List. */
public final class Main {
/*
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MaximumSet_Gen.json
*/
/**
* Sample code: Operations_List_MaximumSet_Gen.
*
* @param manager Entry point to ElasticSanManager.
*/
public static void operationsListMaximumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
from azure.identity import DefaultAzureCredential
from azure.mgmt.elasticsan import ElasticSanMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-elasticsan
# USAGE
python operations_list_maximum_set_gen.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 = ElasticSanMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.operations.list()
for item in response:
print(item)
# x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MaximumSet_Gen.json
if __name__ == "__main__":
main()
package armelasticsan_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c53808ba54beef57059371708f1fa6949a11a280/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MaximumSet_Gen.json
func ExampleOperationsClient_NewListPager_operationsListMaximumSetGen() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armelasticsan.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.OperationListResult = armelasticsan.OperationListResult{
// Value: []*armelasticsan.Operation{
// {
// Name: to.Ptr("qgcosclgjmglgs"),
// Display: &armelasticsan.OperationDisplay{
// Description: to.Ptr("fmbdwtvxjilmflxdlmbysmr"),
// Operation: to.Ptr("ofkypzumjbtezuqujudkqcf"),
// Provider: to.Ptr("dbdmmszikohrwlvl"),
// Resource: to.Ptr("adqzzhgl"),
// },
// IsDataAction: to.Ptr(true),
// }},
// }
}
}
const { ElasticSanManagement } = require("@azure/arm-elasticsan");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Gets a list of ElasticSan operations.
*
* @summary Gets a list of ElasticSan operations.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MaximumSet_Gen.json
*/
async function operationsListMaximumSetGen() {
const subscriptionId =
process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new ElasticSanManagement(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
}
console.log(resArray);
}
GET https://management.azure.com/providers/Microsoft.ElasticSan/operations?api-version=2022-12-01-preview
/** Samples for Operations List. */
public final class Main {
/*
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List_MinimumSet_Gen.
*
* @param manager Entry point to ElasticSanManager.
*/
public static void operationsListMinimumSetGen(com.azure.resourcemanager.elasticsan.ElasticSanManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
from azure.identity import DefaultAzureCredential
from azure.mgmt.elasticsan import ElasticSanMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-elasticsan
# USAGE
python operations_list_minimum_set_gen.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 = ElasticSanMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.operations.list()
for item in response:
print(item)
# x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MinimumSet_Gen.json
if __name__ == "__main__":
main()
package armelasticsan_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c53808ba54beef57059371708f1fa6949a11a280/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MinimumSet_Gen.json
func ExampleOperationsClient_NewListPager_operationsListMinimumSetGen() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armelasticsan.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.OperationListResult = armelasticsan.OperationListResult{
// Value: []*armelasticsan.Operation{
// {
// Name: to.Ptr("qgcosclgjmglgs"),
// }},
// }
}
}
const { ElasticSanManagement } = require("@azure/arm-elasticsan");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Gets a list of ElasticSan operations.
*
* @summary Gets a list of ElasticSan operations.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/examples/Operations_List_MinimumSet_Gen.json
*/
async function operationsListMinimumSetGen() {
const subscriptionId =
process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new ElasticSanManagement(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
}
console.log(resArray);
}
A művelet tervezett végrehajtója; az erőforrás-alapú hozzáférés-vezérlés (RBAC) és a naplózási naplók UX-jához hasonlóan. Az alapértelmezett érték a "felhasználó,rendszer"
ActionType
Enumerálás
Enum. A művelet típusát jelzi. A "belső" olyan műveletekre vonatkozik, amelyek csak belső API-kra vonatkoznak.
Érték
Description
Internal
Display
Objektum
Az adott művelet honosított megjelenítési információi.
Name
Típus
Description
description
string
A művelet rövid, honosított rövid leírása; eszköztippekhez és részletes nézetekhez alkalmas.
operation
string
A művelet tömör, honosított felhasználóbarát neve; legördülő listákhoz. Például: "Virtuális gép létrehozása vagy frissítése", "Virtuális gép újraindítása".
provider
string
Az erőforrás-szolgáltató nevének honosított felhasználóbarát formája, például "Microsoft Monitoring Insights" vagy "Microsoft Compute".
resource
string
A művelethez kapcsolódó erőforrástípus honosított rövid neve. Például "Virtuális gépek" vagy "Feladatütemezési gyűjtemények".
Az adott művelet honosított megjelenítési információi.
isDataAction
boolean
Azt jelzi, hogy a művelet az adatsíkra vonatkozik-e. Ez "igaz" az adatsík-műveletekhez, és "hamis" az ARM-/vezérlősík-műveletekhez.
name
string
A művelet neve Resource-Based Hozzáférés-vezérlés (RBAC) szerint. Példák: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
A művelet tervezett végrehajtója; az erőforrás-alapú hozzáférés-vezérlés (RBAC) és a naplózási naplók UX-jához hasonlóan. Az alapértelmezett érték a "felhasználó,rendszer"
OperationListResult
Objektum
Az Azure Resource Provider által támogatott REST API-műveletek listája. Tartalmaz egy URL-hivatkozást a következő találatkészlet lekéréséhez.
Name
Típus
Description
nextLink
string
URL-cím a következő műveletlista eredményeinek lekéréséhez (ha vannak ilyenek).
Az erőforrás-szolgáltató által támogatott műveletek listája
Origin
Enumerálás
A művelet tervezett végrehajtója; az erőforrás-alapú hozzáférés-vezérlés (RBAC) és a naplózási naplók UX-jához hasonlóan. Az alapértelmezett érték a "felhasználó,rendszer"