ResourceId Class

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

public class ResourceId

Instantiate itself from a resource id, and give easy access to resource information like subscription, resourceGroup, resource name.

Method Summary

Modifier and Type Method and Description
ResourceId fromString(String id)

Returns parsed ResourceId object for a given resource id.

String fullResourceType()
String id()
String name()
ResourceId parent()
String providerNamespace()
String resourceGroupName()
String resourceType()
String subscriptionId()

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

fullResourceType

public String fullResourceType()

Returns:

full type of the resource.

id

public String id()

Returns:

the id 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.

resourceGroupName

public String resourceGroupName()

Returns:

resourceGroupName of the resource.

resourceType

public String resourceType()

Returns:

type of the resource.

subscriptionId

public String subscriptionId()

Returns:

subscriptionId of the resource.

Applies to