Interface SupportsGettingByName<T>

  • Type Parameters:
    T - the type of the resource collection
    All Known Subinterfaces:
    Deployments, PolicyDefinitions, Providers, ResourceGroups

    public interface SupportsGettingByName<T>
    Provides access to getting a specific Azure resource based on its name within the current resource group.

    (Note this interface is not intended to be implemented by user code.)

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getByName​(String name)
      Gets the information about a resource from Azure based on the resource name within the current resource group.
      Mono<T> getByNameAsync​(String name)
      Gets the information about a resource based on the resource name ithin the current resource group.
    • Method Detail

      • getByName

        T getByName​(String name)
        Gets the information about a resource from Azure based on the resource name within the current resource group.
        Parameters:
        name - the name of the resource. (Note, this is not the resource ID.)
        Returns:
        An immutable representation of the resource
      • getByNameAsync

        Mono<T> getByNameAsync​(String name)
        Gets the information about a resource based on the resource name ithin the current resource group.
        Parameters:
        name - The name of the resource. (Note, this is not the resource ID.)
        Returns:
        A Mono that emits the found resource asynchronously