lib/azure/armrest/resource_service.rb
# Checks to see if the given 'resource_name' and 'resource_type' is allowed.
# This returns a JSON string that will indicate the status, including an error
# code and message on failure.
#
# If you want a simple boolean check, use the check_resource? method instead.
#
Checks to see if the given 'resource_name' and 'resource_type' is allowed.
This returns a JSON string that will indicate the status, including an error
code and message on failure.

If you want a simple boolean check, use the check_resource. method instead.
Checks to see if the given ' resource_name ' and ' resource_type ' is allowed . This returns a JSON string that will indicate the status including an error code and message on failure . If you want a simple boolean check use the check_resource . method instead .
def check_resource(resource_name, resource_type)
        body = JSON.dump(:Name => resource_name, :Type => resource_type)
        url = File.join(configuration.environment.resource_url, 'providers', provider, 'checkresourcename')
        url << "?api-version=#{@api_version}"
        response = rest_post(url, body)
        response.return!
      end
def check_resource ( resource_name , resource_type ) body = JSON . dump ( :Name => resource_name , :Type => resource_type ) url = File . join ( configuration . environment . resource_url , 'providers' , provider , 'checkresourcename' ) url << "?api-version=#{@api_version}" response = rest_post ( url , body ) response . return! end
Checks to see if the given 'resource_name' and 'resource_type' is allowed.
Checks to see if the given ' resource_name ' and ' resource_type ' is allowed .
resource_name
<not_specific>
resource_type
<not_specific>