ApiManagementServiceResource Interface

public interface ApiManagementServiceResource

An immutable client-side representation of ApiManagementServiceResource.

Method Summary

Modifier and Type Method and Description
abstract List<AdditionalLocation> additionalLocations()

Gets the additionalLocations property: Additional datacenter locations of the API Management service.

abstract ApiVersionConstraint apiVersionConstraint()

Gets the apiVersionConstraint property: Control Plane Apis version constraint for the API Management service.

abstract ApiManagementServiceResource applyNetworkConfigurationUpdates()

Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes.

abstract ApiManagementServiceResource applyNetworkConfigurationUpdates(ApiManagementServiceApplyNetworkConfigurationParameters parameters, Context context)

Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes.

abstract ApiManagementServiceResource backup(ApiManagementServiceBackupRestoreParameters parameters)

Creates a backup of the API Management service to the given Azure Storage Account.

abstract ApiManagementServiceResource backup(ApiManagementServiceBackupRestoreParameters parameters, Context context)

Creates a backup of the API Management service to the given Azure Storage Account.

abstract List<CertificateConfiguration> certificates()

Gets the certificates property: List of Certificates that need to be installed in the API Management service.

abstract OffsetDateTime createdAtUtc()

Gets the createdAtUtc property: Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

abstract Map<String,String> customProperties()

Gets the customProperties property: Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults.

abstract String developerPortalUrl()

Gets the developerPortalUrl property: DEveloper Portal endpoint URL of the API Management service.

abstract Boolean disableGateway()

Gets the disableGateway property: Property only valid for an Api Management service deployed in multiple locations.

abstract Boolean enableClientCertificate()

Gets the enableClientCertificate property: Property only meant to be used for Consumption SKU Service.

abstract String etag()

Gets the etag property: ETag of the resource.

abstract String gatewayRegionalUrl()

Gets the gatewayRegionalUrl property: Gateway URL of the API Management service in the Default Region.

abstract String gatewayUrl()

Gets the gatewayUrl property: Gateway URL of the API Management service.

abstract ApiManagementServiceGetSsoTokenResult getSsoToken()

Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.

abstract Response<ApiManagementServiceGetSsoTokenResult> getSsoTokenWithResponse(Context context)

Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.

abstract List<HostnameConfiguration> hostnameConfigurations()

Gets the hostnameConfigurations property: Custom hostname configuration of the API Management service.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract ApiManagementServiceIdentity identity()

Gets the identity property: Managed service identity of the Api Management service.

abstract ApiManagementServiceResourceInner innerModel()

Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.ApiManagementServiceResourceInner object.

abstract String location()

Gets the location property: Resource location.

abstract String managementApiUrl()

Gets the managementApiUrl property: Management API endpoint URL of the API Management service.

abstract ApiManagementServiceResource migrateToStv2()

Upgrades an API Management service to the Stv2 platform.

abstract ApiManagementServiceResource migrateToStv2(Context context)

Upgrades an API Management service to the Stv2 platform.

abstract String name()

Gets the name property: The name of the resource.

abstract NatGatewayState natGatewayState()

Gets the natGatewayState property: Property can be used to enable NAT Gateway for this API Management service.

abstract String notificationSenderEmail()

Gets the notificationSenderEmail property: Email address from which the notification will be sent.

abstract List<String> outboundPublicIpAddresses()

Gets the outboundPublicIpAddresses property: Outbound public IPV4 address prefixes associated with NAT Gateway deployed service.

abstract PlatformVersion platformVersion()

Gets the platformVersion property: Compute Platform Version running the service in this location.

abstract String portalUrl()

Gets the portalUrl property: Publisher portal endpoint Url of the API Management service.

abstract List<RemotePrivateEndpointConnectionWrapper> privateEndpointConnections()

Gets the privateEndpointConnections property: List of Private Endpoint Connections of this service.

abstract List<String> privateIpAddresses()

Gets the privateIpAddresses property: Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network.

abstract String provisioningState()

Gets the provisioningState property: The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted.

abstract String publicIpAddressId()

Gets the publicIpAddressId property: Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region.

abstract List<String> publicIpAddresses()

Gets the publicIpAddresses property: Public Static Load Balanced IP addresses of the API Management service in Primary region.

abstract PublicNetworkAccess publicNetworkAccess()

Gets the publicNetworkAccess property: Whether or not public endpoint access is allowed for this API Management service.

abstract String publisherEmail()

Gets the publisherEmail property: Publisher email.

abstract String publisherName()

Gets the publisherName property: Publisher name.

abstract ApiManagementServiceResource refresh()

Refreshes the resource to sync with Azure.

abstract ApiManagementServiceResource refresh(Context context)

Refreshes the resource to sync with Azure.

abstract Region region()

Gets the region of the resource.

