cookbooks/arcgis-enterprise/libraries/portal_admin_client.rb
# Returns portal admin API URL for SSL certificates.
# Before Portal for ArcGIS 10.8 the SSL certificates are configured per site.
# Starting from Portal for ArcGIS 10.8 the SSL certificates are configured per machine.
Returns portal admin API URL for SSL certificates.
Before Portal for ArcGIS 10.8 the SSL certificates are configured per site.
Starting from Portal for ArcGIS 10.8 the SSL certificates are configured per machine.
Returns portal admin API URL for SSL certificates . Before Portal for ArcGIS 10 . 8 the SSL certificates are configured per site . Starting from Portal for ArcGIS 10 . 8 the SSL certificates are configured per machine .
def ssl_certificates_url
      url = @portal_url + "/portaladmin/machines/#{local_machine_name}/sslCertificates"
      token = generate_token(@generate_token_url)
      uri = URI.parse(url)
      uri.query = URI.encode_www_form('token' => token, 'f' => 'json')
      request = Net::HTTP::Get.new(uri.request_uri)
      request.add_field('Referer', 'referer')
      validate_response(send_request(request))
      url
    rescue Exception
      @portal_url + '/portaladmin/security/sslCertificates'
    end
def ssl_certificates_url url = @portal_url + "/portaladmin/machines/#{local_machine_name}/sslCertificates" token = generate_token ( @generate_token_url ) uri = URI . parse ( url ) uri . query = URI . encode_www_form ( 'token' => token , 'f' => 'json' ) request = Net :: HTTP :: Get . new ( uri . request_uri ) request . add_field ( 'Referer' , 'referer' ) validate_response ( send_request ( request ) ) url rescue Exception @portal_url + '/portaladmin/security/sslCertificates' end
Returns portal admin API URL for SSL certificates.
Returns portal admin API URL for SSL certificates .