1. Packages
  2. Azure Native
  3. API Docs
  4. securitydevops
  5. AzureDevOpsConnector
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.securitydevops.AzureDevOpsConnector

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Azure REST API version: 2022-09-01-preview. Prior API version in Azure Native 1.x: 2022-09-01-preview.

    Example Usage

    AzureDevOpsConnector_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var azureDevOpsConnector = new AzureNative.SecurityDevOps.AzureDevOpsConnector("azureDevOpsConnector", new()
        {
            AzureDevOpsConnectorName = "testconnector",
            Location = "West US",
            Properties = new AzureNative.SecurityDevOps.Inputs.AzureDevOpsConnectorPropertiesArgs
            {
                Authorization = new AzureNative.SecurityDevOps.Inputs.AuthorizationInfoArgs
                {
                    Code = "00000000000000000000",
                },
                Orgs = new[]
                {
                    new AzureNative.SecurityDevOps.Inputs.AzureDevOpsOrgMetadataArgs
                    {
                        Name = "testOrg",
                        Projects = new[]
                        {
                            new AzureNative.SecurityDevOps.Inputs.AzureDevOpsProjectMetadataArgs
                            {
                                Name = "testProject",
                                Repos = new[]
                                {
                                    "testRepo",
                                },
                            },
                        },
                    },
                },
            },
            ResourceGroupName = "westusrg",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/securitydevops/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securitydevops.NewAzureDevOpsConnector(ctx, "azureDevOpsConnector", &securitydevops.AzureDevOpsConnectorArgs{
    			AzureDevOpsConnectorName: pulumi.String("testconnector"),
    			Location:                 pulumi.String("West US"),
    			Properties: &securitydevops.AzureDevOpsConnectorPropertiesArgs{
    				Authorization: &securitydevops.AuthorizationInfoArgs{
    					Code: pulumi.String("00000000000000000000"),
    				},
    				Orgs: securitydevops.AzureDevOpsOrgMetadataArray{
    					&securitydevops.AzureDevOpsOrgMetadataArgs{
    						Name: pulumi.String("testOrg"),
    						Projects: securitydevops.AzureDevOpsProjectMetadataArray{
    							&securitydevops.AzureDevOpsProjectMetadataArgs{
    								Name: pulumi.String("testProject"),
    								Repos: pulumi.StringArray{
    									pulumi.String("testRepo"),
    								},
    							},
    						},
    					},
    				},
    			},
    			ResourceGroupName: pulumi.String("westusrg"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.securitydevops.AzureDevOpsConnector;
    import com.pulumi.azurenative.securitydevops.AzureDevOpsConnectorArgs;
    import com.pulumi.azurenative.securitydevops.inputs.AzureDevOpsConnectorPropertiesArgs;
    import com.pulumi.azurenative.securitydevops.inputs.AuthorizationInfoArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var azureDevOpsConnector = new AzureDevOpsConnector("azureDevOpsConnector", AzureDevOpsConnectorArgs.builder()        
                .azureDevOpsConnectorName("testconnector")
                .location("West US")
                .properties(AzureDevOpsConnectorPropertiesArgs.builder()
                    .authorization(AuthorizationInfoArgs.builder()
                        .code("00000000000000000000")
                        .build())
                    .orgs(AzureDevOpsOrgMetadataArgs.builder()
                        .name("testOrg")
                        .projects(AzureDevOpsProjectMetadataArgs.builder()
                            .name("testProject")
                            .repos("testRepo")
                            .build())
                        .build())
                    .build())
                .resourceGroupName("westusrg")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    azure_dev_ops_connector = azure_native.securitydevops.AzureDevOpsConnector("azureDevOpsConnector",
        azure_dev_ops_connector_name="testconnector",
        location="West US",
        properties=azure_native.securitydevops.AzureDevOpsConnectorPropertiesArgs(
            authorization=azure_native.securitydevops.AuthorizationInfoArgs(
                code="00000000000000000000",
            ),
            orgs=[azure_native.securitydevops.AzureDevOpsOrgMetadataArgs(
                name="testOrg",
                projects=[azure_native.securitydevops.AzureDevOpsProjectMetadataArgs(
                    name="testProject",
                    repos=["testRepo"],
                )],
            )],
        ),
        resource_group_name="westusrg")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const azureDevOpsConnector = new azure_native.securitydevops.AzureDevOpsConnector("azureDevOpsConnector", {
        azureDevOpsConnectorName: "testconnector",
        location: "West US",
        properties: {
            authorization: {
                code: "00000000000000000000",
            },
            orgs: [{
                name: "testOrg",
                projects: [{
                    name: "testProject",
                    repos: ["testRepo"],
                }],
            }],
        },
        resourceGroupName: "westusrg",
    });
    
    resources:
      azureDevOpsConnector:
        type: azure-native:securitydevops:AzureDevOpsConnector
        properties:
          azureDevOpsConnectorName: testconnector
          location: West US
          properties:
            authorization:
              code: '00000000000000000000'
            orgs:
              - name: testOrg
                projects:
                  - name: testProject
                    repos:
                      - testRepo
          resourceGroupName: westusrg
    

    Create AzureDevOpsConnector Resource

    new AzureDevOpsConnector(name: string, args: AzureDevOpsConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def AzureDevOpsConnector(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             azure_dev_ops_connector_name: Optional[str] = None,
                             location: Optional[str] = None,
                             properties: Optional[AzureDevOpsConnectorPropertiesArgs] = None,
                             resource_group_name: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None)
    @overload
    def AzureDevOpsConnector(resource_name: str,
                             args: AzureDevOpsConnectorArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewAzureDevOpsConnector(ctx *Context, name string, args AzureDevOpsConnectorArgs, opts ...ResourceOption) (*AzureDevOpsConnector, error)
    public AzureDevOpsConnector(string name, AzureDevOpsConnectorArgs args, CustomResourceOptions? opts = null)
    public AzureDevOpsConnector(String name, AzureDevOpsConnectorArgs args)
    public AzureDevOpsConnector(String name, AzureDevOpsConnectorArgs args, CustomResourceOptions options)
    
    type: azure-native:securitydevops:AzureDevOpsConnector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AzureDevOpsConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AzureDevOpsConnectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AzureDevOpsConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AzureDevOpsConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AzureDevOpsConnectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AzureDevOpsConnector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AzureDevOpsConnector resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AzureDevOpsConnectorName string
    Name of the AzureDevOps Connector.
    Location string
    The geo-location where the resource lives
    Properties Pulumi.AzureNative.SecurityDevOps.Inputs.AzureDevOpsConnectorProperties
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AzureDevOpsConnectorName string
    Name of the AzureDevOps Connector.
    Location string
    The geo-location where the resource lives
    Properties AzureDevOpsConnectorPropertiesArgs
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    azureDevOpsConnectorName String
    Name of the AzureDevOps Connector.
    location String
    The geo-location where the resource lives
    properties AzureDevOpsConnectorProperties
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    azureDevOpsConnectorName string
    Name of the AzureDevOps Connector.
    location string
    The geo-location where the resource lives
    properties AzureDevOpsConnectorProperties
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    azure_dev_ops_connector_name str
    Name of the AzureDevOps Connector.
    location str
    The geo-location where the resource lives
    properties AzureDevOpsConnectorPropertiesArgs
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    azureDevOpsConnectorName String
    Name of the AzureDevOps Connector.
    location String
    The geo-location where the resource lives
    properties Property Map
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AzureDevOpsConnector resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.SecurityDevOps.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    AuthorizationInfo, AuthorizationInfoArgs

    Code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    Code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code String

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code str

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code String

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    AuthorizationInfoResponse, AuthorizationInfoResponseArgs

    Code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    Code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code String

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code string

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code str

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    code String

    Gets or sets one-time OAuth code to exchange for refresh and access tokens.

    Only used during PUT operations. The secret is cleared during GET. In general, RPaaS does not return any property marked as a secret.

    AutoDiscovery, AutoDiscoveryArgs

    Disabled
    Disabled
    Enabled
    Enabled
    AutoDiscoveryDisabled
    Disabled
    AutoDiscoveryEnabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    DISABLED
    Disabled
    ENABLED
    Enabled
    "Disabled"
    Disabled
    "Enabled"
    Enabled

    AzureDevOpsConnectorProperties, AzureDevOpsConnectorPropertiesArgs

    Authorization AuthorizationInfo
    Orgs []AzureDevOpsOrgMetadata
    Gets or sets org onboarding information.
    authorization AuthorizationInfo
    orgs List<AzureDevOpsOrgMetadata>
    Gets or sets org onboarding information.
    authorization AuthorizationInfo
    orgs AzureDevOpsOrgMetadata[]
    Gets or sets org onboarding information.
    authorization Property Map
    orgs List<Property Map>
    Gets or sets org onboarding information.

    AzureDevOpsConnectorPropertiesResponse, AzureDevOpsConnectorPropertiesResponseArgs

    provisioningState String
    authorization Property Map
    orgs List<Property Map>
    Gets or sets org onboarding information.

    AzureDevOpsOrgMetadata, AzureDevOpsOrgMetadataArgs

    AutoDiscovery string | AutoDiscovery
    Name string
    Gets or sets name of the AzureDevOps Org.
    Projects []AzureDevOpsProjectMetadata
    autoDiscovery String | AutoDiscovery
    name String
    Gets or sets name of the AzureDevOps Org.
    projects List<AzureDevOpsProjectMetadata>
    autoDiscovery string | AutoDiscovery
    name string
    Gets or sets name of the AzureDevOps Org.
    projects AzureDevOpsProjectMetadata[]
    auto_discovery str | AutoDiscovery
    name str
    Gets or sets name of the AzureDevOps Org.
    projects Sequence[AzureDevOpsProjectMetadata]
    autoDiscovery String | "Disabled" | "Enabled"
    name String
    Gets or sets name of the AzureDevOps Org.
    projects List<Property Map>

    AzureDevOpsOrgMetadataResponse, AzureDevOpsOrgMetadataResponseArgs

    AutoDiscovery string
    Name string
    Gets or sets name of the AzureDevOps Org.
    Projects []AzureDevOpsProjectMetadataResponse
    autoDiscovery String
    name String
    Gets or sets name of the AzureDevOps Org.
    projects List<AzureDevOpsProjectMetadataResponse>
    autoDiscovery string
    name string
    Gets or sets name of the AzureDevOps Org.
    projects AzureDevOpsProjectMetadataResponse[]
    auto_discovery str
    name str
    Gets or sets name of the AzureDevOps Org.
    projects Sequence[AzureDevOpsProjectMetadataResponse]
    autoDiscovery String
    name String
    Gets or sets name of the AzureDevOps Org.
    projects List<Property Map>

    AzureDevOpsProjectMetadata, AzureDevOpsProjectMetadataArgs

    AutoDiscovery string | Pulumi.AzureNative.SecurityDevOps.AutoDiscovery
    Name string
    Gets or sets name of the AzureDevOps Project.
    Repos List<string>
    Gets or sets repositories.
    AutoDiscovery string | AutoDiscovery
    Name string
    Gets or sets name of the AzureDevOps Project.
    Repos []string
    Gets or sets repositories.
    autoDiscovery String | AutoDiscovery
    name String
    Gets or sets name of the AzureDevOps Project.
    repos List<String>
    Gets or sets repositories.
    autoDiscovery string | AutoDiscovery
    name string
    Gets or sets name of the AzureDevOps Project.
    repos string[]
    Gets or sets repositories.
    auto_discovery str | AutoDiscovery
    name str
    Gets or sets name of the AzureDevOps Project.
    repos Sequence[str]
    Gets or sets repositories.
    autoDiscovery String | "Disabled" | "Enabled"
    name String
    Gets or sets name of the AzureDevOps Project.
    repos List<String>
    Gets or sets repositories.

    AzureDevOpsProjectMetadataResponse, AzureDevOpsProjectMetadataResponseArgs

    AutoDiscovery string
    Name string
    Gets or sets name of the AzureDevOps Project.
    Repos List<string>
    Gets or sets repositories.
    AutoDiscovery string
    Name string
    Gets or sets name of the AzureDevOps Project.
    Repos []string
    Gets or sets repositories.
    autoDiscovery String
    name String
    Gets or sets name of the AzureDevOps Project.
    repos List<String>
    Gets or sets repositories.
    autoDiscovery string
    name string
    Gets or sets name of the AzureDevOps Project.
    repos string[]
    Gets or sets repositories.
    auto_discovery str
    name str
    Gets or sets name of the AzureDevOps Project.
    repos Sequence[str]
    Gets or sets repositories.
    autoDiscovery String
    name String
    Gets or sets name of the AzureDevOps Project.
    repos List<String>
    Gets or sets repositories.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:securitydevops:AzureDevOpsConnector testconnector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi