Get-AzApiManagementCache
Ottenere i dettagli della cache.
Sintassi
Get-AzApiManagementCache
-Context <PsApiManagementContext>
[-CacheId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementCache
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Descrizione
Ottenere i dettagli della cache configurata nel servizio Gestione API.
Esempio
Esempio 1: Ottenere tutte le cache
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementCache -Context $apimContext
CacheId : westus
Description : apim.redis.cache.windows.net
ConnectionString : {{5cc1848125a3f724dcf9a928}}
ResourceId : https://management.azure.com/subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-West-US/providers/Microsoft.Cache/Redis/apim
Id : /subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-West-US/providers/Microsoft.ApiManagement/service/contoso/caches/westus
ResourceGroupName : Api-Default-West-US
ServiceName : contoso
Ottiene un elenco di tutte le cache configurate nel servizio Gestione API.
Esempio 2: Ottenere la cache specificata dall'identificatore westus
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementCache -Context $apimContext -cacheId westus
CacheId : westus
Description : apim.redis.cache.windows.net
ConnectionString : {{5cc1848125a3f724dcf9a928}}
ResourceId : https://management.azure.com/subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-West-US/providers/Microsoft.Cache/Redis/apim
Id : /subscriptions/a200340d-6b82-494d-9dbf-687ba6e33f9e/resourceGroups/Api-Default-WestUS/providers/Microsoft.ApiManagement/service/contoso/caches/westus
ResourceGroupName : Api-Default-WestUS
ServiceName : contoso
Ottenere i dettagli della cache specificata configurata per westus
Parametri
-CacheId
Identificatore di una cache. Se specificato tenterà di trovare la cache in base all'identificatore. Il parametro è facoltativo.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Context
Istanza di PsApiManagementContext. Questo parametro è obbligatorio.
Type: | PsApiManagementContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Le credenziali, l’account, il tenant e la sottoscrizione usati per comunicare con Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
Identificatore di risorsa arm di una cache. Se specificato tenterà di trovare la cache in base all'identificatore. Questo parametro è obbligatorio.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Input
Output
Collegamenti correlati
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per