Class ResourceId
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.arm.ResourceId
Instantiate itself from a resource id, and give easy access to resource information like subscription, resourceGroup,
resource name.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceIdfromString(String id) Returns parsed ResourceId object for a given resource id.Gets full type of the resource.id()Gets id of the resource.name()Gets the name of the resource.parent()Gets the parent resource id of the resource.Gets name of the provider.Gets the resourceGroupName of the resource.Gets type of the resource.Gets the subscriptionId of the resource.
-
Method Details
-
fromString
Returns parsed ResourceId object for a given resource id.- Parameters:
id- of the resource- Returns:
- ResourceId object
-
subscriptionId
Gets the subscriptionId of the resource.- Returns:
- subscriptionId of the resource.
-
resourceGroupName
Gets the resourceGroupName of the resource.- Returns:
- resourceGroupName of the resource.
-
name
-
parent
Gets the parent resource id of the resource.- Returns:
- parent resource id of the resource if any, otherwise null.
-
providerNamespace
-
resourceType
-
fullResourceType
Gets full type of the resource.- Returns:
- full type of the resource.
-
id
-