abstract String regionName()

Gets the name of the resource region.

abstract String resourceGroupName()

Gets the name of the resource group.

abstract Boolean restore()

Gets the restore property: Undelete Api Management Service if it was previously soft-deleted.

abstract String scmUrl()

Gets the scmUrl property: SCM endpoint URL of the API Management service.

abstract ApiManagementServiceSkuProperties sku()

Gets the sku property: SKU properties of the API Management service.

abstract SystemData systemData()

Gets the systemData property: Metadata pertaining to creation and last modification of the resource.

abstract Map<String,String> tags()

Gets the tags property: Resource tags.

abstract String targetProvisioningState()

Gets the targetProvisioningState property: The provisioning state of the API Management service, which is targeted by the long running operation started on the service.

abstract String type()

Gets the type property: The type of the resource.

abstract Update update()

Begins update for the ApiManagementServiceResource resource.

abstract VirtualNetworkConfiguration virtualNetworkConfiguration()

Gets the virtualNetworkConfiguration property: Virtual network configuration of the API Management service.

abstract VirtualNetworkType virtualNetworkType()

Gets the virtualNetworkType property: The type of VPN in which API Management service needs to be configured in.

abstract List<String> zones()

Gets the zones property: A list of availability zones denoting where the resource needs to come from.

Method Details

additionalLocations

public abstract List additionalLocations()

Gets the additionalLocations property: Additional datacenter locations of the API Management service.

Returns:

the additionalLocations value.

apiVersionConstraint

public abstract ApiVersionConstraint apiVersionConstraint()

Gets the apiVersionConstraint property: Control Plane Apis version constraint for the API Management service.

Returns:

the apiVersionConstraint value.

applyNetworkConfigurationUpdates

public abstract ApiManagementServiceResource applyNetworkConfigurationUpdates()

Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes.

Returns:

a single API Management service resource in List or Get response.

applyNetworkConfigurationUpdates

public abstract ApiManagementServiceResource applyNetworkConfigurationUpdates(ApiManagementServiceApplyNetworkConfigurationParameters parameters, Context context)

Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes.

Parameters:

parameters - Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region.
context - The context to associate with this operation.

Returns:

a single API Management service resource in List or Get response.

backup

public abstract ApiManagementServiceResource backup(ApiManagementServiceBackupRestoreParameters parameters)

Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete.

Parameters:

parameters - Parameters supplied to the ApiManagementService_Backup operation.

Returns:

a single API Management service resource in List or Get response.

backup

public abstract ApiManagementServiceResource backup(ApiManagementServiceBackupRestoreParameters parameters, Context context)

Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete.

Parameters:

parameters - Parameters supplied to the ApiManagementService_Backup operation.
context - The context to associate with this operation.

Returns:

a single API Management service resource in List or Get response.

certificates

public abstract List certificates()

Gets the certificates property: List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10.

Returns:

the certificates value.

createdAtUtc

public abstract OffsetDateTime createdAtUtc()

Gets the createdAtUtc property: Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

the createdAtUtc value.

customProperties

public abstract Map customProperties()

Gets the customProperties property: Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256.

Returns:

the customProperties value.

developerPortalUrl

public abstract String developerPortalUrl()

Gets the developerPortalUrl property: DEveloper Portal endpoint URL of the API Management service.

Returns:

the developerPortalUrl value.

disableGateway

public abstract Boolean disableGateway()

Gets the disableGateway property: Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region.

Returns:

the disableGateway value.

enableClientCertificate

public abstract Boolean enableClientCertificate()

Gets the enableClientCertificate property: Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway.

Returns:

the enableClientCertificate value.

etag

public abstract String etag()

Gets the etag property: ETag of the resource.

Returns:

the etag value.

gatewayRegionalUrl

public abstract String gatewayRegionalUrl()

Gets the gatewayRegionalUrl property: Gateway URL of the API Management service in the Default Region.

Returns:

the gatewayRegionalUrl value.

gatewayUrl

public abstract String gatewayUrl()

Gets the gatewayUrl property: Gateway URL of the API Management service.

Returns:

the gatewayUrl value.

getSsoToken

public abstract ApiManagementServiceGetSsoTokenResult getSsoToken()

Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.

Returns:

the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.

getSsoTokenWithResponse

public abstract Response getSsoTokenWithResponse(Context context)

Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.

Parameters:

context - The context to associate with this operation.

Returns:

the Single-Sign-On token for the API Management Service which is valid for 5 Minutes along with Response<T>.

hostnameConfigurations

public abstract List hostnameConfigurations()

Gets the hostnameConfigurations property: Custom hostname configuration of the API Management service.

Returns:

the hostnameConfigurations value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

identity

public abstract ApiManagementServiceIdentity identity()

Gets the identity property: Managed service identity of the Api Management service.

