Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebCmdletWebResponseException when calling New-APPermissionReport #27

Open
mfschumann opened this issue Apr 25, 2022 · 2 comments
Open

Comments

@mfschumann
Copy link

I am trying to generate a list of users that have permissions for a certain repository in an Azure DevOps project, following your tutorial on stack overflow.

After creating the session I run

New-APPermissionReport -Session 'mySession' -InputObject @{
	descriptors = @()
	reportName = 'permReport'
	resources = @(
		@{
		resourceId = 'myProject/myRepo'
		resourceName = 'myRepo'
		resourceType = 'repo'
		}
	)
}

which results in the following error:

In C:\Users\Martin\Documents\WindowsPowerShell\Modules\AzurePipelinesPS\4.0.20\AzurePipelinesPS.psm1:34473 Zeichen:16
+         return Invoke-RestMethod @authenticatedRestMethodSplat
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

As far as I can tell the session should be OK, as I can successfully run Get-APBuildList -Session 'mySession' for example.

@Dejulia489
Copy link
Owner

Can you run this command and provide the output of $error[0].exception | convertto-json?

@mfschumann
Copy link
Author

Sure:

{
    "Status":  7,
    "Response":  {
                     "IsMutuallyAuthenticated":  false,
                     "Cookies":  [
                                     "VstsSession=%7B%22PersistentSessionId%22%3A%2249879319-993e-44d6-9c3d-7e70a1bb3ad9%22%2C%22PendingAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22CurrentAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22SignInState%22%3A%7B%7D%7D"
                                 ],
                     "Headers":  [
                                     "Pragma",
                                     "X-TFS-ProcessId",
                                     "Strict-Transport-Security",
                                     "ActivityId",
                                     "X-TFS-Session",
                                     "X-VSS-E2EID",
                                     "X-VSS-SenderDeploymentId",
                                     "X-VSS-UserData",
                                     "X-FRAME-OPTIONS",
                                     "X-TFS-ServiceError",
                                     "Request-Context",
                                     "Access-Control-Expose-Headers",
                                     "X-Content-Type-Options",
                                     "X-Cache",
                                     "X-MSEdge-Ref",
                                     "Content-Length",
                                     "Cache-Control",
                                     "Content-Type",
                                     "Date",
                                     "Expires",
                                     "P3P",
                                     "Set-Cookie"
                                 ],
                     "SupportsHeaders":  true,
                     "ContentLength":  133993,
                     "ContentEncoding":  "",
                     "ContentType":  "text/html",
                     "CharacterSet":  "ISO-8859-1",
                     "Server":  "",
                     "LastModified":  "\/Date(1656928784471)\/",
                     "StatusCode":  404,
                     "StatusDescription":  "Not Found",
                     "ProtocolVersion":  {
                                             "Major":  1,
                                             "Minor":  1,
                                             "Build":  -1,
                                             "Revision":  -1,
                                             "MajorRevision":  -1,
                                             "MinorRevision":  -1
                                         },
                     "ResponseUri":  "https://dev.azure.com/myOrganization/_apis/permissionsreport?api-version=5.0-preview",
                     "Method":  "POST",
                     "IsFromCache":  false
                 },
    "Message":  "Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden.",
    "Data":  {

             },
    "InnerException":  null,
    "TargetSite":  {
                       "Name":  "GetResponse",
                       "DeclaringType":  {
                                             "Module":  "Microsoft.PowerShell.Commands.Utility.dll",
                                             "Assembly":  "Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
                                             "TypeHandle":  "System.RuntimeTypeHandle",
                                             "DeclaringMethod":  null,
                                             "BaseType":  "System.Management.Automation.PSCmdlet",
                                             "UnderlyingSystemType":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet",
                                             "FullName":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet",
                                             "AssemblyQualifiedName":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet, Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
                                             "Namespace":  "Microsoft.PowerShell.Commands",
                                             "GUID":  "98f20a98-b68c-3efc-ba18-b3bce9000a63",
                                             "IsEnum":  false,
                                             "GenericParameterAttributes":  null,
                                             "IsSecurityCritical":  true,
                                             "IsSecuritySafeCritical":  false,
                                             "IsSecurityTransparent":  false,
                                             "IsGenericTypeDefinition":  false,
                                             "IsGenericParameter":  false,
                                             "GenericParameterPosition":  null,
                                             "IsGenericType":  false,
                                             "IsConstructedGenericType":  false,
                                             "ContainsGenericParameters":  false,
                                             "StructLayoutAttribute":  "System.Runtime.InteropServices.StructLayoutAttribute",
                                             "Name":  "WebRequestPSCmdlet",
                                             "MemberType":  32,
                                             "DeclaringType":  null,
                                             "ReflectedType":  null,
                                             "MetadataToken":  33554674,
                                             "GenericTypeParameters":  "",
                                             "DeclaredConstructors":  "Void .ctor()",
                                             "DeclaredEvents":  "",
                                             "DeclaredFields":  "System.Management.Automation.SwitchParameter \u003cUseBasicParsing\u003ek__BackingField System.Uri \u003cUri\u003ek__BackingField Microsoft.PowerShell.Commands.WebRequestSession \u003cWebSession\u003ek__BackingField System.String \u003cSessionVariable\u003ek__BackingField System.Management.Automation.PSCredential \u003cCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cUseDefaultCredentials\u003ek__BackingField System.String \u003cCertificateThumbprint\u003ek__BackingField System.Security.Cryptography.X509Certificates.X509Certificate \u003cCertificate\u003ek__BackingField System.String \u003cUserAgent\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cDisableKeepAlive\u003ek__BackingField Int32 \u003cTimeoutSec\u003ek__BackingField System.Collections.IDictionary \u003cHeaders\u003ek__BackingField Int32 maximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod method System.Uri \u003cProxy\u003ek__BackingField System.Management.Automation.PSCredential \u003cProxyCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cProxyUseDefaultCredentials\u003ek__BackingField System.Object \u003cBody\u003ek__BackingField System.String \u003cContentType\u003ek__BackingField System.String \u003cTransferEncoding\u003ek__BackingField System.String \u003cInFile\u003ek__BackingField System.String _originalFilePath System.String \u003cOutFile\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cPassThru\u003ek__BackingField System.Net.WebRequest _webRequest",
                                             "DeclaredMembers":  "System.Net.WebResponse GetResponse(System.Net.WebRequest) System.Management.Automation.SwitchParameter get_UseBasicParsing() Void set_UseBasicParsing(System.Management.Automation.SwitchParameter) System.Uri get_Uri() Void set_Uri(System.Uri) Microsoft.PowerShell.Commands.WebRequestSession get_WebSession() Void set_WebSession(Microsoft.PowerShell.Commands.WebRequestSession) System.String get_SessionVariable() Void set_SessionVariable(System.String) System.Management.Automation.PSCredential get_Credential() Void set_Credential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_UseDefaultCredentials() Void set_UseDefaultCredentials(System.Management.Automation.SwitchParameter) System.String get_CertificateThumbprint() Void set_CertificateThumbprint(System.String) System.Security.Cryptography.X509Certificates.X509Certificate get_Certificate() Void set_Certificate(System.Security.Cryptography.X509Certificates.X509Certificate) System.String get_UserAgent() Void set_UserAgent(System.String) System.Management.Automation.SwitchParameter get_DisableKeepAlive() Void set_DisableKeepAlive(System.Management.Automation.SwitchParameter) Int32 get_TimeoutSec() Void set_TimeoutSec(Int32) System.Collections.IDictionary get_Headers() Void set_Headers(System.Collections.IDictionary) Int32 get_MaximumRedirection() Void set_MaximumRedirection(Int32) Microsoft.PowerShell.Commands.WebRequestMethod get_Method() Void set_Method(Microsoft.PowerShell.Commands.WebRequestMethod) System.Uri get_Proxy() Void set_Proxy(System.Uri) System.Management.Automation.PSCredential get_ProxyCredential() Void set_ProxyCredential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_ProxyUseDefaultCredentials() Void set_ProxyUseDefaultCredentials(System.Management.Automation.SwitchParameter) System.Object get_Body() Void set_Body(System.Object) System.String get_ContentType() Void set_ContentType(System.String) System.String get_TransferEncoding() Void set_TransferEncoding(System.String) System.String get_InFile() Void set_InFile(System.String) System.String get_OutFile() Void set_OutFile(System.String) System.Management.Automation.SwitchParameter get_PassThru() Void set_PassThru(System.Management.Automation.SwitchParameter) Void ValidateParameters() Void PrepareSession() System.String get_QualifiedOutFile() Boolean get_ShouldSaveToOutFile() Boolean get_ShouldWriteToPipeline() Boolean VerifyInternetExplorerAvailable(Boolean) System.Uri PrepareUri(System.Uri) System.Uri CheckProtocol(System.Uri) System.String QualifyFilePath(System.String) System.String FormatDictionary(System.Collections.IDictionary) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String, System.Object[]) Void ProcessResponse(System.Net.WebResponse) System.Net.WebRequest GetRequest(System.Uri) Boolean TryMapHeaaderToProperty(System.Net.HttpWebRequest, System.String) Void FillRequestStream(System.Net.WebRequest) Void UpdateSession(System.Net.WebResponse) Void ProcessRecord() Void StopProcessing() Void ResponseCallback(System.IAsyncResult) Void TimeoutCallback(System.Object, Boolean) Int64 SetRequestContent(System.Net.WebRequest, Byte[]) Int64 SetRequestContent(System.Net.WebRequest, System.String) Int64 SetRequestContent(System.Net.WebRequest, System.Xml.XmlNode) Int64 SetRequestContent(System.Net.WebRequest, System.IO.Stream) Int64 SetRequestContent(System.Net.WebRequest, System.Collections.IDictionary) Void .ctor() System.Management.Automation.SwitchParameter UseBasicParsing System.Uri Uri Microsoft.PowerShell.Commands.WebRequestSession WebSession System.String SessionVariable System.Management.Automation.PSCredential Credential System.Management.Automation.SwitchParameter UseDefaultCredentials System.String CertificateThumbprint System.Security.Cryptography.X509Certificates.X509Certificate Certificate System.String UserAgent System.Management.Automation.SwitchParameter DisableKeepAlive Int32 TimeoutSec System.Collections.IDictionary Headers Int32 MaximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod Method System.Uri Proxy System.Management.Automation.PSCredential ProxyCredential System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials System.Object Body System.String ContentType System.String TransferEncoding System.String InFile System.String OutFile System.Management.Automation.SwitchParameter PassThru System.String QualifiedOutFile Boolean ShouldSaveToOutFile Boolean ShouldWriteToPipeline System.Management.Automation.SwitchParameter \u003cUseBasicParsing\u003ek__BackingField System.Uri \u003cUri\u003ek__BackingField Microsoft.PowerShell.Commands.WebRequestSession \u003cWebSession\u003ek__BackingField System.String \u003cSessionVariable\u003ek__BackingField System.Management.Automation.PSCredential \u003cCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cUseDefaultCredentials\u003ek__BackingField System.String \u003cCertificateThumbprint\u003ek__BackingField System.Security.Cryptography.X509Certificates.X509Certificate \u003cCertificate\u003ek__BackingField System.String \u003cUserAgent\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cDisableKeepAlive\u003ek__BackingField Int32 \u003cTimeoutSec\u003ek__BackingField System.Collections.IDictionary \u003cHeaders\u003ek__BackingField Int32 maximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod method System.Uri \u003cProxy\u003ek__BackingField System.Management.Automation.PSCredential \u003cProxyCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cProxyUseDefaultCredentials\u003ek__BackingField System.Object \u003cBody\u003ek__BackingField System.String \u003cContentType\u003ek__BackingField System.String \u003cTransferEncoding\u003ek__BackingField System.String \u003cInFile\u003ek__BackingField System.String _originalFilePath System.String \u003cOutFile\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cPassThru\u003ek__BackingField System.Net.WebRequest _webRequest Microsoft.PowerShell.Commands.WebRequestPSCmdlet+WebRequestState Microsoft.PowerShell.Commands.WebRequestPSCmdlet+TimeoutState",
                                             "DeclaredMethods":  "System.Net.WebResponse GetResponse(System.Net.WebRequest) System.Management.Automation.SwitchParameter get_UseBasicParsing() Void set_UseBasicParsing(System.Management.Automation.SwitchParameter) System.Uri get_Uri() Void set_Uri(System.Uri) Microsoft.PowerShell.Commands.WebRequestSession get_WebSession() Void set_WebSession(Microsoft.PowerShell.Commands.WebRequestSession) System.String get_SessionVariable() Void set_SessionVariable(System.String) System.Management.Automation.PSCredential get_Credential() Void set_Credential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_UseDefaultCredentials() Void set_UseDefaultCredentials(System.Management.Automation.SwitchParameter) System.String get_CertificateThumbprint() Void set_CertificateThumbprint(System.String) System.Security.Cryptography.X509Certificates.X509Certificate get_Certificate() Void set_Certificate(System.Security.Cryptography.X509Certificates.X509Certificate) System.String get_UserAgent() Void set_UserAgent(System.String) System.Management.Automation.SwitchParameter get_DisableKeepAlive() Void set_DisableKeepAlive(System.Management.Automation.SwitchParameter) Int32 get_TimeoutSec() Void set_TimeoutSec(Int32) System.Collections.IDictionary get_Headers() Void set_Headers(System.Collections.IDictionary) Int32 get_MaximumRedirection() Void set_MaximumRedirection(Int32) Microsoft.PowerShell.Commands.WebRequestMethod get_Method() Void set_Method(Microsoft.PowerShell.Commands.WebRequestMethod) System.Uri get_Proxy() Void set_Proxy(System.Uri) System.Management.Automation.PSCredential get_ProxyCredential() Void set_ProxyCredential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_ProxyUseDefaultCredentials() Void set_ProxyUseDefaultCredentials(System.Management.Automation.SwitchParameter) System.Object get_Body() Void set_Body(System.Object) System.String get_ContentType() Void set_ContentType(System.String) System.String get_TransferEncoding() Void set_TransferEncoding(System.String) System.String get_InFile() Void set_InFile(System.String) System.String get_OutFile() Void set_OutFile(System.String) System.Management.Automation.SwitchParameter get_PassThru() Void set_PassThru(System.Management.Automation.SwitchParameter) Void ValidateParameters() Void PrepareSession() System.String get_QualifiedOutFile() Boolean get_ShouldSaveToOutFile() Boolean get_ShouldWriteToPipeline() Boolean VerifyInternetExplorerAvailable(Boolean) System.Uri PrepareUri(System.Uri) System.Uri CheckProtocol(System.Uri) System.String QualifyFilePath(System.String) System.String FormatDictionary(System.Collections.IDictionary) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String, System.Object[]) Void ProcessResponse(System.Net.WebResponse) System.Net.WebRequest GetRequest(System.Uri) Boolean TryMapHeaaderToProperty(System.Net.HttpWebRequest, System.String) Void FillRequestStream(System.Net.WebRequest) Void UpdateSession(System.Net.WebResponse) Void ProcessRecord() Void StopProcessing() Void ResponseCallback(System.IAsyncResult) Void TimeoutCallback(System.Object, Boolean) Int64 SetRequestContent(System.Net.WebRequest, Byte[]) Int64 SetRequestContent(System.Net.WebRequest, System.String) Int64 SetRequestContent(System.Net.WebRequest, System.Xml.XmlNode) Int64 SetRequestContent(System.Net.WebRequest, System.IO.Stream) Int64 SetRequestContent(System.Net.WebRequest, System.Collections.IDictionary)",
                                             "DeclaredNestedTypes":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet+WebRequestState Microsoft.PowerShell.Commands.WebRequestPSCmdlet+TimeoutState",
                                             "DeclaredProperties":  "System.Management.Automation.SwitchParameter UseBasicParsing System.Uri Uri Microsoft.PowerShell.Commands.WebRequestSession WebSession System.String SessionVariable System.Management.Automation.PSCredential Credential System.Management.Automation.SwitchParameter UseDefaultCredentials System.String CertificateThumbprint System.Security.Cryptography.X509Certificates.X509Certificate Certificate System.String UserAgent System.Management.Automation.SwitchParameter DisableKeepAlive Int32 TimeoutSec System.Collections.IDictionary Headers Int32 MaximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod Method System.Uri Proxy System.Management.Automation.PSCredential ProxyCredential System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials System.Object Body System.String ContentType System.String TransferEncoding System.String InFile System.String OutFile System.Management.Automation.SwitchParameter PassThru System.String QualifiedOutFile Boolean ShouldSaveToOutFile Boolean ShouldWriteToPipeline",
                                             "ImplementedInterfaces":  "",
                                             "TypeInitializer":  null,
                                             "IsNested":  false,
                                             "Attributes":  1048705,
                                             "IsVisible":  true,
                                             "IsNotPublic":  false,
                                             "IsPublic":  true,
                                             "IsNestedPublic":  false,
                                             "IsNestedPrivate":  false,
                                             "IsNestedFamily":  false,
                                             "IsNestedAssembly":  false,
                                             "IsNestedFamANDAssem":  false,
                                             "IsNestedFamORAssem":  false,
                                             "IsAutoLayout":  true,
                                             "IsLayoutSequential":  false,
                                             "IsExplicitLayout":  false,
                                             "IsClass":  true,
                                             "IsInterface":  false,
                                             "IsValueType":  false,
                                             "IsAbstract":  true,
                                             "IsSealed":  false,
                                             "IsSpecialName":  false,
                                             "IsImport":  false,
                                             "IsSerializable":  false,
                                             "IsAnsiClass":  true,
                                             "IsUnicodeClass":  false,
                                             "IsAutoClass":  false,
                                             "IsArray":  false,
                                             "IsByRef":  false,
                                             "IsPointer":  false,
                                             "IsPrimitive":  false,
                                             "IsCOMObject":  false,
                                             "HasElementType":  false,
                                             "IsContextful":  false,
                                             "IsMarshalByRef":  false,
                                             "GenericTypeArguments":  "",
                                             "CustomAttributes":  ""
                                         },
                       "ReflectedType":  {
                                             "Module":  "Microsoft.PowerShell.Commands.Utility.dll",
                                             "Assembly":  "Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
                                             "TypeHandle":  "System.RuntimeTypeHandle",
                                             "DeclaringMethod":  null,
                                             "BaseType":  "System.Management.Automation.PSCmdlet",
                                             "UnderlyingSystemType":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet",
                                             "FullName":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet",
                                             "AssemblyQualifiedName":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet, Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
                                             "Namespace":  "Microsoft.PowerShell.Commands",
                                             "GUID":  "98f20a98-b68c-3efc-ba18-b3bce9000a63",
                                             "IsEnum":  false,
                                             "GenericParameterAttributes":  null,
                                             "IsSecurityCritical":  true,
                                             "IsSecuritySafeCritical":  false,
                                             "IsSecurityTransparent":  false,
                                             "IsGenericTypeDefinition":  false,
                                             "IsGenericParameter":  false,
                                             "GenericParameterPosition":  null,
                                             "IsGenericType":  false,
                                             "IsConstructedGenericType":  false,
                                             "ContainsGenericParameters":  false,
                                             "StructLayoutAttribute":  "System.Runtime.InteropServices.StructLayoutAttribute",
                                             "Name":  "WebRequestPSCmdlet",
                                             "MemberType":  32,
                                             "DeclaringType":  null,
                                             "ReflectedType":  null,
                                             "MetadataToken":  33554674,
                                             "GenericTypeParameters":  "",
                                             "DeclaredConstructors":  "Void .ctor()",
                                             "DeclaredEvents":  "",
                                             "DeclaredFields":  "System.Management.Automation.SwitchParameter \u003cUseBasicParsing\u003ek__BackingField System.Uri \u003cUri\u003ek__BackingField Microsoft.PowerShell.Commands.WebRequestSession \u003cWebSession\u003ek__BackingField System.String \u003cSessionVariable\u003ek__BackingField System.Management.Automation.PSCredential \u003cCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cUseDefaultCredentials\u003ek__BackingField System.String \u003cCertificateThumbprint\u003ek__BackingField System.Security.Cryptography.X509Certificates.X509Certificate \u003cCertificate\u003ek__BackingField System.String \u003cUserAgent\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cDisableKeepAlive\u003ek__BackingField Int32 \u003cTimeoutSec\u003ek__BackingField System.Collections.IDictionary \u003cHeaders\u003ek__BackingField Int32 maximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod method System.Uri \u003cProxy\u003ek__BackingField System.Management.Automation.PSCredential \u003cProxyCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cProxyUseDefaultCredentials\u003ek__BackingField System.Object \u003cBody\u003ek__BackingField System.String \u003cContentType\u003ek__BackingField System.String \u003cTransferEncoding\u003ek__BackingField System.String \u003cInFile\u003ek__BackingField System.String _originalFilePath System.String \u003cOutFile\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cPassThru\u003ek__BackingField System.Net.WebRequest _webRequest",
                                             "DeclaredMembers":  "System.Net.WebResponse GetResponse(System.Net.WebRequest) System.Management.Automation.SwitchParameter get_UseBasicParsing() Void set_UseBasicParsing(System.Management.Automation.SwitchParameter) System.Uri get_Uri() Void set_Uri(System.Uri) Microsoft.PowerShell.Commands.WebRequestSession get_WebSession() Void set_WebSession(Microsoft.PowerShell.Commands.WebRequestSession) System.String get_SessionVariable() Void set_SessionVariable(System.String) System.Management.Automation.PSCredential get_Credential() Void set_Credential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_UseDefaultCredentials() Void set_UseDefaultCredentials(System.Management.Automation.SwitchParameter) System.String get_CertificateThumbprint() Void set_CertificateThumbprint(System.String) System.Security.Cryptography.X509Certificates.X509Certificate get_Certificate() Void set_Certificate(System.Security.Cryptography.X509Certificates.X509Certificate) System.String get_UserAgent() Void set_UserAgent(System.String) System.Management.Automation.SwitchParameter get_DisableKeepAlive() Void set_DisableKeepAlive(System.Management.Automation.SwitchParameter) Int32 get_TimeoutSec() Void set_TimeoutSec(Int32) System.Collections.IDictionary get_Headers() Void set_Headers(System.Collections.IDictionary) Int32 get_MaximumRedirection() Void set_MaximumRedirection(Int32) Microsoft.PowerShell.Commands.WebRequestMethod get_Method() Void set_Method(Microsoft.PowerShell.Commands.WebRequestMethod) System.Uri get_Proxy() Void set_Proxy(System.Uri) System.Management.Automation.PSCredential get_ProxyCredential() Void set_ProxyCredential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_ProxyUseDefaultCredentials() Void set_ProxyUseDefaultCredentials(System.Management.Automation.SwitchParameter) System.Object get_Body() Void set_Body(System.Object) System.String get_ContentType() Void set_ContentType(System.String) System.String get_TransferEncoding() Void set_TransferEncoding(System.String) System.String get_InFile() Void set_InFile(System.String) System.String get_OutFile() Void set_OutFile(System.String) System.Management.Automation.SwitchParameter get_PassThru() Void set_PassThru(System.Management.Automation.SwitchParameter) Void ValidateParameters() Void PrepareSession() System.String get_QualifiedOutFile() Boolean get_ShouldSaveToOutFile() Boolean get_ShouldWriteToPipeline() Boolean VerifyInternetExplorerAvailable(Boolean) System.Uri PrepareUri(System.Uri) System.Uri CheckProtocol(System.Uri) System.String QualifyFilePath(System.String) System.String FormatDictionary(System.Collections.IDictionary) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String, System.Object[]) Void ProcessResponse(System.Net.WebResponse) System.Net.WebRequest GetRequest(System.Uri) Boolean TryMapHeaaderToProperty(System.Net.HttpWebRequest, System.String) Void FillRequestStream(System.Net.WebRequest) Void UpdateSession(System.Net.WebResponse) Void ProcessRecord() Void StopProcessing() Void ResponseCallback(System.IAsyncResult) Void TimeoutCallback(System.Object, Boolean) Int64 SetRequestContent(System.Net.WebRequest, Byte[]) Int64 SetRequestContent(System.Net.WebRequest, System.String) Int64 SetRequestContent(System.Net.WebRequest, System.Xml.XmlNode) Int64 SetRequestContent(System.Net.WebRequest, System.IO.Stream) Int64 SetRequestContent(System.Net.WebRequest, System.Collections.IDictionary) Void .ctor() System.Management.Automation.SwitchParameter UseBasicParsing System.Uri Uri Microsoft.PowerShell.Commands.WebRequestSession WebSession System.String SessionVariable System.Management.Automation.PSCredential Credential System.Management.Automation.SwitchParameter UseDefaultCredentials System.String CertificateThumbprint System.Security.Cryptography.X509Certificates.X509Certificate Certificate System.String UserAgent System.Management.Automation.SwitchParameter DisableKeepAlive Int32 TimeoutSec System.Collections.IDictionary Headers Int32 MaximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod Method System.Uri Proxy System.Management.Automation.PSCredential ProxyCredential System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials System.Object Body System.String ContentType System.String TransferEncoding System.String InFile System.String OutFile System.Management.Automation.SwitchParameter PassThru System.String QualifiedOutFile Boolean ShouldSaveToOutFile Boolean ShouldWriteToPipeline System.Management.Automation.SwitchParameter \u003cUseBasicParsing\u003ek__BackingField System.Uri \u003cUri\u003ek__BackingField Microsoft.PowerShell.Commands.WebRequestSession \u003cWebSession\u003ek__BackingField System.String \u003cSessionVariable\u003ek__BackingField System.Management.Automation.PSCredential \u003cCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cUseDefaultCredentials\u003ek__BackingField System.String \u003cCertificateThumbprint\u003ek__BackingField System.Security.Cryptography.X509Certificates.X509Certificate \u003cCertificate\u003ek__BackingField System.String \u003cUserAgent\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cDisableKeepAlive\u003ek__BackingField Int32 \u003cTimeoutSec\u003ek__BackingField System.Collections.IDictionary \u003cHeaders\u003ek__BackingField Int32 maximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod method System.Uri \u003cProxy\u003ek__BackingField System.Management.Automation.PSCredential \u003cProxyCredential\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cProxyUseDefaultCredentials\u003ek__BackingField System.Object \u003cBody\u003ek__BackingField System.String \u003cContentType\u003ek__BackingField System.String \u003cTransferEncoding\u003ek__BackingField System.String \u003cInFile\u003ek__BackingField System.String _originalFilePath System.String \u003cOutFile\u003ek__BackingField System.Management.Automation.SwitchParameter \u003cPassThru\u003ek__BackingField System.Net.WebRequest _webRequest Microsoft.PowerShell.Commands.WebRequestPSCmdlet+WebRequestState Microsoft.PowerShell.Commands.WebRequestPSCmdlet+TimeoutState",
                                             "DeclaredMethods":  "System.Net.WebResponse GetResponse(System.Net.WebRequest) System.Management.Automation.SwitchParameter get_UseBasicParsing() Void set_UseBasicParsing(System.Management.Automation.SwitchParameter) System.Uri get_Uri() Void set_Uri(System.Uri) Microsoft.PowerShell.Commands.WebRequestSession get_WebSession() Void set_WebSession(Microsoft.PowerShell.Commands.WebRequestSession) System.String get_SessionVariable() Void set_SessionVariable(System.String) System.Management.Automation.PSCredential get_Credential() Void set_Credential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_UseDefaultCredentials() Void set_UseDefaultCredentials(System.Management.Automation.SwitchParameter) System.String get_CertificateThumbprint() Void set_CertificateThumbprint(System.String) System.Security.Cryptography.X509Certificates.X509Certificate get_Certificate() Void set_Certificate(System.Security.Cryptography.X509Certificates.X509Certificate) System.String get_UserAgent() Void set_UserAgent(System.String) System.Management.Automation.SwitchParameter get_DisableKeepAlive() Void set_DisableKeepAlive(System.Management.Automation.SwitchParameter) Int32 get_TimeoutSec() Void set_TimeoutSec(Int32) System.Collections.IDictionary get_Headers() Void set_Headers(System.Collections.IDictionary) Int32 get_MaximumRedirection() Void set_MaximumRedirection(Int32) Microsoft.PowerShell.Commands.WebRequestMethod get_Method() Void set_Method(Microsoft.PowerShell.Commands.WebRequestMethod) System.Uri get_Proxy() Void set_Proxy(System.Uri) System.Management.Automation.PSCredential get_ProxyCredential() Void set_ProxyCredential(System.Management.Automation.PSCredential) System.Management.Automation.SwitchParameter get_ProxyUseDefaultCredentials() Void set_ProxyUseDefaultCredentials(System.Management.Automation.SwitchParameter) System.Object get_Body() Void set_Body(System.Object) System.String get_ContentType() Void set_ContentType(System.String) System.String get_TransferEncoding() Void set_TransferEncoding(System.String) System.String get_InFile() Void set_InFile(System.String) System.String get_OutFile() Void set_OutFile(System.String) System.Management.Automation.SwitchParameter get_PassThru() Void set_PassThru(System.Management.Automation.SwitchParameter) Void ValidateParameters() Void PrepareSession() System.String get_QualifiedOutFile() Boolean get_ShouldSaveToOutFile() Boolean get_ShouldWriteToPipeline() Boolean VerifyInternetExplorerAvailable(Boolean) System.Uri PrepareUri(System.Uri) System.Uri CheckProtocol(System.Uri) System.String QualifyFilePath(System.String) System.String FormatDictionary(System.Collections.IDictionary) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String) System.Management.Automation.ErrorRecord GetValidationError(System.String, System.String, System.Object[]) Void ProcessResponse(System.Net.WebResponse) System.Net.WebRequest GetRequest(System.Uri) Boolean TryMapHeaaderToProperty(System.Net.HttpWebRequest, System.String) Void FillRequestStream(System.Net.WebRequest) Void UpdateSession(System.Net.WebResponse) Void ProcessRecord() Void StopProcessing() Void ResponseCallback(System.IAsyncResult) Void TimeoutCallback(System.Object, Boolean) Int64 SetRequestContent(System.Net.WebRequest, Byte[]) Int64 SetRequestContent(System.Net.WebRequest, System.String) Int64 SetRequestContent(System.Net.WebRequest, System.Xml.XmlNode) Int64 SetRequestContent(System.Net.WebRequest, System.IO.Stream) Int64 SetRequestContent(System.Net.WebRequest, System.Collections.IDictionary)",
                                             "DeclaredNestedTypes":  "Microsoft.PowerShell.Commands.WebRequestPSCmdlet+WebRequestState Microsoft.PowerShell.Commands.WebRequestPSCmdlet+TimeoutState",
                                             "DeclaredProperties":  "System.Management.Automation.SwitchParameter UseBasicParsing System.Uri Uri Microsoft.PowerShell.Commands.WebRequestSession WebSession System.String SessionVariable System.Management.Automation.PSCredential Credential System.Management.Automation.SwitchParameter UseDefaultCredentials System.String CertificateThumbprint System.Security.Cryptography.X509Certificates.X509Certificate Certificate System.String UserAgent System.Management.Automation.SwitchParameter DisableKeepAlive Int32 TimeoutSec System.Collections.IDictionary Headers Int32 MaximumRedirection Microsoft.PowerShell.Commands.WebRequestMethod Method System.Uri Proxy System.Management.Automation.PSCredential ProxyCredential System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials System.Object Body System.String ContentType System.String TransferEncoding System.String InFile System.String OutFile System.Management.Automation.SwitchParameter PassThru System.String QualifiedOutFile Boolean ShouldSaveToOutFile Boolean ShouldWriteToPipeline",
                                             "ImplementedInterfaces":  "",
                                             "TypeInitializer":  null,
                                             "IsNested":  false,
                                             "Attributes":  1048705,
                                             "IsVisible":  true,
                                             "IsNotPublic":  false,
                                             "IsPublic":  true,
                                             "IsNestedPublic":  false,
                                             "IsNestedPrivate":  false,
                                             "IsNestedFamily":  false,
                                             "IsNestedAssembly":  false,
                                             "IsNestedFamANDAssem":  false,
                                             "IsNestedFamORAssem":  false,
                                             "IsAutoLayout":  true,
                                             "IsLayoutSequential":  false,
                                             "IsExplicitLayout":  false,
                                             "IsClass":  true,
                                             "IsInterface":  false,
                                             "IsValueType":  false,
                                             "IsAbstract":  true,
                                             "IsSealed":  false,
                                             "IsSpecialName":  false,
                                             "IsImport":  false,
                                             "IsSerializable":  false,
                                             "IsAnsiClass":  true,
                                             "IsUnicodeClass":  false,
                                             "IsAutoClass":  false,
                                             "IsArray":  false,
                                             "IsByRef":  false,
                                             "IsPointer":  false,
                                             "IsPrimitive":  false,
                                             "IsCOMObject":  false,
                                             "HasElementType":  false,
                                             "IsContextful":  false,
                                             "IsMarshalByRef":  false,
                                             "GenericTypeArguments":  "",
                                             "CustomAttributes":  ""
                                         },
                       "MemberType":  8,
                       "MetadataToken":  100665844,
                       "Module":  {
                                      "MDStreamVersion":  131072,
                                      "FullyQualifiedName":  "C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.PowerShell.Commands.Utility\\v4.0_3.0.0.0__31bf3856ad364e35\\Microsoft.PowerShell.Commands.Utility.dll",
                                      "ModuleVersionId":  "7be50d38-9b0a-4082-9265-05888b22349f",
                                      "MetadataToken":  1,
                                      "ScopeName":  "Microsoft.PowerShell.Commands.Utility.dll",
                                      "Name":  "Microsoft.PowerShell.Commands.Utility.dll",
                                      "Assembly":  "Microsoft.PowerShell.Commands.Utility, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
                                      "CustomAttributes":  "",
                                      "ModuleHandle":  "System.ModuleHandle"
                                  },
                       "IsSecurityCritical":  true,
                       "IsSecuritySafeCritical":  false,
                       "IsSecurityTransparent":  false,
                       "MethodHandle":  {
                                            "Value":  140720842666232
                                        },
                       "Attributes":  963,
                       "CallingConvention":  33,
                       "ReturnType":  {
                                          "Module":  "System.dll",
                                          "Assembly":  "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
                                          "TypeHandle":  "System.RuntimeTypeHandle",
                                          "DeclaringMethod":  null,
                                          "BaseType":  "System.MarshalByRefObject",
                                          "UnderlyingSystemType":  "System.Net.WebResponse",
                                          "FullName":  "System.Net.WebResponse",
                                          "AssemblyQualifiedName":  "System.Net.WebResponse, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
                                          "Namespace":  "System.Net",
                                          "GUID":  "8469b5e5-2e45-37fe-af2b-9e809f690087",
                                          "IsEnum":  false,
                                          "GenericParameterAttributes":  null,
                                          "IsSecurityCritical":  false,
                                          "IsSecuritySafeCritical":  false,
                                          "IsSecurityTransparent":  true,
                                          "IsGenericTypeDefinition":  false,
                                          "IsGenericParameter":  false,
                                          "GenericParameterPosition":  null,
                                          "IsGenericType":  false,
                                          "IsConstructedGenericType":  false,
                                          "ContainsGenericParameters":  false,
                                          "StructLayoutAttribute":  "System.Runtime.InteropServices.StructLayoutAttribute",
                                          "Name":  "WebResponse",
                                          "MemberType":  32,
                                          "DeclaringType":  null,
                                          "ReflectedType":  null,
                                          "MetadataToken":  33554827,
                                          "GenericTypeParameters":  "",
                                          "DeclaredConstructors":  "Void .ctor() Void .ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)",
                                          "DeclaredEvents":  "",
                                          "DeclaredFields":  "Boolean m_IsCacheFresh Boolean m_IsFromCache",
                                          "DeclaredMembers":  "Void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) Void GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) Void Close() Void Dispose() Void Dispose(Boolean) Boolean get_IsFromCache() Boolean get_IsCacheFresh() Boolean get_IsMutuallyAuthenticated() Int64 get_ContentLength() Void set_ContentLength(Int64) System.String get_ContentType() Void set_ContentType(System.String) System.IO.Stream GetResponseStream() System.Uri get_ResponseUri() System.Net.WebHeaderCollection get_Headers() Boolean get_SupportsHeaders() Void set_InternalSetFromCache(Boolean) Void set_InternalSetIsCacheFresh(Boolean) Void .ctor() Void .ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) Boolean IsFromCache Boolean InternalSetFromCache Boolean IsCacheFresh Boolean InternalSetIsCacheFresh Boolean IsMutuallyAuthenticated Int64 ContentLength System.String ContentType System.Uri ResponseUri System.Net.WebHeaderCollection Headers Boolean SupportsHeaders Boolean m_IsCacheFresh Boolean m_IsFromCache",
                                          "DeclaredMethods":  "Void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) Void GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) Void Close() Void Dispose() Void Dispose(Boolean) Boolean get_IsFromCache() Boolean get_IsCacheFresh() Boolean get_IsMutuallyAuthenticated() Int64 get_ContentLength() Void set_ContentLength(Int64) System.String get_ContentType() Void set_ContentType(System.String) System.IO.Stream GetResponseStream() System.Uri get_ResponseUri() System.Net.WebHeaderCollection get_Headers() Boolean get_SupportsHeaders() Void set_InternalSetFromCache(Boolean) Void set_InternalSetIsCacheFresh(Boolean)",
                                          "DeclaredNestedTypes":  "",
                                          "DeclaredProperties":  "Boolean IsFromCache Boolean InternalSetFromCache Boolean IsCacheFresh Boolean InternalSetIsCacheFresh Boolean IsMutuallyAuthenticated Int64 ContentLength System.String ContentType System.Uri ResponseUri System.Net.WebHeaderCollection Headers Boolean SupportsHeaders",
                                          "ImplementedInterfaces":  "System.Runtime.Serialization.ISerializable System.IDisposable",
                                          "TypeInitializer":  null,
                                          "IsNested":  false,
                                          "Attributes":  1056897,
                                          "IsVisible":  true,
                                          "IsNotPublic":  false,
                                          "IsPublic":  true,
                                          "IsNestedPublic":  false,
                                          "IsNestedPrivate":  false,
                                          "IsNestedFamily":  false,
                                          "IsNestedAssembly":  false,
                                          "IsNestedFamANDAssem":  false,
                                          "IsNestedFamORAssem":  false,
                                          "IsAutoLayout":  true,
                                          "IsLayoutSequential":  false,
                                          "IsExplicitLayout":  false,
                                          "IsClass":  true,
                                          "IsInterface":  false,
                                          "IsValueType":  false,
                                          "IsAbstract":  true,
                                          "IsSealed":  false,
                                          "IsSpecialName":  false,
                                          "IsImport":  false,
                                          "IsSerializable":  true,
                                          "IsAnsiClass":  true,
                                          "IsUnicodeClass":  false,
                                          "IsAutoClass":  false,
                                          "IsArray":  false,
                                          "IsByRef":  false,
                                          "IsPointer":  false,
                                          "IsPrimitive":  false,
                                          "IsCOMObject":  false,
                                          "HasElementType":  false,
                                          "IsContextful":  false,
                                          "IsMarshalByRef":  true,
                                          "GenericTypeArguments":  "",
                                          "CustomAttributes":  "[System.SerializableAttribute()] [__DynamicallyInvokableAttribute()]"
                                      },
                       "ReturnTypeCustomAttributes":  {
                                                          "ParameterType":  "System.Net.WebResponse",
                                                          "Name":  null,
                                                          "HasDefaultValue":  true,
                                                          "DefaultValue":  null,
                                                          "RawDefaultValue":  null,
                                                          "MetadataToken":  134217728,
                                                          "Position":  -1,
                                                          "Attributes":  0,
                                                          "Member":  "System.Net.WebResponse GetResponse(System.Net.WebRequest)",
                                                          "IsIn":  false,
                                                          "IsOut":  false,
                                                          "IsLcid":  false,
                                                          "IsRetval":  false,
                                                          "IsOptional":  false,
                                                          "CustomAttributes":  ""
                                                      },
                       "ReturnParameter":  {
                                               "ParameterType":  "System.Net.WebResponse",
                                               "Name":  null,
                                               "HasDefaultValue":  true,
                                               "DefaultValue":  null,
                                               "RawDefaultValue":  null,
                                               "MetadataToken":  134217728,
                                               "Position":  -1,
                                               "Attributes":  0,
                                               "Member":  "System.Net.WebResponse GetResponse(System.Net.WebRequest)",
                                               "IsIn":  false,
                                               "IsOut":  false,
                                               "IsLcid":  false,
                                               "IsRetval":  false,
                                               "IsOptional":  false,
                                               "CustomAttributes":  ""
                                           },
                       "IsGenericMethod":  false,
                       "IsGenericMethodDefinition":  false,
                       "ContainsGenericParameters":  false,
                       "MethodImplementationFlags":  0,
                       "IsPublic":  false,
                       "IsPrivate":  false,
                       "IsFamily":  false,
                       "IsAssembly":  true,
                       "IsFamilyAndAssembly":  false,
                       "IsFamilyOrAssembly":  false,
                       "IsStatic":  false,
                       "IsFinal":  false,
                       "IsVirtual":  true,
                       "IsHideBySig":  true,
                       "IsAbstract":  false,
                       "IsSpecialName":  false,
                       "IsConstructor":  false,
                       "CustomAttributes":  [

                                            ]
                   },
    "StackTrace":  "   bei Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)\r\n   bei Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()",
    "HelpLink":  null,
    "Source":  "Microsoft.PowerShell.Commands.Utility",
    "HResult":  -2146233079
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants