java.lang.Object
com.microsoft.azure.management.resources.fluentcore.arm.ResourceId

public final class ResourceId extends Object
Instantiate itself from a resource id, and give easy access to resource information like subscription, resourceGroup, resource name.
  • Method Details

    • fromString

      public static ResourceId fromString(String id)
      Returns parsed ResourceId object for a given resource id.
      Parameters:
      id - of the resource
      Returns:
      ResourceId object
    • subscriptionId

      public String subscriptionId()
      Returns:
      subscriptionId of the resource.
    • resourceGroupName

      public String resourceGroupName()
      Returns:
      resourceGroupName of the resource.
    • name

      public String name()
      Returns:
      name of the resource.
    • parent

      public ResourceId parent()
      Returns:
      parent resource id of the resource if any, otherwise null.
    • providerNamespace

      public String providerNamespace()
      Returns:
      name of the provider.
    • resourceType

      public String resourceType()
      Returns:
      type of the resource.
    • fullResourceType

      public String fullResourceType()
      Returns:
      full type of the resource.
    • id

      public String id()
      Returns:
      the id of the resource.