Returns:

the identity value.

innerModel

public abstract ApiManagementServiceResourceInner innerModel()

Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.ApiManagementServiceResourceInner object.

Returns:

the inner object.

location

public abstract String location()

Gets the location property: Resource location.

Returns:

the location value.

managementApiUrl

public abstract String managementApiUrl()

Gets the managementApiUrl property: Management API endpoint URL of the API Management service.

Returns:

the managementApiUrl value.

migrateToStv2

public abstract ApiManagementServiceResource migrateToStv2()

Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete.

Returns:

a single API Management service resource in List or Get response.

migrateToStv2

public abstract ApiManagementServiceResource migrateToStv2(Context context)

Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete.

Parameters:

context - The context to associate with this operation.

Returns:

a single API Management service resource in List or Get response.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

natGatewayState

public abstract NatGatewayState natGatewayState()

Gets the natGatewayState property: Property can be used to enable NAT Gateway for this API Management service.

Returns:

the natGatewayState value.

notificationSenderEmail

public abstract String notificationSenderEmail()

Gets the notificationSenderEmail property: Email address from which the notification will be sent.

Returns:

the notificationSenderEmail value.

outboundPublicIpAddresses

public abstract List outboundPublicIpAddresses()

Gets the outboundPublicIpAddresses property: Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.

Returns:

the outboundPublicIpAddresses value.

platformVersion

public abstract PlatformVersion platformVersion()

Gets the platformVersion property: Compute Platform Version running the service in this location.

Returns:

the platformVersion value.

portalUrl

public abstract String portalUrl()

Gets the portalUrl property: Publisher portal endpoint Url of the API Management service.

Returns:

the portalUrl value.

privateEndpointConnections

public abstract List privateEndpointConnections()

Gets the privateEndpointConnections property: List of Private Endpoint Connections of this service.

Returns:

the privateEndpointConnections value.

privateIpAddresses

public abstract List privateIpAddresses()

Gets the privateIpAddresses property: Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU.

Returns:

the privateIpAddresses value.

provisioningState

public abstract String provisioningState()

Gets the provisioningState property: The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted.

Returns:

the provisioningState value.

publicIpAddressId

public abstract String publicIpAddressId()

Gets the publicIpAddressId property: Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network.

Returns:

the publicIpAddressId value.

publicIpAddresses

public abstract List publicIpAddresses()

Gets the publicIpAddresses property: Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU.

Returns:

the publicIpAddresses value.

publicNetworkAccess

public abstract PublicNetworkAccess publicNetworkAccess()

Gets the publicNetworkAccess property: Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.

Returns:

the publicNetworkAccess value.

publisherEmail

public abstract String publisherEmail()

Gets the publisherEmail property: Publisher email.

Returns:

the publisherEmail value.

publisherName

public abstract String publisherName()

Gets the publisherName property: Publisher name.

Returns:

the publisherName value.

refresh

public abstract ApiManagementServiceResource refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract ApiManagementServiceResource refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

region

public abstract Region region()

Gets the region of the resource.

Returns:

the region of the resource.

regionName

public abstract String regionName()

Gets the name of the resource region.

Returns:

the name of the resource region.

resourceGroupName

public abstract String resourceGroupName()

Gets the name of the resource group.

Returns:

the name of the resource group.

restore

public abstract Boolean restore()

Gets the restore property: Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored.

Returns:

the restore value.

scmUrl

public abstract String scmUrl()

Gets the scmUrl property: SCM endpoint URL of the API Management service.

Returns:

the scmUrl value.

sku

public abstract ApiManagementServiceSkuProperties sku()

Gets the sku property: SKU properties of the API Management service.

Returns:

the sku value.

systemData

public abstract SystemData systemData()

Gets the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

tags

public abstract Map tags()

Gets the tags property: Resource tags.

Returns:

the tags value.

targetProvisioningState

public abstract String targetProvisioningState()

Gets the targetProvisioningState property: The provisioning state of the API Management service, which is targeted by the long running operation started on the service.

Returns:

the targetProvisioningState value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

update

public abstract ApiManagementServiceResource.Update update()

Begins update for the ApiManagementServiceResource resource.

Returns:

the stage of resource update.

virtualNetworkConfiguration

public abstract VirtualNetworkConfiguration virtualNetworkConfiguration()

Gets the virtualNetworkConfiguration property: Virtual network configuration of the API Management service.

Returns:

the virtualNetworkConfiguration value.

virtualNetworkType

public abstract VirtualNetworkType virtualNetworkType()

Gets the virtualNetworkType property: The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only.

Returns:

the virtualNetworkType value.

zones

public abstract List zones()

Gets the zones property: A list of availability zones denoting where the resource needs to come from.

Returns:

the zones value.

Applies to