azure-native.securitydevops.AzureDevOpsConnector
Explore with Pulumi AI
API Version: 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",
});
});
Coming soon!
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 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(Map.ofEntries(
Map.entry("authorization", Map.of("code", "00000000000000000000")),
Map.entry("orgs", Map.ofEntries(
Map.entry("name", "testOrg"),
Map.entry("projects", Map.ofEntries(
Map.entry("name", "testProject"),
Map.entry("repos", "testRepo")
))
))
))
.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.AzureDevOpsConnectorPropertiesResponseArgs(
authorization=azure_native.securitydevops.AuthorizationInfoArgs(
code="00000000000000000000",
),
orgs=[{
"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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureDevOpsConnector(name: string, args: AzureDevOpsConnectorArgs, opts?: CustomResourceOptions);
@overload
def AzureDevOpsConnector(resource_name: str,
args: AzureDevOpsConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureDevOpsConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
azure_dev_ops_connector_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[AzureDevOpsConnectorPropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureDevOpsConnectorResource = new AzureNative.Securitydevops.AzureDevOpsConnector("azureDevOpsConnectorResource", new()
{
ResourceGroupName = "string",
AzureDevOpsConnectorName = "string",
Location = "string",
Properties =
{
{ "authorization",
{
{ "code", "string" },
} },
{ "orgs", new[]
{
{
{ "autoDiscovery", "string" },
{ "name", "string" },
{ "projects", new[]
{
{
{ "autoDiscovery", "string" },
{ "name", "string" },
{ "repos", new[]
{
"string",
} },
},
} },
},
} },
},
Tags =
{
{ "string", "string" },
},
});
example, err := securitydevops.NewAzureDevOpsConnector(ctx, "azureDevOpsConnectorResource", &securitydevops.AzureDevOpsConnectorArgs{
ResourceGroupName: "string",
AzureDevOpsConnectorName: "string",
Location: "string",
Properties: map[string]interface{}{
"authorization": map[string]interface{}{
"code": "string",
},
"orgs": []map[string]interface{}{
map[string]interface{}{
"autoDiscovery": "string",
"name": "string",
"projects": []map[string]interface{}{
map[string]interface{}{
"autoDiscovery": "string",
"name": "string",
"repos": []string{
"string",
},
},
},
},
},
},
Tags: map[string]interface{}{
"string": "string",
},
})
var azureDevOpsConnectorResource = new AzureDevOpsConnector("azureDevOpsConnectorResource", AzureDevOpsConnectorArgs.builder()
.resourceGroupName("string")
.azureDevOpsConnectorName("string")
.location("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_dev_ops_connector_resource = azure_native.securitydevops.AzureDevOpsConnector("azureDevOpsConnectorResource",
resource_group_name=string,
azure_dev_ops_connector_name=string,
location=string,
properties={
authorization: {
code: string,
},
orgs: [{
autoDiscovery: string,
name: string,
projects: [{
autoDiscovery: string,
name: string,
repos: [string],
}],
}],
},
tags={
string: string,
})
const azureDevOpsConnectorResource = new azure_native.securitydevops.AzureDevOpsConnector("azureDevOpsConnectorResource", {
resourceGroupName: "string",
azureDevOpsConnectorName: "string",
location: "string",
properties: {
authorization: {
code: "string",
},
orgs: [{
autoDiscovery: "string",
name: "string",
projects: [{
autoDiscovery: "string",
name: "string",
repos: ["string"],
}],
}],
},
tags: {
string: "string",
},
});
type: azure-native:securitydevops:AzureDevOpsConnector
properties:
azureDevOpsConnectorName: string
location: string
properties:
authorization:
code: string
orgs:
- autoDiscovery: string
name: string
projects:
- autoDiscovery: string
name: string
repos:
- string
resourceGroupName: string
tags:
string: string
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Azure
Dev stringOps Connector Name - Name of the AzureDevOps Connector.
- Location string
- The geo-location where the resource lives
- Properties
Pulumi.
Azure Native. Security Dev Ops. Inputs. Azure Dev Ops Connector Properties - Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Azure
Dev stringOps Connector Name - Name of the AzureDevOps Connector.
- Location string
- The geo-location where the resource lives
- Properties
Azure
Dev Ops Connector Properties Args - map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- azure
Dev StringOps Connector Name - Name of the AzureDevOps Connector.
- location String
- The geo-location where the resource lives
- properties
Azure
Dev Ops Connector Properties - Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- azure
Dev stringOps Connector Name - Name of the AzureDevOps Connector.
- location string
- The geo-location where the resource lives
- properties
Azure
Dev Ops Connector Properties - {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- azure_
dev_ strops_ connector_ name - Name of the AzureDevOps Connector.
- location str
- The geo-location where the resource lives
- properties
Azure
Dev Ops Connector Properties Args - Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- azure
Dev StringOps Connector Name - Name of the AzureDevOps Connector.
- location String
- The geo-location where the resource lives
- properties Property Map
- 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
- System
Data Pulumi.Azure Native. Security Dev Ops. Outputs. System Data Response - 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
- System
Data SystemData Response - 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
- system
Data SystemData Response - 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
- system
Data SystemData Response - 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 SystemData Response - 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
- system
Data 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
- Auto
Discovery Disabled - Disabled
- Auto
Discovery Enabled - Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
AzureDevOpsConnectorProperties, AzureDevOpsConnectorPropertiesArgs
- Pulumi.
Azure Native. Security Dev Ops. Inputs. Authorization Info - Orgs
List<Pulumi.
Azure Native. Security Dev Ops. Inputs. Azure Dev Ops Org Metadata> - Gets or sets org onboarding information.
- Authorization
Info - Orgs
[]Azure
Dev Ops Org Metadata - Gets or sets org onboarding information.
- Authorization
Info - orgs
List<Azure
Dev Ops Org Metadata> - Gets or sets org onboarding information.
- Authorization
Info - orgs
Azure
Dev Ops Org Metadata[] - Gets or sets org onboarding information.
- Authorization
Info - orgs
Sequence[Azure
Dev Ops Org Metadata] - Gets or sets org onboarding information.
- Property Map
- orgs List<Property Map>
- Gets or sets org onboarding information.
AzureDevOpsConnectorPropertiesResponse, AzureDevOpsConnectorPropertiesResponseArgs
- Provisioning
State string - Pulumi.
Azure Native. Security Dev Ops. Inputs. Authorization Info Response - Orgs
List<Pulumi.
Azure Native. Security Dev Ops. Inputs. Azure Dev Ops Org Metadata Response> - Gets or sets org onboarding information.
- Provisioning
State string - Authorization
Info Response - Orgs
[]Azure
Dev Ops Org Metadata Response - Gets or sets org onboarding information.
- provisioning
State String - Authorization
Info Response - orgs
List<Azure
Dev Ops Org Metadata Response> - Gets or sets org onboarding information.
- provisioning
State string - Authorization
Info Response - orgs
Azure
Dev Ops Org Metadata Response[] - Gets or sets org onboarding information.
- provisioning_
state str - Authorization
Info Response - orgs
Sequence[Azure
Dev Ops Org Metadata Response] - Gets or sets org onboarding information.
- provisioning
State String - Property Map
- orgs List<Property Map>
- Gets or sets org onboarding information.
AzureDevOpsOrgMetadata, AzureDevOpsOrgMetadataArgs
- Auto
Discovery string | Pulumi.Azure Native. Security Dev Ops. Auto Discovery - Name string
- Gets or sets name of the AzureDevOps Org.
- Projects
List<Pulumi.
Azure Native. Security Dev Ops. Inputs. Azure Dev Ops Project Metadata>
- Auto
Discovery string | AutoDiscovery - Name string
- Gets or sets name of the AzureDevOps Org.
- Projects
[]Azure
Dev Ops Project Metadata
- auto
Discovery String | AutoDiscovery - name String
- Gets or sets name of the AzureDevOps Org.
- projects
List<Azure
Dev Ops Project Metadata>
- auto
Discovery string | AutoDiscovery - name string
- Gets or sets name of the AzureDevOps Org.
- projects
Azure
Dev Ops Project Metadata[]
- auto_
discovery str | AutoDiscovery - name str
- Gets or sets name of the AzureDevOps Org.
- projects
Sequence[Azure
Dev Ops Project Metadata]
- auto
Discovery String | "Disabled" | "Enabled" - name String
- Gets or sets name of the AzureDevOps Org.
- projects List<Property Map>
AzureDevOpsOrgMetadataResponse, AzureDevOpsOrgMetadataResponseArgs
- Auto
Discovery string - Name string
- Gets or sets name of the AzureDevOps Org.
- Projects
List<Pulumi.
Azure Native. Security Dev Ops. Inputs. Azure Dev Ops Project Metadata Response>
- Auto
Discovery string - Name string
- Gets or sets name of the AzureDevOps Org.
- Projects
[]Azure
Dev Ops Project Metadata Response
- auto
Discovery String - name String
- Gets or sets name of the AzureDevOps Org.
- projects
List<Azure
Dev Ops Project Metadata Response>
- auto
Discovery string - name string
- Gets or sets name of the AzureDevOps Org.
- projects
Azure
Dev Ops Project Metadata Response[]
- auto_
discovery str - name str
- Gets or sets name of the AzureDevOps Org.
- projects
Sequence[Azure
Dev Ops Project Metadata Response]
- auto
Discovery String - name String
- Gets or sets name of the AzureDevOps Org.
- projects List<Property Map>
AzureDevOpsProjectMetadata, AzureDevOpsProjectMetadataArgs
- Auto
Discovery string | Pulumi.Azure Native. Security Dev Ops. Auto Discovery - Name string
- Gets or sets name of the AzureDevOps Project.
- Repos List<string>
- Gets or sets repositories.
- Auto
Discovery string | AutoDiscovery - Name string
- Gets or sets name of the AzureDevOps Project.
- Repos []string
- Gets or sets repositories.
- auto
Discovery String | AutoDiscovery - name String
- Gets or sets name of the AzureDevOps Project.
- repos List<String>
- Gets or sets repositories.
- auto
Discovery 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.
- auto
Discovery String | "Disabled" | "Enabled" - name String
- Gets or sets name of the AzureDevOps Project.
- repos List<String>
- Gets or sets repositories.
AzureDevOpsProjectMetadataResponse, AzureDevOpsProjectMetadataResponseArgs
- Auto
Discovery string - Name string
- Gets or sets name of the AzureDevOps Project.
- Repos List<string>
- Gets or sets repositories.
- Auto
Discovery string - Name string
- Gets or sets name of the AzureDevOps Project.
- Repos []string
- Gets or sets repositories.
- auto
Discovery String - name String
- Gets or sets name of the AzureDevOps Project.
- repos List<String>
- Gets or sets repositories.
- auto
Discovery 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.
- auto
Discovery String - name String
- Gets or sets name of the AzureDevOps Project.
- repos List<String>
- Gets or sets repositories.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0