### YamlMime:JavaType uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils" name: "ResourceUtils" nameWithType: "ResourceUtils" summary: "Utility methods for Azure resource IDs." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public final class **ResourceUtils**" methods: - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.constructResourceId(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.constructResourceId(String subscriptionId, String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String parentResourcePath)" name: "constructResourceId(String subscriptionId, String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String parentResourcePath)" nameWithType: "ResourceUtils.constructResourceId(String subscriptionId, String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String parentResourcePath)" summary: "Creates a resource ID from information of a generic resource." modifiers: - "static" parameters: - description: "the subscription UUID" name: "subscriptionId" type: "" - description: "the resource group name" name: "resourceGroupName" type: "" - description: "the resource provider namespace" name: "resourceProviderNamespace" type: "" - description: "the type of the resource or nested resource" name: "resourceType" type: "" - description: "name of the resource or nested resource" name: "resourceName" type: "" - description: "parent resource's relative path to the provider,\n if the resource is a generic resource" name: "parentResourcePath" type: "" syntax: "public static String constructResourceId(String subscriptionId, String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String parentResourcePath)" desc: "Creates a resource ID from information of a generic resource." returns: description: "the resource ID string" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.defaultApiVersion(java.lang.String,com.microsoft.azure.management.resources.Provider)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.defaultApiVersion(String id, Provider provider)" name: "defaultApiVersion(String id, Provider provider)" nameWithType: "ResourceUtils.defaultApiVersion(String id, Provider provider)" summary: "Find out the default api version to make a REST request with from the resource provider." modifiers: - "static" parameters: - description: "the resource ID" name: "id" type: "" - description: "the resource provider" name: "provider" type: "" syntax: "public static String defaultApiVersion(String id, Provider provider)" desc: "Find out the default api version to make a REST request with from the resource provider." returns: description: "the default api version to use" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.extractFromResourceId(java.lang.String,java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.extractFromResourceId(String id, String identifier)" name: "extractFromResourceId(String id, String identifier)" nameWithType: "ResourceUtils.extractFromResourceId(String id, String identifier)" summary: "Extract information from a resource ID string with the resource type as the identifier." modifiers: - "static" parameters: - description: "the resource ID" name: "id" type: "" - description: "the identifier to match, e.g. \"resourceGroups\", \"storageAccounts\"" name: "identifier" type: "" syntax: "public static String extractFromResourceId(String id, String identifier)" desc: "Extract information from a resource ID string with the resource type as the identifier." returns: description: "the information extracted from the identifier" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.groupFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.groupFromResourceId(String id)" name: "groupFromResourceId(String id)" nameWithType: "ResourceUtils.groupFromResourceId(String id)" summary: "Extract resource group from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String groupFromResourceId(String id)" desc: "Extract resource group from a resource ID string." returns: description: "the resource group name" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.nameFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.nameFromResourceId(String id)" name: "nameFromResourceId(String id)" nameWithType: "ResourceUtils.nameFromResourceId(String id)" summary: "Extract name of the resource from a resource ID." modifiers: - "static" parameters: - description: "the resource ID" name: "id" type: "" syntax: "public static String nameFromResourceId(String id)" desc: "Extract name of the resource from a resource ID." returns: description: "the name of the resource" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.parentRelativePathFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.parentRelativePathFromResourceId(String id)" name: "parentRelativePathFromResourceId(String id)" nameWithType: "ResourceUtils.parentRelativePathFromResourceId(String id)" summary: "Extract parent resource path from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String parentRelativePathFromResourceId(String id)" desc: "Extract parent resource path from a resource ID string. E.g. subscriptions/s/resourcegroups/r/foos/foo/bars/bar will return foos/foo." returns: description: "the parent resource ID" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.parentResourceIdFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.parentResourceIdFromResourceId(String id)" name: "parentResourceIdFromResourceId(String id)" nameWithType: "ResourceUtils.parentResourceIdFromResourceId(String id)" summary: "Extract parent resource ID from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String parentResourceIdFromResourceId(String id)" desc: "Extract parent resource ID from a resource ID string. E.g. subscriptions/s/resourcegroups/r/foos/foo/bars/bar will return subscriptions/s/resourcegroups/r/foos/foo." returns: description: "the parent resource ID" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.relativePathFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.relativePathFromResourceId(String id)" name: "relativePathFromResourceId(String id)" nameWithType: "ResourceUtils.relativePathFromResourceId(String id)" summary: "Extract the relative path to the current resource provider." modifiers: - "static" parameters: - description: "the id of the resource" name: "id" type: "" syntax: "public static String relativePathFromResourceId(String id)" desc: "Extract the relative path to the current resource provider. E.g. subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Foo/foos/foo1 will return foos/foo1." returns: description: "the relative path" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.resourceProviderFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.resourceProviderFromResourceId(String id)" name: "resourceProviderFromResourceId(String id)" nameWithType: "ResourceUtils.resourceProviderFromResourceId(String id)" summary: "Extract resource provider from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String resourceProviderFromResourceId(String id)" desc: "Extract resource provider from a resource ID string." returns: description: "the resource group name" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.resourceTypeFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.resourceTypeFromResourceId(String id)" name: "resourceTypeFromResourceId(String id)" nameWithType: "ResourceUtils.resourceTypeFromResourceId(String id)" summary: "Extract resource type from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String resourceTypeFromResourceId(String id)" desc: "Extract resource type from a resource ID string." returns: description: "the resource type" type: "" - uid: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.subscriptionFromResourceId(java.lang.String)" fullName: "com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils.subscriptionFromResourceId(String id)" name: "subscriptionFromResourceId(String id)" nameWithType: "ResourceUtils.subscriptionFromResourceId(String id)" summary: "Extract the subscription ID from a resource ID string." modifiers: - "static" parameters: - description: "the resource ID string" name: "id" type: "" syntax: "public static String subscriptionFromResourceId(String id)" desc: "Extract the subscription ID from a resource ID string." returns: description: "the subscription ID" type: "" type: "class" desc: "Utility methods for Azure resource IDs." metadata: {} package: "com.microsoft.azure.management.resources.fluentcore.arm" artifact: com.microsoft.azure:azure-mgmt-resources:1.41.4