GitHubRepositoryResource.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a GitHub issue for the specified repository and assessment.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}/repos/{repoName}/issues.
- Operation Id. : GitHubRepositories_Create.
- Default Api Version. : 2025-11-01-preview.
- Resource. : GitHubRepositoryResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> CreateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.SecurityCenter.Models.IssueCreationContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.IssueCreationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.CreateAsync : Azure.WaitUntil * Azure.ResourceManager.SecurityCenter.Models.IssueCreationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function CreateAsync (waitUntil As WaitUntil, Optional content As IssueCreationContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- content
- IssueCreationContent
The request model containing details for creating the GitHub issue.
- cancellationToken
- CancellationToken
The cancellation token to use.