Esempio n. 1
0
        public static Responses.SQLDatabase.ListServers.ResponseWithoutGeneric ListServersWithoutGeneric(
            System.Security.Cryptography.X509Certificates.X509Certificate2 certificate,
            Guid subscriptionId)
        {
            Uri uri = new Uri(
                GetManagementURI() + "/" +
                subscriptionId.ToString() + "/" +
                "services" + "/" +
                "sqlservers/servers");

            return(InternalMethods.PerformSimpleGet <Responses.SQLDatabase.ListServers.ResponseWithoutGeneric>(uri, certificate, AZURE_VERSION));
        }
Esempio n. 2
0
        public static Responses.SQLDatabase.ListDatabases.Response GetDataMaskingPolicy(
            System.Security.Cryptography.X509Certificates.X509Certificate2 certificate,
            Guid subscriptionId,
            string serverName)
        {
            Uri uri = new Uri(
                GetManagementURI() + "/" +
                subscriptionId.ToString() + "/" +
                "services" + "/" +
                "sqlservers/servers/" +
                serverName + "/" +
                "databases?contentview=generic");

            return(InternalMethods.PerformSimpleGet <Responses.SQLDatabase.ListDatabases.Response>(uri, certificate, AZURE_VERSION));
        }