API Schema Contract details.
Azure REST API version: 2022-09-01-preview.
Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview.
Example Usage
ApiManagementCreateWorkspaceApiSchema
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspaceApiSchema = new AzureNative.ApiManagement.WorkspaceApiSchema("workspaceApiSchema", new()
{
ApiId = "59d6bb8f1f7fab13dc67ec9b",
ContentType = "application/vnd.ms-azure-apim.xsd+xml",
ResourceGroupName = "rg1",
SchemaId = "ec12520d-9d48-4e7b-8f39-698ca2ac63f1",
ServiceName = "apimService1",
Value = @"<s:schema elementFormDefault=""qualified"" targetNamespace=""http://ws.cdyne.com/WeatherWS/"" xmlns:tns=""http://ws.cdyne.com/WeatherWS/"" xmlns:s=""http://www.w3.org/2001/XMLSchema"" xmlns:soap12=""http://schemas.xmlsoap.org/wsdl/soap12/"" xmlns:mime=""http://schemas.xmlsoap.org/wsdl/mime/"" xmlns:soap=""http://schemas.xmlsoap.org/wsdl/soap/"" xmlns:tm=""http://microsoft.com/wsdl/mime/textMatching/"" xmlns:http=""http://schemas.xmlsoap.org/wsdl/http/"" xmlns:soapenc=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:wsdl=""http://schemas.xmlsoap.org/wsdl/"" xmlns:apim-wsdltns=""http://ws.cdyne.com/WeatherWS/"">
<s:element name=""GetWeatherInformation"">
<s:complexType />
</s:element>
<s:element name=""GetWeatherInformationResponse"">
<s:complexType>
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""GetWeatherInformationResult"" type=""tns:ArrayOfWeatherDescription"" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name=""ArrayOfWeatherDescription"">
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""unbounded"" name=""WeatherDescription"" type=""tns:WeatherDescription"" />
</s:sequence>
</s:complexType>
<s:complexType name=""WeatherDescription"">
<s:sequence>
<s:element minOccurs=""1"" maxOccurs=""1"" name=""WeatherID"" type=""s:short"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Description"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""PictureURL"" type=""s:string"" />
</s:sequence>
</s:complexType>
<s:element name=""GetCityForecastByZIP"">
<s:complexType>
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""ZIP"" type=""s:string"" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name=""GetCityForecastByZIPResponse"">
<s:complexType>
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""GetCityForecastByZIPResult"" type=""tns:ForecastReturn"" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name=""ForecastReturn"">
<s:sequence>
<s:element minOccurs=""1"" maxOccurs=""1"" name=""Success"" type=""s:boolean"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""ResponseText"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""State"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""City"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""WeatherStationCity"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""ForecastResult"" type=""tns:ArrayOfForecast"" />
</s:sequence>
</s:complexType>
<s:complexType name=""ArrayOfForecast"">
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""unbounded"" name=""Forecast"" nillable=""true"" type=""tns:Forecast"" />
</s:sequence>
</s:complexType>
<s:complexType name=""Forecast"">
<s:sequence>
<s:element minOccurs=""1"" maxOccurs=""1"" name=""Date"" type=""s:dateTime"" />
<s:element minOccurs=""1"" maxOccurs=""1"" name=""WeatherID"" type=""s:short"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Desciption"" type=""s:string"" />
<s:element minOccurs=""1"" maxOccurs=""1"" name=""Temperatures"" type=""tns:temp"" />
<s:element minOccurs=""1"" maxOccurs=""1"" name=""ProbabilityOfPrecipiation"" type=""tns:POP"" />
</s:sequence>
</s:complexType>
<s:complexType name=""temp"">
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""MorningLow"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""DaytimeHigh"" type=""s:string"" />
</s:sequence>
</s:complexType>
<s:complexType name=""POP"">
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Nighttime"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Daytime"" type=""s:string"" />
</s:sequence>
</s:complexType>
<s:element name=""GetCityWeatherByZIP"">
<s:complexType>
<s:sequence>
<s:element minOccurs=""0"" maxOccurs=""1"" name=""ZIP"" type=""s:string"" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name=""GetCityWeatherByZIPResponse"">
<s:complexType>
<s:sequence>
<s:element minOccurs=""1"" maxOccurs=""1"" name=""GetCityWeatherByZIPResult"" type=""tns:WeatherReturn"" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name=""WeatherReturn"">
<s:sequence>
<s:element minOccurs=""1"" maxOccurs=""1"" name=""Success"" type=""s:boolean"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""ResponseText"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""State"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""City"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""WeatherStationCity"" type=""s:string"" />
<s:element minOccurs=""1"" maxOccurs=""1"" name=""WeatherID"" type=""s:short"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Description"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Temperature"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""RelativeHumidity"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Wind"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Pressure"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Visibility"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""WindChill"" type=""s:string"" />
<s:element minOccurs=""0"" maxOccurs=""1"" name=""Remarks"" type=""s:string"" />
</s:sequence>
</s:complexType>
<s:element name=""ArrayOfWeatherDescription"" nillable=""true"" type=""tns:ArrayOfWeatherDescription"" />
<s:element name=""ForecastReturn"" nillable=""true"" type=""tns:ForecastReturn"" />
<s:element name=""WeatherReturn"" type=""tns:WeatherReturn"" />
</s:schema>",
WorkspaceId = "wks1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewWorkspaceApiSchema(ctx, "workspaceApiSchema", &apimanagement.WorkspaceApiSchemaArgs{
ApiId: pulumi.String("59d6bb8f1f7fab13dc67ec9b"),
ContentType: pulumi.String("application/vnd.ms-azure-apim.xsd+xml"),
ResourceGroupName: pulumi.String("rg1"),
SchemaId: pulumi.String("ec12520d-9d48-4e7b-8f39-698ca2ac63f1"),
ServiceName: pulumi.String("apimService1"),
Value: pulumi.String(`<s:schema elementFormDefault="qualified" targetNamespace="http://ws.cdyne.com/WeatherWS/" xmlns:tns="http://ws.cdyne.com/WeatherWS/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:apim-wsdltns="http://ws.cdyne.com/WeatherWS/">
<s:element name="GetWeatherInformation">
<s:complexType />
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />
</s:sequence>
</s:complexType>
<s:complexType name="WeatherDescription">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PictureURL" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetCityForecastByZIP">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetCityForecastByZIPResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetCityForecastByZIPResult" type="tns:ForecastReturn" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ForecastReturn">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ForecastResult" type="tns:ArrayOfForecast" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfForecast">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Forecast" nillable="true" type="tns:Forecast" />
</s:sequence>
</s:complexType>
<s:complexType name="Forecast">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Date" type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Desciption" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Temperatures" type="tns:temp" />
<s:element minOccurs="1" maxOccurs="1" name="ProbabilityOfPrecipiation" type="tns:POP" />
</s:sequence>
</s:complexType>
<s:complexType name="temp">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MorningLow" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DaytimeHigh" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="POP">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Nighttime" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Daytime" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetCityWeatherByZIP">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetCityWeatherByZIPResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="GetCityWeatherByZIPResult" type="tns:WeatherReturn" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="WeatherReturn">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Temperature" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="RelativeHumidity" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WindChill" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Remarks" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="ArrayOfWeatherDescription" nillable="true" type="tns:ArrayOfWeatherDescription" />
<s:element name="ForecastReturn" nillable="true" type="tns:ForecastReturn" />
<s:element name="WeatherReturn" type="tns:WeatherReturn" />
</s:schema>`),
WorkspaceId: pulumi.String("wks1"),
})
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.apimanagement.WorkspaceApiSchema;
import com.pulumi.azurenative.apimanagement.WorkspaceApiSchemaArgs;
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 workspaceApiSchema = new WorkspaceApiSchema("workspaceApiSchema", WorkspaceApiSchemaArgs.builder()
.apiId("59d6bb8f1f7fab13dc67ec9b")
.contentType("application/vnd.ms-azure-apim.xsd+xml")
.resourceGroupName("rg1")
.schemaId("ec12520d-9d48-4e7b-8f39-698ca2ac63f1")
.serviceName("apimService1")
.value("""
<s:schema elementFormDefault="qualified" targetNamespace="http://ws.cdyne.com/WeatherWS/" xmlns:tns="http://ws.cdyne.com/WeatherWS/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:apim-wsdltns="http://ws.cdyne.com/WeatherWS/">
<s:element name="GetWeatherInformation">
<s:complexType />
</s:element>
<s:element name="GetWeatherInformationResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfWeatherDescription">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />
</s:sequence>
</s:complexType>
<s:complexType name="WeatherDescription">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PictureURL" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetCityForecastByZIP">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetCityForecastByZIPResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetCityForecastByZIPResult" type="tns:ForecastReturn" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ForecastReturn">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ForecastResult" type="tns:ArrayOfForecast" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfForecast">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Forecast" nillable="true" type="tns:Forecast" />
</s:sequence>
</s:complexType>
<s:complexType name="Forecast">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Date" type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Desciption" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Temperatures" type="tns:temp" />
<s:element minOccurs="1" maxOccurs="1" name="ProbabilityOfPrecipiation" type="tns:POP" />
</s:sequence>
</s:complexType>
<s:complexType name="temp">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MorningLow" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DaytimeHigh" type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="POP">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Nighttime" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Daytime" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetCityWeatherByZIP">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetCityWeatherByZIPResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="GetCityWeatherByZIPResult" type="tns:WeatherReturn" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="WeatherReturn">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Temperature" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="RelativeHumidity" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WindChill" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Remarks" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="ArrayOfWeatherDescription" nillable="true" type="tns:ArrayOfWeatherDescription" />
<s:element name="ForecastReturn" nillable="true" type="tns:ForecastReturn" />
<s:element name="WeatherReturn" type="tns:WeatherReturn" />
</s:schema> """)
.workspaceId("wks1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
workspace_api_schema = azure_native.apimanagement.WorkspaceApiSchema("workspaceApiSchema",
api_id="59d6bb8f1f7fab13dc67ec9b",
content_type="application/vnd.ms-azure-apim.xsd+xml",
resource_group_name="rg1",
schema_id="ec12520d-9d48-4e7b-8f39-698ca2ac63f1",
service_name="apimService1",
value="""<s:schema elementFormDefault="qualified" targetNamespace="http://ws.cdyne.com/WeatherWS/" xmlns:tns="http://ws.cdyne.com/WeatherWS/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:apim-wsdltns="http://ws.cdyne.com/WeatherWS/">\x0d
<s:element name="GetWeatherInformation">\x0d
<s:complexType />\x0d
</s:element>\x0d
<s:element name="GetWeatherInformationResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="ArrayOfWeatherDescription">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="WeatherDescription">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="PictureURL" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="GetCityForecastByZIP">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:element name="GetCityForecastByZIPResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="GetCityForecastByZIPResult" type="tns:ForecastReturn" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="ForecastReturn">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ForecastResult" type="tns:ArrayOfForecast" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="ArrayOfForecast">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="unbounded" name="Forecast" nillable="true" type="tns:Forecast" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="Forecast">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Date" type="s:dateTime" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Desciption" type="s:string" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="Temperatures" type="tns:temp" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="ProbabilityOfPrecipiation" type="tns:POP" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="temp">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="MorningLow" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="DaytimeHigh" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="POP">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="Nighttime" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Daytime" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="GetCityWeatherByZIP">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:element name="GetCityWeatherByZIPResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="GetCityWeatherByZIPResult" type="tns:WeatherReturn" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="WeatherReturn">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Temperature" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="RelativeHumidity" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WindChill" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Remarks" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="ArrayOfWeatherDescription" nillable="true" type="tns:ArrayOfWeatherDescription" />\x0d
<s:element name="ForecastReturn" nillable="true" type="tns:ForecastReturn" />\x0d
<s:element name="WeatherReturn" type="tns:WeatherReturn" />\x0d
</s:schema>""",
workspace_id="wks1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const workspaceApiSchema = new azure_native.apimanagement.WorkspaceApiSchema("workspaceApiSchema", {
apiId: "59d6bb8f1f7fab13dc67ec9b",
contentType: "application/vnd.ms-azure-apim.xsd+xml",
resourceGroupName: "rg1",
schemaId: "ec12520d-9d48-4e7b-8f39-698ca2ac63f1",
serviceName: "apimService1",
value: `<s:schema elementFormDefault="qualified" targetNamespace="http://ws.cdyne.com/WeatherWS/" xmlns:tns="http://ws.cdyne.com/WeatherWS/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:apim-wsdltns="http://ws.cdyne.com/WeatherWS/">\x0d
<s:element name="GetWeatherInformation">\x0d
<s:complexType />\x0d
</s:element>\x0d
<s:element name="GetWeatherInformationResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherInformationResult" type="tns:ArrayOfWeatherDescription" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="ArrayOfWeatherDescription">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="unbounded" name="WeatherDescription" type="tns:WeatherDescription" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="WeatherDescription">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="PictureURL" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="GetCityForecastByZIP">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:element name="GetCityForecastByZIPResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="GetCityForecastByZIPResult" type="tns:ForecastReturn" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="ForecastReturn">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ForecastResult" type="tns:ArrayOfForecast" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="ArrayOfForecast">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="unbounded" name="Forecast" nillable="true" type="tns:Forecast" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="Forecast">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Date" type="s:dateTime" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Desciption" type="s:string" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="Temperatures" type="tns:temp" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="ProbabilityOfPrecipiation" type="tns:POP" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="temp">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="MorningLow" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="DaytimeHigh" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:complexType name="POP">\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="Nighttime" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Daytime" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="GetCityWeatherByZIP">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="0" maxOccurs="1" name="ZIP" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:element name="GetCityWeatherByZIPResponse">\x0d
<s:complexType>\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="GetCityWeatherByZIPResult" type="tns:WeatherReturn" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
</s:element>\x0d
<s:complexType name="WeatherReturn">\x0d
<s:sequence>\x0d
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="ResponseText" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WeatherStationCity" type="s:string" />\x0d
<s:element minOccurs="1" maxOccurs="1" name="WeatherID" type="s:short" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Temperature" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="RelativeHumidity" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="WindChill" type="s:string" />\x0d
<s:element minOccurs="0" maxOccurs="1" name="Remarks" type="s:string" />\x0d
</s:sequence>\x0d
</s:complexType>\x0d
<s:element name="ArrayOfWeatherDescription" nillable="true" type="tns:ArrayOfWeatherDescription" />\x0d
<s:element name="ForecastReturn" nillable="true" type="tns:ForecastReturn" />\x0d
<s:element name="WeatherReturn" type="tns:WeatherReturn" />\x0d
</s:schema>`,
workspaceId: "wks1",
});
resources:
workspaceApiSchema:
type: azure-native:apimanagement:WorkspaceApiSchema
properties:
apiId: 59d6bb8f1f7fab13dc67ec9b
contentType: application/vnd.ms-azure-apim.xsd+xml
resourceGroupName: rg1
schemaId: ec12520d-9d48-4e7b-8f39-698ca2ac63f1
serviceName: apimService1
value: "<s:schema elementFormDefault=\"qualified\" targetNamespace=\"http://ws.cdyne.com/WeatherWS/\" xmlns:tns=\"http://ws.cdyne.com/WeatherWS/\" xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\" xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:apim-wsdltns=\"http://ws.cdyne.com/WeatherWS/\">\r\n <s:element name=\"GetWeatherInformation\">\r\n <s:complexType />\r\n </s:element>\r\n <s:element name=\"GetWeatherInformationResponse\">\r\n <s:complexType>\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"GetWeatherInformationResult\" type=\"tns:ArrayOfWeatherDescription\" />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n <s:complexType name=\"ArrayOfWeatherDescription\">\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"WeatherDescription\" type=\"tns:WeatherDescription\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"WeatherDescription\">\r\n <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"WeatherID\" type=\"s:short\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Description\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"PictureURL\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"GetCityForecastByZIP\">\r\n <s:complexType>\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ZIP\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n <s:element name=\"GetCityForecastByZIPResponse\">\r\n <s:complexType>\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"GetCityForecastByZIPResult\" type=\"tns:ForecastReturn\" />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n <s:complexType name=\"ForecastReturn\">\r\n <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Success\" type=\"s:boolean\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ResponseText\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"State\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"City\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"WeatherStationCity\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ForecastResult\" type=\"tns:ArrayOfForecast\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"ArrayOfForecast\">\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"Forecast\" nillable=\"true\" type=\"tns:Forecast\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"Forecast\">\r\n <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Date\" type=\"s:dateTime\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"WeatherID\" type=\"s:short\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Desciption\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Temperatures\" type=\"tns:temp\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"ProbabilityOfPrecipiation\" type=\"tns:POP\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"temp\">\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"MorningLow\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"DaytimeHigh\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:complexType name=\"POP\">\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Nighttime\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Daytime\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"GetCityWeatherByZIP\">\r\n <s:complexType>\r\n <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ZIP\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n <s:element name=\"GetCityWeatherByZIPResponse\">\r\n <s:complexType>\r\n <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"GetCityWeatherByZIPResult\" type=\"tns:WeatherReturn\" />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n <s:complexType name=\"WeatherReturn\">\r\n <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Success\" type=\"s:boolean\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ResponseText\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"State\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"City\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"WeatherStationCity\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"WeatherID\" type=\"s:short\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Description\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Temperature\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"RelativeHumidity\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Wind\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Pressure\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Visibility\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"WindChill\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Remarks\" type=\"s:string\" />\r\n </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"ArrayOfWeatherDescription\" nillable=\"true\" type=\"tns:ArrayOfWeatherDescription\" />\r\n <s:element name=\"ForecastReturn\" nillable=\"true\" type=\"tns:ForecastReturn\" />\r\n <s:element name=\"WeatherReturn\" type=\"tns:WeatherReturn\" />\r\n</s:schema>"
workspaceId: wks1
Create WorkspaceApiSchema Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def WorkspaceApiSchema(resource_name: str,
args: WorkspaceApiSchemaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceApiSchema(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
content_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
workspace_id: Optional[str] = None,
components: Optional[Any] = None,
definitions: Optional[Any] = None,
schema_id: Optional[str] = None,
value: Optional[str] = None)
type: azure-native:apimanagement:WorkspaceApiSchema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required.
string
- The unique name of the resource.
- args
This property is required.
WorkspaceApiSchemaArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required.
str
- The unique name of the resource.
- args
This property is required.
WorkspaceApiSchemaArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
This property is required.
string
- The unique name of the resource.
- args
This property is required.
WorkspaceApiSchemaArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required.
string
- The unique name of the resource.
- args
This property is required.
WorkspaceApiSchemaArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required.
String
- The unique name of the resource.
- args
This property is required.
WorkspaceApiSchemaArgs
- 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 workspaceApiSchemaResource = new AzureNative.Apimanagement.WorkspaceApiSchema("workspaceApiSchemaResource", new()
{
ApiId = "string",
ContentType = "string",
ResourceGroupName = "string",
ServiceName = "string",
WorkspaceId = "string",
Components = "any",
Definitions = "any",
SchemaId = "string",
Value = "string",
});
example, err := apimanagement.NewWorkspaceApiSchema(ctx, "workspaceApiSchemaResource", &apimanagement.WorkspaceApiSchemaArgs{
ApiId: "string",
ContentType: "string",
ResourceGroupName: "string",
ServiceName: "string",
WorkspaceId: "string",
Components: "any",
Definitions: "any",
SchemaId: "string",
Value: "string",
})
var workspaceApiSchemaResource = new WorkspaceApiSchema("workspaceApiSchemaResource", WorkspaceApiSchemaArgs.builder()
.apiId("string")
.contentType("string")
.resourceGroupName("string")
.serviceName("string")
.workspaceId("string")
.components("any")
.definitions("any")
.schemaId("string")
.value("string")
.build());
workspace_api_schema_resource = azure_native.apimanagement.WorkspaceApiSchema("workspaceApiSchemaResource",
api_id=string,
content_type=string,
resource_group_name=string,
service_name=string,
workspace_id=string,
components=any,
definitions=any,
schema_id=string,
value=string)
const workspaceApiSchemaResource = new azure_native.apimanagement.WorkspaceApiSchema("workspaceApiSchemaResource", {
apiId: "string",
contentType: "string",
resourceGroupName: "string",
serviceName: "string",
workspaceId: "string",
components: "any",
definitions: "any",
schemaId: "string",
value: "string",
});
type: azure-native:apimanagement:WorkspaceApiSchema
properties:
apiId: string
components: any
contentType: string
definitions: any
resourceGroupName: string
schemaId: string
serviceName: string
value: string
workspaceId: string
WorkspaceApiSchema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
The WorkspaceApiSchema resource accepts the following input properties:
- ApiId
This property is required.
Changes to this property will trigger replacement.
string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- ContentType
This property is required.
string
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string - The name of the resource group. The name is case insensitive.
- ServiceName
This property is required.
Changes to this property will trigger replacement.
string - The name of the API Management service.
- WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string - Workspace identifier. Must be unique in the current API Management service instance.
- Components
object
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- Definitions
object
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- SchemaId
Changes to this property will trigger replacement.
string - Schema id identifier. Must be unique in the current API Management service instance.
- Value
string
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- ApiId
This property is required.
Changes to this property will trigger replacement.
string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- ContentType
This property is required.
string
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string - The name of the resource group. The name is case insensitive.
- ServiceName
This property is required.
Changes to this property will trigger replacement.
string - The name of the API Management service.
- WorkspaceId
This property is required.
Changes to this property will trigger replacement.
string - Workspace identifier. Must be unique in the current API Management service instance.
- Components
interface{}
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- Definitions
interface{}
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- SchemaId
Changes to this property will trigger replacement.
string - Schema id identifier. Must be unique in the current API Management service instance.
- Value
string
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- apiId
This property is required.
Changes to this property will trigger replacement.
String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- contentType
This property is required.
String
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String - The name of the resource group. The name is case insensitive.
- serviceName
This property is required.
Changes to this property will trigger replacement.
String - The name of the API Management service.
- workspaceId
This property is required.
Changes to this property will trigger replacement.
String - Workspace identifier. Must be unique in the current API Management service instance.
- components
Object
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- definitions
Object
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- schemaId
Changes to this property will trigger replacement.
String - Schema id identifier. Must be unique in the current API Management service instance.
- value
String
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- apiId
This property is required.
Changes to this property will trigger replacement.
string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- contentType
This property is required.
string
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string - The name of the resource group. The name is case insensitive.
- serviceName
This property is required.
Changes to this property will trigger replacement.
string - The name of the API Management service.
- workspaceId
This property is required.
Changes to this property will trigger replacement.
string - Workspace identifier. Must be unique in the current API Management service instance.
- components
any
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- definitions
any
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- schemaId
Changes to this property will trigger replacement.
string - Schema id identifier. Must be unique in the current API Management service instance.
- value
string
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- api_id
This property is required.
Changes to this property will trigger replacement.
str - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- content_type
This property is required.
str
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - resource_group_name
This property is required.
Changes to this property will trigger replacement.
str - The name of the resource group. The name is case insensitive.
- service_name
This property is required.
Changes to this property will trigger replacement.
str - The name of the API Management service.
- workspace_id
This property is required.
Changes to this property will trigger replacement.
str - Workspace identifier. Must be unique in the current API Management service instance.
- components
Any
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- definitions
Any
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- schema_id
Changes to this property will trigger replacement.
str - Schema id identifier. Must be unique in the current API Management service instance.
- value
str
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- apiId
This property is required.
Changes to this property will trigger replacement.
String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- contentType
This property is required.
String
- Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). -
Swagger
Schema use application/vnd.ms-azure-apim.swagger.definitions+json
- WSDL
Schema use application/vnd.ms-azure-apim.xsd+xml
- OpenApi
Schema use application/vnd.oai.openapi.components+json
- WADL Schema
use application/vnd.ms-azure-apim.wadl.grammars+xml
. - resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String - The name of the resource group. The name is case insensitive.
- serviceName
This property is required.
Changes to this property will trigger replacement.
String - The name of the API Management service.
- workspaceId
This property is required.
Changes to this property will trigger replacement.
String - Workspace identifier. Must be unique in the current API Management service instance.
- components
Any
- Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
- definitions
Any
- Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- schemaId
Changes to this property will trigger replacement.
String - Schema id identifier. Must be unique in the current API Management service instance.
- value
String
- Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceApiSchema resource produces the following output properties:
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- The name of the resource
- 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
- 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
- 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
- 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
- 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
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:WorkspaceApiSchema ec12520d-9d48-4e7b-8f39-698ca2ac63f1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0