Obtém uma lista de operações elasticSan.
GET https://management.azure.com/providers/Microsoft.ElasticSan/operations?api-version=2022-12-01-preview
Parâmetros do URI
Name |
Em |
Necessário |
Tipo |
Description |
api-version
|
query |
True
|
string
|
A versão da API a utilizar para esta operação.
|
Respostas
Name |
Tipo |
Description |
200 OK
|
OperationListResult
|
OK. O pedido foi efetuada com êxito.
|
Other Status Codes
|
ErrorResponse
|
Erro do Fornecedor de Recursos ElasticSan
|
Segurança
azure_auth
Fluxo OAuth2 do Azure Active Directory
Tipo:
oauth2
Fluxo:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Âmbitos
Name |
Description |
user_impersonation
|
representar a sua conta de utilizador
|
Exemplos
Operations_List_MaximumSet_Gen
Pedido de amostra
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);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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),
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta da amostra
{
"value": [
{
"name": "qgcosclgjmglgs",
"isDataAction": true,
"display": {
"provider": "dbdmmszikohrwlvl",
"resource": "adqzzhgl",
"operation": "ofkypzumjbtezuqujudkqcf",
"description": "fmbdwtvxjilmflxdlmbysmr"
}
}
],
"nextLink": "tfqrgvxkwqjx"
}
Operations_List_MinimumSet_Gen
Pedido de amostra
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);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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"),
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
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);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta da amostra
{
"value": [
{
"name": "qgcosclgjmglgs"
}
]
}
Definições
Name |
Description |
ActionType
|
Enumeração. Indica o tipo de ação. "Interno" refere-se a ações que se destinam apenas a APIs internas.
|
Display
|
Informações de apresentação localizadas para esta operação específica.
|
ErrorAdditionalInfo
|
Informações adicionais sobre o erro de gestão de recursos.
|
ErrorDetail
|
O detalhe do erro.
|
ErrorResponse
|
Resposta a erros
|
Operation
|
Operação da API REST
|
OperationListResult
|
Uma lista das operações da API REST suportadas por um Fornecedor de Recursos do Azure. Contém uma ligação de URL para obter o próximo conjunto de resultados.
|
Origin
|
O executor pretendido da operação; tal como no Controlo de Acesso Baseado em Recursos (RBAC) e na UX de registos de auditoria. O valor predefinido é "utilizador,sistema"
|
ActionType
Enumeração. Indica o tipo de ação. "Interno" refere-se a ações que se destinam apenas a APIs internas.
Name |
Tipo |
Description |
Internal
|
string
|
|
Display
Informações de apresentação localizadas para esta operação específica.
Name |
Tipo |
Description |
description
|
string
|
A breve descrição amigável localizada da operação; adequado para sugestões de ferramentas e vistas detalhadas.
|
operation
|
string
|
O nome amigável conciso e localizado da operação; adequado para listas pendentes. Por exemplo, "Criar ou Atualizar Máquina Virtual", "Reiniciar Máquina Virtual".
|
provider
|
string
|
A forma amigável localizada do nome do fornecedor de recursos, por exemplo, "Microsoft Monitoring Insights" ou "Microsoft Compute".
|
resource
|
string
|
O nome amigável localizado do tipo de recurso relacionado com esta operação. Por exemplo, "Máquinas Virtuais" ou "Coleções de Agendamento de Tarefas".
|
ErrorAdditionalInfo
Informações adicionais sobre o erro de gestão de recursos.
Name |
Tipo |
Description |
info
|
object
|
As informações adicionais.
|
type
|
string
|
O tipo de informações adicionais.
|
ErrorDetail
O detalhe do erro.
Name |
Tipo |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
As informações adicionais do erro.
|
code
|
string
|
O código de erro.
|
details
|
ErrorDetail[]
|
Os detalhes do erro.
|
message
|
string
|
A mensagem de erro.
|
target
|
string
|
O destino do erro.
|
ErrorResponse
Resposta a erros
Name |
Tipo |
Description |
error
|
ErrorDetail
|
O objeto de erro.
|
Operation
Operação da API REST
Name |
Tipo |
Description |
actionType
|
ActionType
|
Enumeração. Indica o tipo de ação. "Interno" refere-se a ações que se destinam apenas a APIs internas.
|
display
|
Display
|
Informações de apresentação localizadas para esta operação específica.
|
isDataAction
|
boolean
|
Se a operação se aplica ao plano de dados. Isto é "verdadeiro" para operações do plano de dados e "falso" para operações ARM/plano de controlo.
|
name
|
string
|
O nome da operação, de acordo com Resource-Based Controlo de Acesso (RBAC). Exemplos: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
|
origin
|
Origin
|
O executor pretendido da operação; tal como no Controlo de Acesso Baseado em Recursos (RBAC) e na UX de registos de auditoria. O valor predefinido é "utilizador,sistema"
|
OperationListResult
Uma lista das operações da API REST suportadas por um Fornecedor de Recursos do Azure. Contém uma ligação de URL para obter o próximo conjunto de resultados.
Name |
Tipo |
Description |
nextLink
|
string
|
URL para obter o próximo conjunto de resultados da lista de operações (se existirem).
|
value
|
Operation[]
|
Lista de operações suportadas pelo fornecedor de recursos
|
Origin
O executor pretendido da operação; tal como no Controlo de Acesso Baseado em Recursos (RBAC) e na UX de registos de auditoria. O valor predefinido é "utilizador,sistema"
Name |
Tipo |
Description |
system
|
string
|
|
user
|
string
|
|
user,system
|
string
|
|