All URIs are relative to https://intersight.com
Method | HTTP request | Description |
---|---|---|
GetEtherHostPortByMoid | Get /api/v1/ether/HostPorts/{Moid} | Read a 'ether.HostPort' resource. |
GetEtherHostPortList | Get /api/v1/ether/HostPorts | Read a 'ether.HostPort' resource. |
GetEtherNetworkPortByMoid | Get /api/v1/ether/NetworkPorts/{Moid} | Read a 'ether.NetworkPort' resource. |
GetEtherNetworkPortList | Get /api/v1/ether/NetworkPorts | Read a 'ether.NetworkPort' resource. |
GetEtherPhysicalPortByMoid | Get /api/v1/ether/PhysicalPorts/{Moid} | Read a 'ether.PhysicalPort' resource. |
GetEtherPhysicalPortList | Get /api/v1/ether/PhysicalPorts | Read a 'ether.PhysicalPort' resource. |
GetEtherPortChannelByMoid | Get /api/v1/ether/PortChannels/{Moid} | Read a 'ether.PortChannel' resource. |
GetEtherPortChannelList | Get /api/v1/ether/PortChannels | Read a 'ether.PortChannel' resource. |
PatchEtherHostPort | Patch /api/v1/ether/HostPorts/{Moid} | Update a 'ether.HostPort' resource. |
PatchEtherNetworkPort | Patch /api/v1/ether/NetworkPorts/{Moid} | Update a 'ether.NetworkPort' resource. |
PatchEtherPhysicalPort | Patch /api/v1/ether/PhysicalPorts/{Moid} | Update a 'ether.PhysicalPort' resource. |
UpdateEtherHostPort | Post /api/v1/ether/HostPorts/{Moid} | Update a 'ether.HostPort' resource. |
UpdateEtherNetworkPort | Post /api/v1/ether/NetworkPorts/{Moid} | Update a 'ether.NetworkPort' resource. |
UpdateEtherPhysicalPort | Post /api/v1/ether/PhysicalPorts/{Moid} | Update a 'ether.PhysicalPort' resource. |
EtherHostPort GetEtherHostPortByMoid(ctx, moid).Execute()
Read a 'ether.HostPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherHostPortByMoid(context.Background(), moid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherHostPortByMoid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherHostPortByMoid`: EtherHostPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherHostPortByMoid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiGetEtherHostPortByMoidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherHostPortResponse GetEtherHostPortList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
Read a 'ether.HostPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "")
orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional)
top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100)
skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0)
select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "")
expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional)
apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional)
count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional)
inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages")
at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional)
tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherHostPortList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherHostPortList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherHostPortList`: EtherHostPortResponse
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherHostPortList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetEtherHostPortListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] |
orderby | string | Determines what properties are used to sort the collection of resources. | |
top | int32 | Specifies the maximum number of resources to return in the response. | [default to 100] |
skip | int32 | Specifies the number of resources to skip in the response. | [default to 0] |
select_ | string | Specifies a subset of properties to return. | [default to ""] |
expand | string | Specify additional attributes or related resources to return in addition to the primary resources. | |
apply | string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The "$apply" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are "aggregate" and "groupby". The aggregate transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The groupby transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | |
count | bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | |
inlinecount | string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] |
at | string | Similar to "$filter", but "at" is specifically used to filter versioning information properties for resources to return. A URI with an "at" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | |
tags | string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherNetworkPort GetEtherNetworkPortByMoid(ctx, moid).Execute()
Read a 'ether.NetworkPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherNetworkPortByMoid(context.Background(), moid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherNetworkPortByMoid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherNetworkPortByMoid`: EtherNetworkPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherNetworkPortByMoid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiGetEtherNetworkPortByMoidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherNetworkPortResponse GetEtherNetworkPortList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
Read a 'ether.NetworkPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "")
orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional)
top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100)
skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0)
select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "")
expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional)
apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional)
count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional)
inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages")
at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional)
tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherNetworkPortList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherNetworkPortList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherNetworkPortList`: EtherNetworkPortResponse
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherNetworkPortList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetEtherNetworkPortListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] |
orderby | string | Determines what properties are used to sort the collection of resources. | |
top | int32 | Specifies the maximum number of resources to return in the response. | [default to 100] |
skip | int32 | Specifies the number of resources to skip in the response. | [default to 0] |
select_ | string | Specifies a subset of properties to return. | [default to ""] |
expand | string | Specify additional attributes or related resources to return in addition to the primary resources. | |
apply | string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The "$apply" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are "aggregate" and "groupby". The aggregate transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The groupby transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | |
count | bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | |
inlinecount | string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] |
at | string | Similar to "$filter", but "at" is specifically used to filter versioning information properties for resources to return. A URI with an "at" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | |
tags | string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPhysicalPort GetEtherPhysicalPortByMoid(ctx, moid).Execute()
Read a 'ether.PhysicalPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherPhysicalPortByMoid(context.Background(), moid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherPhysicalPortByMoid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherPhysicalPortByMoid`: EtherPhysicalPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherPhysicalPortByMoid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiGetEtherPhysicalPortByMoidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPhysicalPortResponse GetEtherPhysicalPortList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
Read a 'ether.PhysicalPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "")
orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional)
top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100)
skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0)
select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "")
expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional)
apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional)
count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional)
inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages")
at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional)
tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherPhysicalPortList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherPhysicalPortList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherPhysicalPortList`: EtherPhysicalPortResponse
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherPhysicalPortList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetEtherPhysicalPortListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] |
orderby | string | Determines what properties are used to sort the collection of resources. | |
top | int32 | Specifies the maximum number of resources to return in the response. | [default to 100] |
skip | int32 | Specifies the number of resources to skip in the response. | [default to 0] |
select_ | string | Specifies a subset of properties to return. | [default to ""] |
expand | string | Specify additional attributes or related resources to return in addition to the primary resources. | |
apply | string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The "$apply" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are "aggregate" and "groupby". The aggregate transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The groupby transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | |
count | bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | |
inlinecount | string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] |
at | string | Similar to "$filter", but "at" is specifically used to filter versioning information properties for resources to return. A URI with an "at" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | |
tags | string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPortChannel GetEtherPortChannelByMoid(ctx, moid).Execute()
Read a 'ether.PortChannel' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherPortChannelByMoid(context.Background(), moid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherPortChannelByMoid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherPortChannelByMoid`: EtherPortChannel
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherPortChannelByMoid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiGetEtherPortChannelByMoidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPortChannelResponse GetEtherPortChannelList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
Read a 'ether.PortChannel' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "")
orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional)
top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100)
skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0)
select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "")
expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional)
apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional)
count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional)
inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages")
at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional)
tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.GetEtherPortChannelList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.GetEtherPortChannelList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEtherPortChannelList`: EtherPortChannelResponse
fmt.Fprintf(os.Stdout, "Response from `EtherApi.GetEtherPortChannelList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetEtherPortChannelListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
filter | string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] |
orderby | string | Determines what properties are used to sort the collection of resources. | |
top | int32 | Specifies the maximum number of resources to return in the response. | [default to 100] |
skip | int32 | Specifies the number of resources to skip in the response. | [default to 0] |
select_ | string | Specifies a subset of properties to return. | [default to ""] |
expand | string | Specify additional attributes or related resources to return in addition to the primary resources. | |
apply | string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The "$apply" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e., the result of each transformation is the input to the next transformation. Supported aggregation methods are "aggregate" and "groupby". The aggregate transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The groupby transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | |
count | bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | |
inlinecount | string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] |
at | string | Similar to "$filter", but "at" is specifically used to filter versioning information properties for resources to return. A URI with an "at" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | |
tags | string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: Not defined
- Accept: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherHostPort PatchEtherHostPort(ctx, moid).EtherHostPort(etherHostPort).IfMatch(ifMatch).Execute()
Update a 'ether.HostPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherHostPort := *openapiclient.NewEtherHostPort("ClassId_example", "ObjectType_example") // EtherHostPort | The 'ether.HostPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.PatchEtherHostPort(context.Background(), moid).EtherHostPort(etherHostPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.PatchEtherHostPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchEtherHostPort`: EtherHostPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.PatchEtherHostPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiPatchEtherHostPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherHostPort | EtherHostPort | The 'ether.HostPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherNetworkPort PatchEtherNetworkPort(ctx, moid).EtherNetworkPort(etherNetworkPort).IfMatch(ifMatch).Execute()
Update a 'ether.NetworkPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherNetworkPort := *openapiclient.NewEtherNetworkPort("ClassId_example", "ObjectType_example") // EtherNetworkPort | The 'ether.NetworkPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.PatchEtherNetworkPort(context.Background(), moid).EtherNetworkPort(etherNetworkPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.PatchEtherNetworkPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchEtherNetworkPort`: EtherNetworkPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.PatchEtherNetworkPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiPatchEtherNetworkPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherNetworkPort | EtherNetworkPort | The 'ether.NetworkPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPhysicalPort PatchEtherPhysicalPort(ctx, moid).EtherPhysicalPort(etherPhysicalPort).IfMatch(ifMatch).Execute()
Update a 'ether.PhysicalPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherPhysicalPort := *openapiclient.NewEtherPhysicalPort("ClassId_example", "ObjectType_example") // EtherPhysicalPort | The 'ether.PhysicalPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.PatchEtherPhysicalPort(context.Background(), moid).EtherPhysicalPort(etherPhysicalPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.PatchEtherPhysicalPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchEtherPhysicalPort`: EtherPhysicalPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.PatchEtherPhysicalPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiPatchEtherPhysicalPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherPhysicalPort | EtherPhysicalPort | The 'ether.PhysicalPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherHostPort UpdateEtherHostPort(ctx, moid).EtherHostPort(etherHostPort).IfMatch(ifMatch).Execute()
Update a 'ether.HostPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherHostPort := *openapiclient.NewEtherHostPort("ClassId_example", "ObjectType_example") // EtherHostPort | The 'ether.HostPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.UpdateEtherHostPort(context.Background(), moid).EtherHostPort(etherHostPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.UpdateEtherHostPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEtherHostPort`: EtherHostPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.UpdateEtherHostPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiUpdateEtherHostPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherHostPort | EtherHostPort | The 'ether.HostPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherNetworkPort UpdateEtherNetworkPort(ctx, moid).EtherNetworkPort(etherNetworkPort).IfMatch(ifMatch).Execute()
Update a 'ether.NetworkPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherNetworkPort := *openapiclient.NewEtherNetworkPort("ClassId_example", "ObjectType_example") // EtherNetworkPort | The 'ether.NetworkPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.UpdateEtherNetworkPort(context.Background(), moid).EtherNetworkPort(etherNetworkPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.UpdateEtherNetworkPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEtherNetworkPort`: EtherNetworkPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.UpdateEtherNetworkPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiUpdateEtherNetworkPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherNetworkPort | EtherNetworkPort | The 'ether.NetworkPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EtherPhysicalPort UpdateEtherPhysicalPort(ctx, moid).EtherPhysicalPort(etherPhysicalPort).IfMatch(ifMatch).Execute()
Update a 'ether.PhysicalPort' resource.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CiscoDevNet/intersight-go"
)
func main() {
moid := "moid_example" // string | The unique Moid identifier of a resource instance.
etherPhysicalPort := *openapiclient.NewEtherPhysicalPort("ClassId_example", "ObjectType_example") // EtherPhysicalPort | The 'ether.PhysicalPort' resource to update.
ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EtherApi.UpdateEtherPhysicalPort(context.Background(), moid).EtherPhysicalPort(etherPhysicalPort).IfMatch(ifMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EtherApi.UpdateEtherPhysicalPort``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEtherPhysicalPort`: EtherPhysicalPort
fmt.Fprintf(os.Stdout, "Response from `EtherApi.UpdateEtherPhysicalPort`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
moid | string | The unique Moid identifier of a resource instance. |
Other parameters are passed through a pointer to a apiUpdateEtherPhysicalPortRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
etherPhysicalPort | EtherPhysicalPort | The 'ether.PhysicalPort' resource to update. | ifMatch | string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. |
http_signature, cookieAuth, oAuth2, oAuth2
- Content-Type: application/json, application/json-patch+json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]